-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
75 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,3 +22,5 @@ python: | |
install: | ||
- method: pip | ||
path: . | ||
extra_requirements: | ||
- dev |
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ Native | |
exceptions | ||
process | ||
memory | ||
modules | ||
threads | ||
tracing | ||
types |
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
======= | ||
Modules | ||
======= | ||
|
||
Modules | ||
======= | ||
|
||
.. autoclass:: revenge.modules.Modules | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
Module | ||
====== | ||
|
||
.. autoclass:: revenge.modules.Module | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains 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 characters
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
======= | ||
Modules | ||
======= | ||
|
||
For ``revenge``, a module is any loaded library or shared library. | ||
|
||
Listing Modules | ||
=============== | ||
|
||
.. code-block:: python3 | ||
# List current modules | ||
print(process.modules) | ||
""" | ||
+--------------------+----------------+-----------+---------------------------------------------------------------+ | ||
| name | base | size | path | | ||
+--------------------+----------------+-----------+---------------------------------------------------------------+ | ||
| test2 | 0x557781b84000 | 0x202000 | /home/user/tmp/test2 | | ||
| linux-vdso.so.1 | 0x7ffd3b5ee000 | 0x2000 | linux-vdso.so.1 | | ||
| libc-2.27.so | 0x7fc6a8499000 | 0x3ed000 | /lib/x86_64-linux-gnu/libc-2.27.so | | ||
| ld-2.27.so | 0x7fc6a888a000 | 0x229000 | /lib/x86_64-linux-gnu/ld-2.27.so | | ||
| libpthread-2.27.so | 0x7fc6a827a000 | 0x21b000 | /lib/x86_64-linux-gnu/libpthread-2.27.so | | ||
| frida-agent-64.so | 0x7fc6a6294000 | 0x17ba000 | /tmp/frida-7846ef0864a82f3695599c271bf7b0f1/frida-agent-64.so | | ||
| libresolv-2.27.so | 0x7fc6a6079000 | 0x219000 | /lib/x86_64-linux-gnu/libresolv-2.27.so | | ||
| libdl-2.27.so | 0x7fc6a5e75000 | 0x204000 | /lib/x86_64-linux-gnu/libdl-2.27.so | | ||
| librt-2.27.so | 0x7fc6a5c6d000 | 0x208000 | /lib/x86_64-linux-gnu/librt-2.27.so | | ||
| libm-2.27.so | 0x7fc6a58cf000 | 0x39e000 | /lib/x86_64-linux-gnu/libm-2.27.so | | ||
+--------------------+----------------+-----------+---------------------------------------------------------------+ | ||
""" | ||
Module Lookup | ||
============= | ||
|
||
Instead of enumerating modules, you can look up a module by it's full name, a | ||
glob name, or by giving an address. | ||
|
||
.. code-block:: python3 | ||
# Get the base address for specific module | ||
hex(process.modules['test2'].base) | ||
0x557781b84000 | ||
# Or by glob | ||
process.modules['libc*'] | ||
"""<Module libc-2.27.so @ 0x7f282f7aa000>""" | ||
# Or resolve address into corresponding module | ||
process.modules[0x7f282f7ab123] | ||
"""<Module libc-2.27.so @ 0x7f282f7aa000>""" |
This file contains 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 characters