library/src/exploitation/WebExploitation/CommandExecution/BP-WebExploitationCommandExecution.cc
// This routine will parse a HTML extraction in order to generate new targets
// for the command injection subsystem.
This routine will parse a HTML extraction in order to generate new targets
for the command injection subsystem.
This routine will parse a HTML extraction in order to generate new targets for the command injection subsystem .
BP_ERROR_T BP_CommandInjectionParseHtmlExtractionForNewTargets
(
		P_BP_WEB_COMMAND_INJECTION_TEST_SESSION cmd_injection_session,
		P_BP_HTML_FULL_EXTRACTION              html_extraction
)
{
	if(!cmd_injection_session)
		return ERR_FAILURE;
	if(!html_extraction)
		return ERR_FAILURE;
	if(html_extraction->forms)
		BP_CommandInjectionParseHtmlFormsForNewTargets(cmd_injection_session, html_extraction->forms);
	if(html_extraction->anchors)
		BP_CommandInjectionParseHtmlAnchorsForNewTargets(cmd_injection_session, html_extraction->anchors);
	return ERR_SUCCESS;
}
BP_ERROR_T BP_CommandInjectionParseHtmlExtractionForNewTargets ( P_BP_WEB_COMMAND_INJECTION_TEST_SESSION cmd_injection_session , P_BP_HTML_FULL_EXTRACTION html_extraction ) { if ( ! cmd_injection_session ) return ERR_FAILURE ; if ( ! html_extraction ) return ERR_FAILURE ; if ( html_extraction -> forms ) BP_CommandInjectionParseHtmlFormsForNewTargets ( cmd_injection_session , html_extraction -> forms ) ; if ( html_extraction -> anchors ) BP_CommandInjectionParseHtmlAnchorsForNewTargets ( cmd_injection_session , html_extraction -> anchors ) ; return ERR_SUCCESS ; }
This routine will parse a HTML extraction in order to generate new targets
for the command injection subsystem.
This routine will parse a HTML extraction in order to generate new targets for the command injection subsystem .
// ensure we have command injection sessions // ensure we have a html extraction // parse html forms if they exist // parse html anchors if they exist // return indicating success