library/src/exploitation/WebExploitation/BP-WebExploitation.cc
// Utility function to print out the values in the assessment
Utility function to print out the values in the assessment
Utility function to print out the values in the assessment
void BP_PrintAssessments(P_BP_WEB_ASSESSMENT assessment)
{
	if (!assessment) {
		printf("\n PRINT_ERR[+] NULL ASSESSMENT LIST PROVIDED.");
		return;
	}
	for
	(
			assessment = assessment->first;
			assessment;
			assessment = assessment->next
	)
	{
		printf("\n [+] Assessment: %p", assessment);
		printf("\n\n\t [+] -----------------------");
		printf("\n\t Assessment Base URL:                  %s", assessment->baseAssessmentURL);
		printf("\n\t Assessment Session Pointer:           %p", assessment->session);
		printf("\n\t Assessment Extraction Pointer:        %p", assessment->pageExtraction);
		printf("\n");
		printf("\n\t Assessment SQL Check Table Pointer:   %p", assessment->sqlChecks);
		printf("\n\t Assessment SQL Results Table Pointer: %p", assessment->sqlResults);
		printf("\n\t --- MySQL Error Code Check Table: ....%p", assessment->mysqlErrChecks);
		printf("\n");
		printf("\n\t Assessment XSS Check Table Pointer:   %p", assessment->xssChecks);
		printf("\n\t Assessment XSS Results Table Pointer: %p", assessment->xssResults);
		printf("\n\n\n\t [+] Xss Table:");
		if (assessment->xssResults)
			BP_PrintXssResultList(assessment->xssResults);
		else
			printf("(empty)");
		printf("\n\n\n\t [+] Sql Inject Table:");
		if (assessment->sqlResults)
			BP_PrintSqlResultList(assessment);
		else
			printf("(empty)");
		printf("\n\n\n\t [+] AppEngine Detection Table (err based):");
		if (assessment->appErrorResults)
			BP_PrintAppEngineResultList(assessment);
		else
			printf("(empty)");
		printf("\n\n\n\t [+] Blind SQLi Detection Table (inferred detection):");
		if(assessment->bsqli_results)
			BP_PrintBlindSQLiResults(assessment);
		else
			printf("(empty)");
		printf("\n ------------------");
		printf("\n\t\t first: %p", assessment->first);
		printf("\n\t\t prev:  %p", assessment->prev);
		printf("\n\t\t next:  %p", assessment->next);
	}
}
void BP_PrintAssessments ( P_BP_WEB_ASSESSMENT assessment ) { if ( ! assessment ) { printf ( " \n " ) ; return ; } for ( assessment = assessment -> first ; assessment ; assessment = assessment -> next ) { printf ( " \n " , assessment ) ; printf ( " \n \n \t " ) ; printf ( " \n \t " , assessment -> baseAssessmentURL ) ; printf ( " \n \t " , assessment -> session ) ; printf ( " \n \t " , assessment -> pageExtraction ) ; printf ( " \n " ) ; printf ( " \n \t " , assessment -> sqlChecks ) ; printf ( " \n \t " , assessment -> sqlResults ) ; printf ( " \n \t " , assessment -> mysqlErrChecks ) ; printf ( " \n " ) ; printf ( " \n \t " , assessment -> xssChecks ) ; printf ( " \n \t " , assessment -> xssResults ) ; printf ( " \n \n \n \t " ) ; if ( assessment -> xssResults ) BP_PrintXssResultList ( assessment -> xssResults ) ; else printf ( " " ) ; printf ( " \n \n \n \t " ) ; if ( assessment -> sqlResults ) BP_PrintSqlResultList ( assessment ) ; else printf ( " " ) ; printf ( " \n \n \n \t " ) ; if ( assessment -> appErrorResults ) BP_PrintAppEngineResultList ( assessment ) ; else printf ( " " ) ; printf ( " \n \n \n \t " ) ; if ( assessment -> bsqli_results ) BP_PrintBlindSQLiResults ( assessment ) ; else printf ( " " ) ; printf ( " \n " ) ; printf ( " \n \t \t " , assessment -> first ) ; printf ( " \n \t \t " , assessment -> prev ) ; printf ( " \n \t \t " , assessment -> next ) ; } }
Utility function to print out the values in the assessment
Utility function to print out the values in the assessment
// exit on null check // Walk the assessment table and print out values // arbitrary list pointers