library/src/exploitation/WebExploitation/BP-WebExploitationXss.cc
// Destroys a set of XSS Tests
Destroys a set of XSS Tests
Destroys a set of XSS Tests
size_t BP_DestroyXSSTests(BP_WEB_XSS_TEST * tests, size_t test_count)
{
	if(!tests)
		return ERR_FAILURE;
	size_t x = 0;
	for(x = 0; tests[x].testFront; x++)
	{
		bpfree(tests[x].testFront);
		bpfree(tests[x].testTail);
	}
	bpfree(tests);
	return ERR_SUCCESS;
}
size_t BP_DestroyXSSTests ( BP_WEB_XSS_TEST * tests , size_t test_count ) { if ( ! tests ) return ERR_FAILURE ; size_t x = 0 ; for ( x = 0 ; tests [ x ] . testFront ; x ++ ) { bpfree ( tests [ x ] . testFront ) ; bpfree ( tests [ x ] . testTail ) ; } bpfree ( tests ) ; return ERR_SUCCESS ; }
Destroys a set of XSS Tests
Destroys a set of XSS Tests
// ensure we have tests // walk test array destroying duplicated strings // destroy full structure // return indicating success