Skip to content

Commit

Permalink
Fix character escaping in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
peace-maker committed Oct 26, 2024
1 parent 0c0731a commit 65b0029
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pwnlib/tubes/tube.py
Original file line number Diff line number Diff line change
Expand Up @@ -1115,10 +1115,10 @@ def upload_manually(self, data, target_path = './payload', prompt = b'$', chunk_
>>> l = listen()
>>> l.spawn_process('/bin/sh')
>>> r = remote('127.0.0.1', l.lport)
>>> r.upload_manually(b'some\xca\xfedata\n', prompt=b'', chmod_flags='')
>>> r.upload_manually(b'some\\xca\\xfedata\\n', prompt=b'', chmod_flags='')
>>> r.sendline(b'cat ./payload')
>>> r.recvline()
b'some\xca\xfedata\n'
b'some\\xca\\xfedata\\n'
>>> r.upload_manually(cyclic(0x1000), target_path='./cyclic_pattern', prompt=b'', chunk_size=0x10, compression='gzip')
>>> r.sendline(b'sha256sum ./cyclic_pattern')
Expand All @@ -1129,7 +1129,7 @@ def upload_manually(self, data, target_path = './payload', prompt = b'$', chunk_
>>> r.upload_manually(blob.data, prompt=b'')
>>> r.sendline(b'./payload')
>>> r.recvline()
b'Hello world!\n'
b'Hello world!\\n'
>>> r.close()
>>> l.close()
"""
Expand Down

0 comments on commit 65b0029

Please sign in to comment.