C:/Web/smbrelay3/src/misc.cpp File Reference

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

Include dependency graph for misc.cpp:

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


Function Documentation

void Banner ( void   ) 

Definition at line 380 of file misc.cpp.

Referenced by main().

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 
)

Definition at line 73 of file misc.cpp.

Referenced by WriteRemoteFile().

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().

Here is the call graph for this function:

void usage ( void   ) 

Definition at line 387 of file misc.cpp.

Referenced by main().

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.

Here is the call graph for this function:


Variable Documentation

int verbose

Definition at line 147 of file smbrelay3.cpp.


Generated on Wed Nov 12 22:04:28 2008 for Smbrelay version 3 by  doxygen 1.5.4