library/src/exploitation/WebExploitation/BP-WebExploitation.cc
// display the basic web analysis request data
display the basic web analysis request data
display the basic web analysis request data
BP_ERROR_T BP_DisplayWebAnalysisBasicRequestData(P_BP_WEB_ANALYSIS_BASIC_REQUEST_DATA request_data)
{
	if(!request_data)
		return ERR_FAILURE;
	printf("\n\t [+] Basic Request Data (%p)", request_data);
	printf("\n\t     result_id:             %u", request_data->result_id);
	printf("\n\t     request_id:            %u", request_data->request_id);
	printf("\n\t     http_connect_code:     %u", request_data->http_connect_code);
	printf("\n\t     http_status_code:      %u", request_data->http_status_code);
	printf("\n\t     http_get:              %s", (char *) &request_data->http_get);
	printf("\n\t     http_post:             %s", (char *) &request_data->http_post);
	printf("\n\t     http_cookie:           %s", (char *) &request_data->http_cookie);
	printf("\n\t     http_header:           %s", (char *) &request_data->http_header);
	printf("\n\t     suspected_get_var:     %s", (char *) &request_data->suspected_get_var);
	printf("\n\t     suspected_post_var:    %s", (char *) &request_data->suspected_post_var);
	printf("\n\t     suspected_cookie_var:  %s", (char *) &request_data->suspected_cookie_var);
	printf("\n\t     suspected_header_var:  %s", (char *) &request_data->suspected_header_var);
	printf("\n\t     detection_string_test: %s", (char *) &request_data->detection_string_test);
	printf("\n\t     detection_found_test:  %s", (char *) &request_data->detection_string_found);
	printf("\n\t     detection_string_test: %s", (char *) &request_data->detection_table_index);
	switch(request_data->detection_engine)
	{
	default:
		break;
	}
	switch(request_data->condition)
	{
	default:
		break;
	}
	return ERR_SUCCESS;
}
BP_ERROR_T BP_DisplayWebAnalysisBasicRequestData ( P_BP_WEB_ANALYSIS_BASIC_REQUEST_DATA request_data ) { if ( ! request_data ) return ERR_FAILURE ; printf ( " \n \t " , request_data ) ; printf ( " \n \t " , request_data -> result_id ) ; printf ( " \n \t " , request_data -> request_id ) ; printf ( " \n \t " , request_data -> http_connect_code ) ; printf ( " \n \t " , request_data -> http_status_code ) ; printf ( " \n \t " , ( char * ) & request_data -> http_get ) ; printf ( " \n \t " , ( char * ) & request_data -> http_post ) ; printf ( " \n \t " , ( char * ) & request_data -> http_cookie ) ; printf ( " \n \t " , ( char * ) & request_data -> http_header ) ; printf ( " \n \t " , ( char * ) & request_data -> suspected_get_var ) ; printf ( " \n \t " , ( char * ) & request_data -> suspected_post_var ) ; printf ( " \n \t " , ( char * ) & request_data -> suspected_cookie_var ) ; printf ( " \n \t " , ( char * ) & request_data -> suspected_header_var ) ; printf ( " \n \t " , ( char * ) & request_data -> detection_string_test ) ; printf ( " \n \t " , ( char * ) & request_data -> detection_string_found ) ; printf ( " \n \t " , ( char * ) & request_data -> detection_table_index ) ; switch ( request_data -> detection_engine ) { default : break ; } switch ( request_data -> condition ) { default : break ; } return ERR_SUCCESS ; }
display the basic web analysis request data
display the basic web analysis request data
// return indicating success