library/src/exploitation/WebExploitation/BP-WebExploitation.cc
// Utility to print out xss resuls
Utility to print out xss resuls
Utility to print out xss resuls
void BP_PrintXssResultList(P_BP_WEB_XSS_TEST_RESULT inList) {
	if (!inList)
		return;
	for (inList = inList->first; inList != NULL; inList = inList->next) {
		printf("\n\n\t\t [+] XSS Test Result: %p", inList);
		printf("\n\t\t Test Index:        %u", inList->testIndex);
		printf("\n\t\t Target Type:       %u", inList->targetType);
		printf("\n\t\t Normal (non-magic quote) Match: %s", inList->match ? "yes" : "no");
		printf("\n\t\t Magic Quote Match:              %s", inList->magicQuotesMatch ? "yes" : "no");
		printf("\n");
		if (inList->anchorActualTest != NULL)
			printf("\n\t\t Actual Anchor Test: %s", inList->anchorActualTest);
		if (inList->anchor != NULL)
			printf("\n\t\t Anchor URL: %s", inList->anchor->href);
		printf("\n\t\t Anchor List Pointer:                  %p", inList->anchor);
		printf("\n\t\t Anchor Var List Pointer:              %p", inList->vulnVar);
		printf("\n\t\t Vulnerable Variable Position in List: %u", inList->anchorVarPosition);
		printf("\n");
		printf("\n\t\t Form Input Test Str: %s", inList->formActualTest);
		printf("\n\t\t Form List Pointer:                    %p", inList->form);
		printf("\n\t\t Form Input List Pointer:              %p", inList->vulnInput);
		printf("\n\t\t Vulnerable Input Position in List:    %u", inList->inputVarPosition);
		printf("\n\n\t\t\t first: %p", inList->first);
		printf("\n\t\t\t prev:  %p", inList->prev);
		printf("\n\t\t\t next:  %p", inList->next);
		printf("\n");
	}
	return;
}
void BP_PrintXssResultList ( P_BP_WEB_XSS_TEST_RESULT inList ) { if ( ! inList ) return ; for ( inList = inList -> first ; inList != NULL ; inList = inList -> next ) { printf ( " \n \n \t \t " , inList ) ; printf ( " \n \t \t " , inList -> testIndex ) ; printf ( " \n \t \t " , inList -> targetType ) ; printf ( " \n \t \t " , inList -> match ? " " : " " ) ; printf ( " \n \t \t " , inList -> magicQuotesMatch ? " " : " " ) ; printf ( " \n " ) ; if ( inList -> anchorActualTest != NULL ) printf ( " \n \t \t " , inList -> anchorActualTest ) ; if ( inList -> anchor != NULL ) printf ( " \n \t \t " , inList -> anchor -> href ) ; printf ( " \n \t \t " , inList -> anchor ) ; printf ( " \n \t \t " , inList -> vulnVar ) ; printf ( " \n \t \t " , inList -> anchorVarPosition ) ; printf ( " \n " ) ; printf ( " \n \t \t " , inList -> formActualTest ) ; printf ( " \n \t \t " , inList -> form ) ; printf ( " \n \t \t " , inList -> vulnInput ) ; printf ( " \n \t \t " , inList -> inputVarPosition ) ; printf ( " \n \n \t \t \t " , inList -> first ) ; printf ( " \n \t \t \t " , inList -> prev ) ; printf ( " \n \t \t \t " , inList -> next ) ; printf ( " \n " ) ; } return ; }
Utility to print out xss resuls
Utility to print out xss resuls
// target type (anchor, form, or cookie) // Normal match // Magic Quotes Match Flag // Anchor Information // print out input test string // List pointers