This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const outputPath = "C::\\put_your_path\\syscall.csv"; | |
var module = Process.getModuleByName("ntdll.dll"); | |
var symbols = module.enumerateExports(); | |
var csvString = "Name,Number\n"; | |
for (var i = 0; i < symbols.length; i++) { | |
const sysName = symbols[i].name; | |
if (sysName.indexOf("Nt") == 0 && sysName.indexOf("Ntdll") == -1) { | |
const symAddr = symbols[i].address; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//frida -l enumsymbol.js CalculatorApp.exe | |
function dump(pointer, length) { | |
var buf = Memory.readByteArray(pointer, length); | |
console.log( | |
hexdump(buf, { | |
offset: 0, | |
length: length, | |
header: true, | |
ansi: true, | |
}) |