library/src/exploitation/Utilities/BP-Gadgets.cc
// BP_GADGET_SOFTWARE_LANGUAGE to heap alloc string.
BP_GADGET_SOFTWARE_LANGUAGE to heap alloc string.
BP_GADGET_SOFTWARE_LANGUAGE to heap alloc string .
char * BP_GetSoftwareLanguage(BP_GADGET_SOFTWARE_LANGUAGE software_language, P_BP_LINKL tq)
{
	switch(software_language)
	{
		case BP_GADGET_SOFTWARE_LANGUAGE_UNSET:
			return tq ? tq_strdup(tq, "BP_GADGET_SOFTWARE_LANGUAGE_UNSET", BPLN) :  bpstrdup("BP_GADGET_SOFTWARE_LANGUAGE_UNSET");
			break;
		case BP_GADGET_SOFTWARE_LANGUAGE_PHP4:
			return tq ? tq_strdup(tq, "BP_GADGET_SOFTWARE_LANGUAGE_PHP4", BPLN) :  bpstrdup("BP_GADGET_SOFTWARE_LANGUAGE_PHP4");
			break;
		case BP_GADGET_SOFTWARE_LANGUAGE_PHP5:
			return tq ? tq_strdup(tq, "BP_GADGET_SOFTWARE_LANGUAGE_PHP5", BPLN) :  bpstrdup("BP_GADGET_SOFTWARE_LANGUAGE_PHP5");
			break;
		case BP_GADGET_SOFTWARE_LANGUAGE_PERL:
			return tq ? tq_strdup(tq, "BP_GADGET_SOFTWARE_LANGUAGE_PERL", BPLN) :  bpstrdup("BP_GADGET_SOFTWARE_LANGUAGE_PERL");
			break;
		case BP_GADGET_SOFTWARE_LANGUAGE_RUBY:
			return tq ? tq_strdup(tq, "BP_GADGET_SOFTWARE_LANGUAGE_RUBY", BPLN) :  bpstrdup("BP_GADGET_SOFTWARE_LANGUAGE_RUBY");
			break;
		case BP_GADGET_SOFTWARE_LANGUAGE_BASH:
			return tq ? tq_strdup(tq, "BP_GADGET_SOFTWARE_LANGUAGE_BASH", BPLN) :  bpstrdup("BP_GADGET_SOFTWARE_LANGUAGE_BASH");
			break;
		case BP_GADGET_SOFTWARE_LANGUAGE_SH:
			return tq ? tq_strdup(tq, "BP_GADGET_SOFTWARE_LANGUAGE_SH", BPLN) :  bpstrdup("BP_GADGET_SOFTWARE_LANGUAGE_SH");
			break;
		case BP_GADGET_SOFTWARE_LANGUAGE_ASH:
			return tq ? tq_strdup(tq, "BP_GADGET_SOFTWARE_LANGUAGE_ASH", BPLN) :  bpstrdup("BP_GADGET_SOFTWARE_LANGUAGE_ASH");
			break;
		case BP_GADGET_SOFTWARE_LANGUAGE_CSH:
			return tq ? tq_strdup(tq, "BP_GADGET_SOFTWARE_LANGUAGE_CSH", BPLN) :  bpstrdup("BP_GADGET_SOFTWARE_LANGUAGE_CSH");
			break;
		case BP_GADGET_SOFTWARE_LANGUAGE_JSP:
			return tq ? tq_strdup(tq, "BP_GADGET_SOFTWARE_LANGUAGE_JSP", BPLN) :  bpstrdup("BP_GADGET_SOFTWARE_LANGUAGE_JSP");
			break;
		case BP_GADGET_SOFTWARE_LANGUAGE_CFM:
			return tq ? tq_strdup(tq, "BP_GADGET_SOFTWARE_LANGUAGE_CFM", BPLN) :  bpstrdup("BP_GADGET_SOFTWARE_LANGUAGE_CFM");
			break;
		case BP_GADGET_SOFTWARE_LANGUAGE_JAVASCRIPT_GENERIC:
			return tq ? tq_strdup(tq, "BP_GADGET_SOFTWARE_LANGUAGE_JAVASCRIPT_GENERIC", BPLN) :  bpstrdup("BP_GADGET_SOFTWARE_LANGUAGE_JAVASCRIPT_GENERIC");
			break;
		case BP_GADGET_SOFTWARE_LANGUAGE_JAVASCRIPT_CHROME:
			return tq ? tq_strdup(tq, "BP_GADGET_SOFTWARE_LANGUAGE_JAVASCRIPT_CHROME", BPLN) :  bpstrdup("BP_GADGET_SOFTWARE_LANGUAGE_JAVASCRIPT_CHROME");
			break;
		case BP_GADGET_SOFTWARE_LANGUAGE_JAVASCRIPT_FIREFOX:
			return tq ? tq_strdup(tq, "BP_GADGET_SOFTWARE_LANGUAGE_JAVASCRIPT_CHROME", BPLN) :  bpstrdup("BP_GADGET_SOFTWARE_LANGUAGE_JAVASCRIPT_CHROME");
			break;
		case BP_GADGET_SOFTWARE_LANGUAGE_JAVASCRIPT_INTERNET_EXPLORER:
			return tq ? tq_strdup(tq, "BP_GADGET_SOFTWARE_LANGUAGE_JAVASCRIPT_INTERNET_EXPLORER", BPLN) :  bpstrdup("BP_GADGET_SOFTWARE_LANGUAGE_JAVASCRIPT_INTERNET_EXPLORER");
			break;
		case BP_GADGET_SOFTWARE_LANGUAGE_JAVASCRIPT_OPERA:
			return tq ? tq_strdup(tq, "BP_GADGET_SOFTWARE_LANGUAGE_JAVASCRIPT_OPERA", BPLN) :  bpstrdup("BP_GADGET_SOFTWARE_LANGUAGE_JAVASCRIPT_OPERA");
			break;
		case BP_GADGET_SOFTWARE_LANGUAGE_JAVASCRIPT_SAFARI:
			return tq ? tq_strdup(tq, "BP_GADGET_SOFTWARE_LANGUAGE_JAVASCRIPT_SAFARI", BPLN) :  bpstrdup("BP_GADGET_SOFTWARE_LANGUAGE_JAVASCRIPT_SAFARI");
			break;
		case BP_GADGET_SOFTWARE_LANGUAGE_JAVASCRIPT_WEBKIT:
			return tq ? tq_strdup(tq, "BP_GADGET_SOFTWARE_LANGUAGE_JAVASCRIPT_WEBKIT", BPLN) :  bpstrdup("BP_GADGET_SOFTWARE_LANGUAGE_JAVASCRIPT_WEBKIT");
			break;
		case BP_GADGET_SOFTWARE_LANGUAGE_JAVASCRIPT_SELENIUM:
			return tq ? tq_strdup(tq, "BP_GADGET_SOFTWARE_LANGUAGE_JAVASCRIPT_SELENIUM", BPLN) :  bpstrdup("BP_GADGET_SOFTWARE_LANGUAGE_JAVASCRIPT_SELENIUM");
			break;
		case BP_GADGET_SOFTWARE_LANGUAGE_HTML:
			return tq ? tq_strdup(tq, "BP_GADGET_SOFTWARE_LANGUAGE_HTML", BPLN) :  bpstrdup("BP_GADGET_SOFTWARE_LANGUAGE_HTML");
			break;
		case BP_GADGET_SOFTWARE_LANGUAGE_PGSQL:
			return tq ? tq_strdup(tq, "BP_GADGET_SOFTWARE_LANGUAGE_PGSQL", BPLN) :  bpstrdup("BP_GADGET_SOFTWARE_LANGUAGE_PGSQL");
			break;
		case BP_GADGET_SOFTWARE_LANGUAGE_MYSQL:
			return tq ? tq_strdup(tq, "BP_GADGET_SOFTWARE_LANGUAGE_MYSQL", BPLN) :  bpstrdup("BP_GADGET_SOFTWARE_LANGUAGE_MYSQL");
			break;
		case BP_GADGET_SOFTWARE_LANGUAGE_ORACLE:
			return tq ? tq_strdup(tq, "BP_GADGET_SOFTWARE_LANGUAGE_ORACLE", BPLN) :  bpstrdup("BP_GADGET_SOFTWARE_LANGUAGE_ORACLE");
			break;
		case BP_GADGET_SOFTWARE_LANGUAGE_LISP:
			return tq ? tq_strdup(tq, "BP_GADGET_SOFTWARE_LANGUAGE_LISP", BPLN) :  bpstrdup("BP_GADGET_SOFTWARE_LANGUAGE_LISP");
			break;
		case BP_GADGET_SOFTWARE_LANGUAGE_LUA:
			return tq ? tq_strdup(tq, "BP_GADGET_SOFTWARE_LANGUAGE_LUA", BPLN) :  bpstrdup("BP_GADGET_SOFTWARE_LANGUAGE_LUA");
			break;
		case BP_GADGET_SOFTWARE_LANGUAGE_C:
			return tq ? tq_strdup(tq, "BP_GADGET_SOFTWARE_LANGUAGE_C", BPLN) :  bpstrdup("BP_GADGET_SOFTWARE_LANGUAGE_C");
			break;
		case BP_GADGET_SOFTWARE_LANGUAGE_CPP:
			return tq ? tq_strdup(tq, "BP_GADGET_SOFTWARE_LANGUAGE_CPP", BPLN) :  bpstrdup("BP_GADGET_SOFTWARE_LANGUAGE_CPP");
			break;
		case BP_GADGET_SOFTWARE_LANGUAGE_X86_32_ASM:
			return tq ? tq_strdup(tq, "BP_GADGET_SOFTWARE_LANGUAGE_X86_32_ASM", BPLN) :  bpstrdup("BP_GADGET_SOFTWARE_LANGUAGE_X86_32_ASM");
			break;
		case BP_GADGET_SOFTWARE_LANGUAGE_X86_64_ASM:
			return tq ? tq_strdup(tq, "BP_GADGET_SOFTWARE_LANGUAGE_X86_64_ASM", BPLN) :  bpstrdup("BP_GADGET_SOFTWARE_LANGUAGE_X86_64_ASM");
			break;
		case BP_GADGET_SOFTWARE_LANGUAGE_X86_32_BINCODE:
			return tq ? tq_strdup(tq, "BP_GADGET_SOFTWARE_LANGUAGE_X86_32_BINCODE", BPLN) :  bpstrdup("BP_GADGET_SOFTWARE_LANGUAGE_X86_32_BINCODE");
			break;
		case BP_GADGET_SOFTWARE_LANGUAGE_X86_64_BINCODE:
			return tq ? tq_strdup(tq, "BP_GADGET_SOFTWARE_LANGUAGE_X86_64_BINCODE", BPLN) :  bpstrdup("BP_GADGET_SOFTWARE_LANGUAGE_X86_64_BINCODE");
			break;
		case BP_GADGET_SOFTWARE_LANGUAGE_ARM_32_ASM:
			return tq ? tq_strdup(tq, "BP_GADGET_SOFTWARE_LANGUAGE_ARM_32_ASM", BPLN) :  bpstrdup("BP_GADGET_SOFTWARE_LANGUAGE_ARM_32_ASM");
			break;
		case BP_GADGET_SOFTWARE_LANGUAGE_ARM_64_ASM:
			return tq ? tq_strdup(tq, "BP_GADGET_SOFTWARE_LANGUAGE_ARM_64_ASM", BPLN) :  bpstrdup("BP_GADGET_SOFTWARE_LANGUAGE_ARM_64_ASM");
			break;
		case BP_GADGET_SOFTWARE_LANGUAGE_ARM_32_BINCODE:
			return tq ? tq_strdup(tq, "BP_GADGET_SOFTWARE_LANGUAGE_ARM_32_BINCODE", BPLN) :  bpstrdup("BP_GADGET_SOFTWARE_LANGUAGE_ARM_32_BINCODE");
			break;
		case BP_GADGET_SOFTWARE_LANGUAGE_ARM_64_BINCODE:
			return tq ? tq_strdup(tq, "BP_GADGET_SOFTWARE_LANGUAGE_ARM_32_BINCODE", BPLN) :  bpstrdup("BP_GADGET_SOFTWARE_LANGUAGE_ARM_32_BINCODE");
			break;
		default:
			return NULL;
	}
	return NULL;
}
char * BP_GetSoftwareLanguage ( BP_GADGET_SOFTWARE_LANGUAGE software_language , P_BP_LINKL tq ) { switch ( software_language ) { case BP_GADGET_SOFTWARE_LANGUAGE_UNSET : return tq ? tq_strdup ( tq , " " , BPLN ) : bpstrdup ( " " ) ; break ; case BP_GADGET_SOFTWARE_LANGUAGE_PHP4 : return tq ? tq_strdup ( tq , " " , BPLN ) : bpstrdup ( " " ) ; break ; case BP_GADGET_SOFTWARE_LANGUAGE_PHP5 : return tq ? tq_strdup ( tq , " " , BPLN ) : bpstrdup ( " " ) ; break ; case BP_GADGET_SOFTWARE_LANGUAGE_PERL : return tq ? tq_strdup ( tq , " " , BPLN ) : bpstrdup ( " " ) ; break ; case BP_GADGET_SOFTWARE_LANGUAGE_RUBY : return tq ? tq_strdup ( tq , " " , BPLN ) : bpstrdup ( " " ) ; break ; case BP_GADGET_SOFTWARE_LANGUAGE_BASH : return tq ? tq_strdup ( tq , " " , BPLN ) : bpstrdup ( " " ) ; break ; case BP_GADGET_SOFTWARE_LANGUAGE_SH : return tq ? tq_strdup ( tq , " " , BPLN ) : bpstrdup ( " " ) ; break ; case BP_GADGET_SOFTWARE_LANGUAGE_ASH : return tq ? tq_strdup ( tq , " " , BPLN ) : bpstrdup ( " " ) ; break ; case BP_GADGET_SOFTWARE_LANGUAGE_CSH : return tq ? tq_strdup ( tq , " " , BPLN ) : bpstrdup ( " " ) ; break ; case BP_GADGET_SOFTWARE_LANGUAGE_JSP : return tq ? tq_strdup ( tq , " " , BPLN ) : bpstrdup ( " " ) ; break ; case BP_GADGET_SOFTWARE_LANGUAGE_CFM : return tq ? tq_strdup ( tq , " " , BPLN ) : bpstrdup ( " " ) ; break ; case BP_GADGET_SOFTWARE_LANGUAGE_JAVASCRIPT_GENERIC : return tq ? tq_strdup ( tq , " " , BPLN ) : bpstrdup ( " " ) ; break ; case BP_GADGET_SOFTWARE_LANGUAGE_JAVASCRIPT_CHROME : return tq ? tq_strdup ( tq , " " , BPLN ) : bpstrdup ( " " ) ; break ; case BP_GADGET_SOFTWARE_LANGUAGE_JAVASCRIPT_FIREFOX : return tq ? tq_strdup ( tq , " " , BPLN ) : bpstrdup ( " " ) ; break ; case BP_GADGET_SOFTWARE_LANGUAGE_JAVASCRIPT_INTERNET_EXPLORER : return tq ? tq_strdup ( tq , " " , BPLN ) : bpstrdup ( " " ) ; break ; case BP_GADGET_SOFTWARE_LANGUAGE_JAVASCRIPT_OPERA : return tq ? tq_strdup ( tq , " " , BPLN ) : bpstrdup ( " " ) ; break ; case BP_GADGET_SOFTWARE_LANGUAGE_JAVASCRIPT_SAFARI : return tq ? tq_strdup ( tq , " " , BPLN ) : bpstrdup ( " " ) ; break ; case BP_GADGET_SOFTWARE_LANGUAGE_JAVASCRIPT_WEBKIT : return tq ? tq_strdup ( tq , " " , BPLN ) : bpstrdup ( " " ) ; break ; case BP_GADGET_SOFTWARE_LANGUAGE_JAVASCRIPT_SELENIUM : return tq ? tq_strdup ( tq , " " , BPLN ) : bpstrdup ( " " ) ; break ; case BP_GADGET_SOFTWARE_LANGUAGE_HTML : return tq ? tq_strdup ( tq , " " , BPLN ) : bpstrdup ( " " ) ; break ; case BP_GADGET_SOFTWARE_LANGUAGE_PGSQL : return tq ? tq_strdup ( tq , " " , BPLN ) : bpstrdup ( " " ) ; break ; case BP_GADGET_SOFTWARE_LANGUAGE_MYSQL : return tq ? tq_strdup ( tq , " " , BPLN ) : bpstrdup ( " " ) ; break ; case BP_GADGET_SOFTWARE_LANGUAGE_ORACLE : return tq ? tq_strdup ( tq , " " , BPLN ) : bpstrdup ( " " ) ; break ; case BP_GADGET_SOFTWARE_LANGUAGE_LISP : return tq ? tq_strdup ( tq , " " , BPLN ) : bpstrdup ( " " ) ; break ; case BP_GADGET_SOFTWARE_LANGUAGE_LUA : return tq ? tq_strdup ( tq , " " , BPLN ) : bpstrdup ( " " ) ; break ; case BP_GADGET_SOFTWARE_LANGUAGE_C : return tq ? tq_strdup ( tq , " " , BPLN ) : bpstrdup ( " " ) ; break ; case BP_GADGET_SOFTWARE_LANGUAGE_CPP : return tq ? tq_strdup ( tq , " " , BPLN ) : bpstrdup ( " " ) ; break ; case BP_GADGET_SOFTWARE_LANGUAGE_X86_32_ASM : return tq ? tq_strdup ( tq , " " , BPLN ) : bpstrdup ( " " ) ; break ; case BP_GADGET_SOFTWARE_LANGUAGE_X86_64_ASM : return tq ? tq_strdup ( tq , " " , BPLN ) : bpstrdup ( " " ) ; break ; case BP_GADGET_SOFTWARE_LANGUAGE_X86_32_BINCODE : return tq ? tq_strdup ( tq , " " , BPLN ) : bpstrdup ( " " ) ; break ; case BP_GADGET_SOFTWARE_LANGUAGE_X86_64_BINCODE : return tq ? tq_strdup ( tq , " " , BPLN ) : bpstrdup ( " " ) ; break ; case BP_GADGET_SOFTWARE_LANGUAGE_ARM_32_ASM : return tq ? tq_strdup ( tq , " " , BPLN ) : bpstrdup ( " " ) ; break ; case BP_GADGET_SOFTWARE_LANGUAGE_ARM_64_ASM : return tq ? tq_strdup ( tq , " " , BPLN ) : bpstrdup ( " " ) ; break ; case BP_GADGET_SOFTWARE_LANGUAGE_ARM_32_BINCODE : return tq ? tq_strdup ( tq , " " , BPLN ) : bpstrdup ( " " ) ; break ; case BP_GADGET_SOFTWARE_LANGUAGE_ARM_64_BINCODE : return tq ? tq_strdup ( tq , " " , BPLN ) : bpstrdup ( " " ) ; break ; default : return NULL ; } return NULL ; }
BP_GADGET_SOFTWARE_LANGUAGE to heap alloc string.
BP_GADGET_SOFTWARE_LANGUAGE to heap alloc string .