library/src/blockclass/BP-BlockClass.cc
// Initializes the web assessment structure with default values
Initializes the web assessment structure with default values
Initializes the web assessment structure with default values
int Block::CreateWebAssessment(char *targetURL, bool siteLock)
{
	if (!targetURL || !this->httpSession || !this->htmlExtraction)
	{
		printf("\n [!!] Error, unable to create web assessment. (%p, %p, %p)", targetURL, this->httpSession, this->htmlExtraction);
		return ERR_FAILURE;
	}
	webAssessment = BP_CreateWebAssessment(targetURL, this->httpSession, this->htmlExtraction, true, true, siteLock);
	if (!webAssessment)
	{
		return ERR_FAILURE;
	}
	webAssessment->maxAnchorPossibilities = 65535;
	webAssessment->maxFormPossibilities   = 65535;
	return ERR_SUCCESS;
}
int Block :: CreateWebAssessment ( char * targetURL , bool siteLock ) { if ( ! targetURL || ! this -> httpSession || ! this -> htmlExtraction ) { printf ( " \n " , targetURL , this -> httpSession , this -> htmlExtraction ) ; return ERR_FAILURE ; } webAssessment = BP_CreateWebAssessment ( targetURL , this -> httpSession , this -> htmlExtraction , true , true , siteLock ) ; if ( ! webAssessment ) { return ERR_FAILURE ; } webAssessment -> maxAnchorPossibilities = 65535 ; webAssessment -> maxFormPossibilities = 65535 ; return ERR_SUCCESS ; }
Initializes the web assessment structure with default values
Initializes the web assessment structure with default values
// Null checks // NOTE: The mysql connection is passed in via this->httpSession, which contains a pointer to this //       classes mysql handle. // Create a new assessment with SQL tables (large) // Set arbitrary default possibility values (number of checks will not exceed this) // return success