mirror of
https://github.com/Gallopsled/pwntools.git
synced 2026-10-12 02:02:27 +00:00
* Fix issues related with debugging * Update pwnlib/tubes/process.py Co-Authored-By: Arusekk <[email protected]> * Enable doctest for find_module_addresses * Experiment about adding doctests to gdb.py * Add doctests for most functions in gdb.py * Remove 'file' statement in gdb script * Encode cyclic alphabet * Fix travis build Co-authored-by: Arusekk <[email protected]>
13 lines
175 B
Python
13 lines
175 B
Python
"""
|
|
Example showing `pwnlib.gdb.attach()`
|
|
"""
|
|
|
|
from pwn import *
|
|
|
|
bash = process('/bin/bash')
|
|
gdb.attach(bash, gdbscript = '''
|
|
p "hello from pwnlib"
|
|
c
|
|
''')
|
|
bash.interactive()
|