Skip to content

Commit

Permalink
Merge branch 'beta' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
zachriggle committed Jun 12, 2017
2 parents b83db46 + 4552624 commit 094e44f
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/source/intro.rst
Expand Up @@ -72,7 +72,7 @@ a ``process`` tube.

::

>>> shell = ssh('bandit0', 'bandit.labs.overthewire.org', password='bandit0')
>>> shell = ssh('bandit0', 'bandit.labs.overthewire.org', password='bandit0', port=2220)
>>> shell['whoami']
'bandit0'
>>> shell.download_file('/etc/motd')
Expand Down
2 changes: 1 addition & 1 deletion examples/ssh.py
Expand Up @@ -4,7 +4,7 @@

from pwn import *

shell = ssh(host='bandit.labs.overthewire.org',user='bandit0',password='bandit0')
shell = ssh(host='bandit.labs.overthewire.org',user='bandit0',password='bandit0', port=2220)

# Show basic command syntax
log.info("username: %s" % shell.whoami())
Expand Down
4 changes: 2 additions & 2 deletions pwnlib/data/templates/pwnup.mako
Expand Up @@ -117,9 +117,9 @@ start = local if args.LOCAL else remote
%else:
def start(argv=[], *a, **kw):
if args.GDB:
io = gdb.debug([${binary_repr}] + argv, gdbscript=gdbscript, *a, **kw)
return gdb.debug([${binary_repr}] + argv, gdbscript=gdbscript, *a, **kw)
else:
io = process([${binary_repr}] + argv, *a, **kw)
return process([${binary_repr}] + argv, *a, **kw)
%endif

#===========================================================
Expand Down
4 changes: 2 additions & 2 deletions pwnlib/gdb.py
Expand Up @@ -524,7 +524,7 @@ def attach(target, gdbscript = None, exe = None, need_ptrace_scope = True, gdb_a
.. code-block:: python
# Connect to the SSH server
shell = ssh('bandit0', 'bandit.labs.overthewire.org', password='bandit0')
shell = ssh('bandit0', 'bandit.labs.overthewire.org', password='bandit0', port=2220)
# Start a process on the server
cat = shell.process(['cat'])
Expand Down Expand Up @@ -763,7 +763,7 @@ def find_module_addresses(binary, ssh=None, ulimit=False):
Example:
>>> with context.local(log_level=9999): # doctest: +SKIP
... shell = ssh(host='bandit.labs.overthewire.org',user='bandit0',password='bandit0')
... shell = ssh(host='bandit.labs.overthewire.org',user='bandit0',password='bandit0', port=2220)
... bash_libs = gdb.find_module_addresses('/bin/bash', shell)
>>> os.path.basename(bash_libs[0].path) # doctest: +SKIP
'libc.so.6'
Expand Down
1 change: 1 addition & 0 deletions pwnlib/tubes/process.py
Expand Up @@ -11,6 +11,7 @@
import resource
import select
import signal
import stat
import subprocess
import time
import tty
Expand Down
2 changes: 1 addition & 1 deletion pwnlib/tubes/ssh.py
Expand Up @@ -1908,7 +1908,7 @@ def aslr(self):
Example:
>>> s = ssh("esoteric3", "wargame.w3challs.com", 20202, "esoteric3")
>>> s = ssh("travis", "example.pwnme")
>>> s.aslr
True
"""
Expand Down

0 comments on commit 094e44f

Please sign in to comment.