int wmain(int argc, wchar_t *argv[]) {


    if(argc < 4) {
        INFO("ScyllaTest.exe <pid> <oep> <output_file>");
        return -1;
    }
    INFO("argv0 %S argv1 %S argv2 %S argv3 %S",argv[0],argv[1],argv[2],argv[3]);
    DWORD pid = _wtoi(argv[1]);
    // DWORD_PTR oep  = _wtoi(argv[2]);// Works if passed and integer base 10 value
    DWORD_PTR oep = wcstoul(argv[2],NULL,16);

    WCHAR *outputFile = argv[3];
    return IATAutoFix(pid, oep, outputFile);

}
Ejemplo n.º 2
0
UINT32 ScyllaDumpAndFix(int pid, int oep, WCHAR * output_file, WCHAR * cur_path, WCHAR * tmp_dump){
	return IATAutoFix(pid, oep, output_file, cur_path, tmp_dump);
}