mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-06 08:25:01 +01:00
12 lines
275 B
Python
12 lines
275 B
Python
#!/usr/bin/env python
|
|
|
|
import lief
|
|
import sys
|
|
|
|
if len(sys.argv) < 3:
|
|
print("Run: lief_inject <nativelib>.so <libfrida-gadget>.so ")
|
|
sys.exit(1)
|
|
|
|
libnative = lief.parse(sys.argv[1])
|
|
libnative.add_library(sys.argv[2]) # Inject frida-gadget
|
|
libnative.write(sys.argv[1])
|