Skip to content

Commit

Permalink
Fix python symlink related tests
Browse files Browse the repository at this point in the history
  • Loading branch information
peace-maker committed Jun 23, 2023
1 parent 5a0f81c commit 5fc22fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pwnlib/libcdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def unstrip_libc(filename):
>>> libc = ELF(filename)
>>> hex(libc.symbols.main_arena)
'0x219c80'
>>> unstrip_libc(which('python'))
>>> unstrip_libc(which('python3'))
False
>>> filename = search_by_build_id('d1704d25fbbb72fa95d517b883131828c0883fe9', unstrip=True)
>>> 'main_arena' in ELF(filename).symbols
Expand Down
4 changes: 2 additions & 2 deletions pwnlib/tubes/ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -1151,10 +1151,10 @@ def system(self, process, tty = True, wd = None, env = None, timeout = None, raw
Examples:
>>> s = ssh(host='example.pwnme')
>>> py = s.run('python -i')
>>> py = s.run('python3 -i')
>>> _ = py.recvuntil(b'>>> ')
>>> py.sendline(b'print(2+2)')
>>> py.sendline(b'exit')
>>> py.sendline(b'exit()')
>>> print(repr(py.recvline()))
b'4\n'
>>> s.system('env | grep -a AAAA', env={'AAAA': b'\x90'}).recvall()
Expand Down

0 comments on commit 5fc22fa

Please sign in to comment.