library/src/exploitation/WebExploitation/CommandExecution/BP-WebExploitationCommandExecution.cc
// Add a command reflection test to a test element.
Add a command reflection test to a test element.
Add a command reflection test to a test element .
BP_ERROR_T BP_CommandInjectionAddPatternReflectionTestToInjectionElement
(
		P_BP_WEB_COMMAND_INJECTION_ELEMENT cmd_injection_element,
		P_BP_WEB_COMMAND_INJECTION_PATTERN_REFLECTION_TEST pattern_reflection_test
)
{
	if(!cmd_injection_element)
		return ERR_FAILURE;
	if(!pattern_reflection_test)
		return ERR_FAILURE;
	return ERR_SUCCESS;
}
BP_ERROR_T BP_CommandInjectionAddPatternReflectionTestToInjectionElement ( P_BP_WEB_COMMAND_INJECTION_ELEMENT cmd_injection_element , P_BP_WEB_COMMAND_INJECTION_PATTERN_REFLECTION_TEST pattern_reflection_test ) { if ( ! cmd_injection_element ) return ERR_FAILURE ; if ( ! pattern_reflection_test ) return ERR_FAILURE ; return ERR_SUCCESS ; }
Add a command reflection test to a test element.
Add a command reflection test to a test element .
// ensure we have a command injection element // if no pattern reflection tests, return indicating // failure. // return indicating success