FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
frida-python/examples/inject_library/inject_file.py at main · feicong/frida-python · GitHub
feicong
/
frida-python
Public
forked from
frida/frida-python
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Pull requests
0
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
frida-python
/
examples
/
inject_library
/
inject_file.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
24 lines (17 loc) · 519 Bytes
Breadcrumbs
frida-python
/
examples
/
inject_library
/
inject_file.py
Copy path
File metadata and controls
24 lines (17 loc) · 519 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#
# Compile example.dylib like this:
# $ clang -shared example.c -o ~/.Trash/example.dylib
#
# Then run:
# $ python inject_file.py Twitter ~/.Trash/example.dylib
#
import
sys
import
frida
def
on_uninjected
(
id
):
print
(
"on_uninjected id=%u"
%
id
)
(
target
,
library_path
)
=
sys
.
argv
[
1
:]
device
=
frida
.
get_local_device
()
device
.
on
(
"uninjected"
,
on_uninjected
)
id
=
device
.
inject_library_file
(
target
,
library_path
,
"example_main"
,
"w00t"
)
print
(
"*** Injected, id=%u -- hit Ctrl+D to exit!"
%
id
)
sys
.
stdin
.
read
()
Back
|
FazBrowse Home
|
New Git URL