| 4 | #include <winsock2.h> |
| 5 | |
| 6 | class PotatoAPI { |
| 7 | private: |
| 8 | BlockingQueue<char*>* comSendQ; |
| 9 | BlockingQueue<char*>* rpcSendQ; |
| 10 | static DWORD WINAPI staticStartRPCConnection(void * Param); |
| 11 | static DWORD WINAPI staticStartCOMListener(void * Param); |
| 12 | static int newConnection; |
| 13 | int processNtlmBytes(char* bytes, int len); |
| 14 | int findNTLMBytes(char * bytes, int len); |
| 15 | |
| 16 | public: |
| 17 | PotatoAPI(void); |
| 18 | int startRPCConnection(void); |
| 19 | DWORD startRPCConnectionThread(); |
| 20 | DWORD startCOMListenerThread(); |
| 21 | int startCOMListener(void); |
| 22 | int triggerDCOM(); |
| 23 | |
| 24 | SOCKET ListenSocket = INVALID_SOCKET; |
| 25 | SOCKET ClientSocket = INVALID_SOCKET; |
| 26 | SOCKET ConnectSocket = INVALID_SOCKET; |
| 27 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected