library/src/exploitation/WebExploitation/BP-WebExploitation.cc
size_t BP_WebAssessmentAppendXSSResultToList(P_BP_WEB_XSS_TEST_RESULT inList, P_BP_WEB_XSS_TEST_RESULT appendList)
{

	// ensure we have a list and an append list
	if (!inList || !appendList)
		return ERR_FAILURE;

	// move to the last position
	for (inList = inList->first; inList->next; inList = inList->next) {}

	// add to the list
	if (inList != NULL && inList->next == NULL)
	{

		// link next to the original list
		inList->next = appendList;

		// link up the append list with the inlist pointers
		appendList->prev  = inList;
		appendList->first = inList->first;
		appendList->next  = NULL;

		// return indicating success
		return ERR_SUCCESS;

	}

	// Return failure if link is impossible
	return ERR_FAILURE;

}
// Appends a result set to the end of an assessment set
Appends a result set to the end of an assessment set
Appends a result set to the end of an assessment set
size_t BP_WebAssessmentAppendXSSResultToList(P_BP_WEB_XSS_TEST_RESULT inList, P_BP_WEB_XSS_TEST_RESULT appendList)
{
	if (!inList || !appendList)
		return ERR_FAILURE;
	for (inList = inList->first; inList->next; inList = inList->next) {}
	if (inList != NULL && inList->next == NULL)
	{
		inList->next = appendList;
		appendList->prev  = inList;
		appendList->first = inList->first;
		appendList->next  = NULL;
		return ERR_SUCCESS;
	}
	return ERR_FAILURE;
}
size_t BP_WebAssessmentAppendXSSResultToList ( P_BP_WEB_XSS_TEST_RESULT inList , P_BP_WEB_XSS_TEST_RESULT appendList ) { if ( ! inList || ! appendList ) return ERR_FAILURE ; for ( inList = inList -> first ; inList -> next ; inList = inList -> next ) { } if ( inList != NULL && inList -> next == NULL ) { inList -> next = appendList ; appendList -> prev = inList ; appendList -> first = inList -> first ; appendList -> next = NULL ; return ERR_SUCCESS ; } return ERR_FAILURE ; }
Appends a result set to the end of an assessment set
Appends a result set to the end of an assessment set
// ensure we have a list and an append list // move to the last position // add to the list // link next to the original list // link up the append list with the inlist pointers // return indicating success // Return failure if link is impossible