frida / frida-tools

Frida CLI tools
Other
348 stars 97 forks source link

Fix creator.py #93

Closed azurda closed 2 years ago

azurda commented 2 years ago

frida-create was not working properly

C:\Users\xxx\Desktop\reversing\cmod>frida-create cmodule
usage: frida-create [options] agent|cmodule
frida-create: error: unrecognized arguments: cmodule

Output after changes:

C:\Users\xxx\Desktop\reversing\cmod>frida-create -m cmodule
Created .\meson.build
Created .\cmod.c
Created .\.gitignore
Created .\include/glib.h
Created .\include/gum/gumdefs.h
Created .\include/gum/guminterceptor.h
Created .\include/gum/gummemory.h
Created .\include/gum/gummetalarray.h
Created .\include/gum/gummetalhash.h
Created .\include/gum/gummodulemap.h
Created .\include/gum/gumprocess.h
Created .\include/gum/gumspinlock.h
Created .\include/gum/gumstalker.h
Created .\include/gum/gumtls.h
Created .\include/json-glib/json-glib.h
Created .\include/gum/arch-x86/gumx86writer.h
Created .\include/capstone.h
Created .\include/platform.h
Created .\include/x86.h

Run `meson build && ninja -C build` to build, then:
- Inject CModule using the REPL: frida Calculator -C .\build\cmod.dll
- Edit *.c, and build incrementally through `ninja -C build`
- REPL will live-reload whenever .\build\cmod.dll changes on disk
oleavr commented 2 years ago

Thanks!