#include "misc.h"#include "smbrelay.h"

Go to the source code of this file.
Functions | |
| void | DumpMem (void *string, int length) |
| char * | ReadFileToSend (int *BackdoorFileSize, char *lpBackdoorFile) |
| int | ConnectToRemoteHost (RELAY *relay, char *hostname, int port) |
| int | SendBytesAndWaitForResponse (SOCKET destination, char *source, int nBytes, char *destinationBuffer, int MaxReadSize, int timeout) |
| void | WriteDataToReportFile (char *lpLogFileFilename, tSmbNtlmAuthResponse *NtlmAuthResponse, char *SourceIpAddress, unsigned char *challenge) |
| void | CleanLine (int verbose) |
| void | Banner (void) |
| void | usage (void) |
Variables | |
| int | verbose |
| void CleanLine | ( | int | verbose | ) |
Definition at line 373 of file misc.cpp.
Referenced by HandleIncommingHTTPRequest(), HandleIncommingSmbRequest(), and WriteRemoteFile().
| int ConnectToRemoteHost | ( | RELAY * | relay, | |
| char * | hostname, | |||
| int | port | |||
| ) |
Definition at line 225 of file misc.cpp.
References CONNECT_TIMEOUT, RELAY::destination, RELAY::destinationaddr, and RELAY::hostname.
Referenced by HandleIncommingHTTPRequest(), HandleIncommingIMAPRequest(), HandleIncommingPOP3Request(), HandleIncommingSmbRequest(), HandleIncommingSMTPRequest(), and main().
| void DumpMem | ( | void * | string, | |
| int | length | |||
| ) |
Definition at line 9 of file misc.cpp.
References DBG_DUMP_ROWS.
Referenced by BuildSmbPacket1(), ExecuteCode(), HandleIncommingHTTPRequest(), HandleIncommingIMAPRequest(), HandleIncommingPOP3Request(), HandleIncommingSmbRequest(), HandleIncommingSMTPRequest(), SendBytesAndWaitForResponse(), StablishNTLMSession(), and WriteRemoteFile().
| char* ReadFileToSend | ( | int * | BackdoorFileSize, | |
| char * | lpBackdoorFile | |||
| ) |
| int SendBytesAndWaitForResponse | ( | SOCKET | destination, | |
| char * | source, | |||
| int | nBytes, | |||
| char * | destinationBuffer, | |||
| int | MaxReadSize, | |||
| int | timeout | |||
| ) |
Definition at line 280 of file misc.cpp.
References debug, and DumpMem().
Referenced by AttackWeakServices(), ExecuteCode(), GetSmbPacket2(), HandleIncommingHTTPRequest(), HandleIncommingIMAPRequest(), HandleIncommingPOP3Request(), HandleIncommingSmbRequest(), HandleIncommingSMTPRequest(), StablishNTLMSession(), and WriteRemoteFile().

| void WriteDataToReportFile | ( | char * | lpLogFileFilename, | |
| tSmbNtlmAuthResponse * | NtlmAuthResponse, | |||
| char * | SourceIpAddress, | |||
| unsigned char * | challenge | |||
| ) |
Definition at line 336 of file misc.cpp.
References GetNTLMPacketInfo(), tSmbNtlmAuthResponse::lmResponse, tSmbNtlmAuthResponse::ntResponse, and tSmbStrHeader::offset.

| int verbose |
Definition at line 147 of file smbrelay3.cpp.
1.5.4