Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

type error number format exception #72

Closed
zTrix opened this issue Aug 6, 2014 · 1 comment
Closed

type error number format exception #72

zTrix opened this issue Aug 6, 2014 · 1 comment
Milestone

Comments

@zTrix
Copy link

zTrix commented Aug 6, 2014

:( examples # python2 ./ssh_forward.py
[+] Trying to bind to 0.0.0.0 on port 1337: OK
[+] Waiting: Got connection from 127.0.0.1 on port 56711
Traceback (most recent call last):
  File "./ssh_forward.py", line 9, in <module>
    listen(1337).wait_for_connection() <> ssh('root', '127.0.0.1', ' ').connect_remote('google.com', 80)
  File "/root/pwntools/pwnlib/tubes/ssh.py", line 274, in __init__
    h = log.waitfor('Connecting to %s on port %d' % (host, port), log_level = self.log_level)
TypeError: %d format: a number is required, not str

script below

:( examples #
  4 """
  5
  6 from pwn import *
  7
  8 while True:
  9     listen(1337).wait_for_connection() <> ssh('root', '127.0.0.1', password).connect_remote('google.com', 80)
 10
 11 # now point your browser (or curl(1)) to http://localhost:1337
@br0ns
Copy link
Contributor

br0ns commented Aug 6, 2014

Some context: Idolf was showing off some of pwnlibs' features and we got the above error. It is due to him passing the password where a port number was expected. So not a bug.

Closing.

@br0ns br0ns closed this as completed Aug 6, 2014
@zachriggle zachriggle added this to the 2.2 milestone Dec 15, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants