Created
April 23, 2020 04:30
-
-
Save Ayrx/64c7da9925bd708b4efb2c9b2843dd5c to your computer and use it in GitHub Desktop.
Revisions
-
Ayrx created this gist
Apr 23, 2020 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ var m = "python2.7"; var ex = "PyTraceBack_Type"; var module = Process.getModuleByName(m) console.log(JSON.stringify(module)); for (var e of module.enumerateExports()) { if (e.name == ex) { console.log(JSON.stringify(e)); } } console.log("A: " + module.findExportByName(ex)); console.log("B: " + Module.findExportByName(m, ex)); console.log("C: " + Module.findExportByName(null, ex));