Skip to content

Commit

Permalink
Fix gdb for remote processes
Browse files Browse the repository at this point in the history
  • Loading branch information
Arusekk committed Jul 8, 2019
1 parent dce8fde commit 544ae93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pwnlib/gdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ def attach(target, gdbscript = None, exe = None, need_ptrace_scope = True, gdb_a

tmpfile = shell.mktemp()
gdbscript = 'shell rm %s\n%s' % (tmpfile, gdbscript)
shell.upload_data(gdbscript or '', tmpfile)
shell.upload_data(context._encode(gdbscript), tmpfile)

cmd = ['ssh', '-C', '-t', '-p', str(shell.port), '-l', shell.user, shell.host]
if shell.password:
Expand Down

0 comments on commit 544ae93

Please sign in to comment.