library/src/exploitation/WebExploitation/CommandExecution/BP-WebExploitationCommandExecution.cc
// displays a set of http requests
displays a set of http requests
displays a set of http requests
BP_ERROR_T BP_CommandInjectionDisplayHTTPRequests
(
		P_BP_WEB_COMMAND_INJECTION_HTTP_REQUEST_INFO http_generated_requests
)
{
	if(!http_generated_requests)
		return ERR_FAILURE;
	size_t request_iter = 0;
	P_BP_WEB_COMMAND_INJECTION_HTTP_REQUEST request = NULL;
	for
	(
			;
			request_iter < http_generated_requests->request_n;
			request_iter++
	)
	{
		request = &http_generated_requests->generated_requests[request_iter];
		printf("\n [+] Request: (%p)", request);
		printf("\n     get_str:                     %s", request->get_str);
		printf("\n     post_str:                    %s", request->post_str);
		printf("\n     cookie_str:                  %s", request->cookie_str);
		printf("\n     header_str:                  %s", request->header_str);
		printf("\n     request_succeded:            %s", request->request_succeded ? "Yes": "No");
		printf("\n     test_ref:                    %p", request->test_ref);
		printf("\n     file_verification_test_ref:  %p", request->file_verification_test_ref);
		printf("\n     pattern_reflection_test_ref: %p", request->pattern_reflection_test_ref);
		printf("\n");
	}
}
BP_ERROR_T BP_CommandInjectionDisplayHTTPRequests ( P_BP_WEB_COMMAND_INJECTION_HTTP_REQUEST_INFO http_generated_requests ) { if ( ! http_generated_requests ) return ERR_FAILURE ; size_t request_iter = 0 ; P_BP_WEB_COMMAND_INJECTION_HTTP_REQUEST request = NULL ; for ( ; request_iter < http_generated_requests -> request_n ; request_iter ++ ) { request = & http_generated_requests -> generated_requests [ request_iter ] ; printf ( " \n " , request ) ; printf ( " \n " , request -> get_str ) ; printf ( " \n " , request -> post_str ) ; printf ( " \n " , request -> cookie_str ) ; printf ( " \n " , request -> header_str ) ; printf ( " \n " , request -> request_succeded ? " " : " " ) ; printf ( " \n " , request -> test_ref ) ; printf ( " \n " , request -> file_verification_test_ref ) ; printf ( " \n " , request -> pattern_reflection_test_ref ) ; printf ( " \n " ) ; } }
displays a set of http requests
displays a set of http requests
// request iter // reference into the request stack // set request