library/src/exploitation/ModularExploitation/BuiltInExploitModules/UnitTestExploitModule/BP-ExploitModule_ut.cc
// dummy init function (allows user to supply custom arguments that the
// exploit module may need)
dummy init function (allows user to supply custom arguments that the
exploit module may need)
dummy init function ( allows user to supply custom arguments that the exploit module may need )
BP_ERROR_T BP_ExploitModule_ut_init(void *module, void *mod_user_arguments)
{
	if(!module)
		return ERR_FAILURE;
	printf("\n\n [+] Exploit Module Unit Test Initialized OK!");
	P_BP_EXPLOIT_MODULE exploit_module = (P_BP_EXPLOIT_MODULE) module;
	exploit_module->mod_status = BP_EXPLOIT_MODULE_STATUS_UNINITIALIZED;
	exploit_module->mod_run_status = BP_EXPLOIT_MODULE_RUN_STATUS_IDLE;
	return ERR_SUCCESS;
}
BP_ERROR_T BP_ExploitModule_ut_init ( void * module , void * mod_user_arguments ) { if ( ! module ) return ERR_FAILURE ; printf ( " \n \n " ) ; P_BP_EXPLOIT_MODULE exploit_module = ( P_BP_EXPLOIT_MODULE ) module ; exploit_module -> mod_status = BP_EXPLOIT_MODULE_STATUS_UNINITIALIZED ; exploit_module -> mod_run_status = BP_EXPLOIT_MODULE_RUN_STATUS_IDLE ; return ERR_SUCCESS ; }
dummy init function (allows user to supply custom arguments that the
exploit module may need)
dummy init function ( allows user to supply custom arguments that the exploit module may need )
// ensure we have a module pointer // display module load message // set exploit module for local reference // set exploit module status to initialized // set the run status to idle // return indicating success