Esempio n. 1
0
bool idaapi extract_all_ctrees(void *ud)
{
	// in this case don't mark dumped functions as crypto
	qstring crypto_prefix = "none_crypto_prefix";
	dump_funcs_ctree(NULL, crypto_prefix);

	return true;
}
bool idaapi extract_all_ctrees(void *ud)
{
	// default prefix to display in the dialog
	qstring default_prefix = "crypto_";
	
	va_list va;
	va_end(va);
	
	char * crypto_prefix = vaskstr(0, default_prefix.c_str(), "Enter prefix of crypto function names", va);
	if((crypto_prefix != NULL) && (strlen(crypto_prefix) > 0)) {
		qstring qcrypt_prefix = crypto_prefix;
		dump_funcs_ctree(NULL, qcrypt_prefix);
	} else {
		warning("Incorrect prefix!!");
	}

	return true;
}