C:/fscan/HTTPCore/Modules/LogFile.cpp File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "../CallBack.h"
#include "LogFile.h"

Include dependency graph for LogFile.cpp:

Go to the source code of this file.

Defines

#define _CRT_SECURE_NO_WARNINGS

Functions

int CBLogFile (int cbType, HTTPHANDLE HTTPHandle, PHTTP_DATA *prequest, PHTTP_DATA *presponse)
 CallBack Function. This function is called from the DoCallBack() function once its registered and will intercept the callback information.

Variables

FILE * Session = NULL
const char LogFileName [] = "HTTP_Session.log"


Detailed Description

Fast HTTP Auth Scanner Module - Store logs for HTTP trafic generated by FHScan Proxy

Author:
Andres Tarasco Acuna - http://www.tarasco.org (c) 2007 - 2008

Definition in file LogFile.cpp.


Define Documentation

#define _CRT_SECURE_NO_WARNINGS

Definition at line 15 of file LogFile.cpp.


Function Documentation

int CBLogFile ( int  cbType,
HTTPHANDLE  HTTPHandle,
PHTTP_DATA prequest,
PHTTP_DATA presponse 
)

CallBack Function. This function is called from the DoCallBack() function once its registered and will intercept the callback information.

Parameters:
cbType CallBack Source Type. Valid options are CBTYPE_CLIENT_REQUEST , CBTYPE_CLIENT_RESPONSE , CBTYPE_BROWSER_REQUEST , CBTYPE_SERVER_RESPONSE
HTTPHandle HTTP Connection Handle with information about remote target (like ip address, port, ssl, protocol version,...)
prequest struct containing all information related to the HTTP Request.
presponse struct containing information about http reponse. This parameter could be NULL if the callback type is CBTYPE_CLIENT_REQUEST or CBTYPE_CLIENT_RESPONSE because request was not send yet.
Returns:
the return value CBRET_STATUS_NEXT_CB_CONTINUE indicates that the request (modified or not) its ok. If a registered handler blocks the request then CBRET_STATUS_CANCEL_REQUEST is returned. This value indicates that the response is locked
Note:
This function does not block requests, only tries to decode HTTP response.

Definition at line 32 of file LogFile.cpp.

References CBRET_STATUS_NEXT_CB_CONTINUE, CBTYPE_PROXY_RESPONSE, _data::Data, _data::DataSize, _data::Header, _data::HeaderSize, LogFileName, and Session.


Variable Documentation

const char LogFileName[] = "HTTP_Session.log"

Definition at line 19 of file LogFile.cpp.

Referenced by CBLogFile().

FILE* Session = NULL

Definition at line 18 of file LogFile.cpp.

Referenced by CBLogFile().


Generated on Sun Jan 18 00:32:04 2009 for Fast HTTP Vulnerability Scanner by  doxygen 1.5.4