Added Frida script for events listening
This commit is contained in:
@@ -7,6 +7,7 @@ Usage:
|
||||
python frida_launcher.py # spawn nemo.exe
|
||||
python frida_launcher.py --attach <PID> # attach to running process
|
||||
python frida_launcher.py --exe path/nemo.exe # custom exe path
|
||||
python frida_launcher.py --script bloomoo_event_trace.js
|
||||
|
||||
Alternatively, use the Frida CLI directly:
|
||||
frida -l bloomoo_trace.js -f nemo.exe
|
||||
@@ -48,6 +49,10 @@ def main():
|
||||
"--exe", default="nemo.exe",
|
||||
help="Path to nemo.exe (default: nemo.exe in script dir)"
|
||||
)
|
||||
parser.add_argument(
|
||||
"--script", default="bloomoo_trace.js",
|
||||
help="Frida JS script to load (default: bloomoo_trace.js)"
|
||||
)
|
||||
parser.add_argument(
|
||||
"--attach", type=int, default=0, metavar="PID",
|
||||
help="Attach to an already-running process instead of spawning"
|
||||
@@ -67,7 +72,9 @@ def main():
|
||||
args = parser.parse_args()
|
||||
|
||||
script_dir = os.path.dirname(os.path.abspath(__file__))
|
||||
js_path = os.path.join(script_dir, "bloomoo_trace.js")
|
||||
js_path = args.script
|
||||
if not os.path.isabs(js_path):
|
||||
js_path = os.path.join(script_dir, js_path)
|
||||
|
||||
if not os.path.isfile(js_path):
|
||||
print(f"[!] Script not found: {js_path}")
|
||||
|
||||
Reference in New Issue
Block a user