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

pwntools in colab #1425

Closed
vikasgola opened this issue Feb 7, 2020 · 1 comment
Closed

pwntools in colab #1425

vikasgola opened this issue Feb 7, 2020 · 1 comment
Labels
term This is connected to pwnlib.term module

Comments

@vikasgola
Copy link

vikasgola commented Feb 7, 2020

After installing with

!apt-get update
!apt-get install python3 python3-pip python3-dev git libssl-dev libffi-dev build-essential
!python3 -m pip install --upgrade pip
!python3 -m pip install --upgrade git+https://github.com/Gallopsled/pwntools.git@dev

Error with python3

---------------------------------------------------------------------------

error                                     Traceback (most recent call last)

<ipython-input-12-322a4992b8f0> in <module>()
      1 
----> 2 from pwn import *
      3 
      4 socket = remote("misc.ctf.nullcon.net", 8000)
      5 t = socket.recvall()

10 frames

/usr/local/lib/python3.6/dist-packages/pwn/__init__.py in <module>()
      2 from __future__ import absolute_import
      3 
----> 4 from pwn.toplevel import *
      5 
      6 pwnlib.args.initialize()

/usr/local/lib/python3.6/dist-packages/pwn/toplevel.py in <module>()
     18 from pprint import pprint
     19 
---> 20 import pwnlib
     21 from pwnlib import *
     22 from pwnlib.asm import *

/usr/local/lib/python3.6/dist-packages/pwnlib/__init__.py in <module>()
     41 
     42 for module in __all__:
---> 43     importlib.import_module('.%s' % module, 'pwnlib')

/usr/lib/python3.6/importlib/__init__.py in import_module(name, package)
    124                 break
    125             level += 1
--> 126     return _bootstrap._gcd_import(name[level:], package, level)
    127 
    128 

/usr/local/lib/python3.6/dist-packages/pwnlib/args.py in <module>()
     60 import sys
     61 
---> 62 from pwnlib import term
     63 from pwnlib.context import context
     64 

/usr/local/lib/python3.6/dist-packages/pwnlib/term/__init__.py in <module>()
      4 import sys
      5 
----> 6 from pwnlib.term import completer
      7 from pwnlib.term import key
      8 from pwnlib.term import keymap

/usr/local/lib/python3.6/dist-packages/pwnlib/term/completer.py in <module>()
      5 import re
      6 
----> 7 from pwnlib.term import readline
      8 
      9 

/usr/local/lib/python3.6/dist-packages/pwnlib/term/readline.py in <module>()
     11 from pwnlib.term import keymap as km
     12 from pwnlib.term import term
---> 13 from pwnlib.term import text
     14 
     15 cursor = text.reverse

/usr/local/lib/python3.6/dist-packages/pwnlib/term/text.py in <module>()
    124 
    125 tether = sys.modules[__name__]
--> 126 sys.modules[__name__] = Module()

/usr/local/lib/python3.6/dist-packages/pwnlib/term/text.py in __init__(self)
     47                      ('underline', 'smul'),
     48                      ('reverse'  , 'rev')]:
---> 49             s = termcap.get(y)
     50             if not hasattr(s, 'encode'):
     51                 s = s.decode('utf-8')

/usr/local/lib/python3.6/dist-packages/pwnlib/term/termcap.py in get(cap, *args, **kwargs)
     25     s = cache.get(cap)
     26     if not s:
---> 27         s = curses.tigetstr(cap)
     28         if s == None:
     29             s = curses.tigetnum(cap)

error: must call (at least) setupterm() first
@Arusekk Arusekk added the term This is connected to pwnlib.term module label Feb 9, 2020
@Arusekk
Copy link
Member

Arusekk commented Apr 28, 2021

Closed in #1632

@Arusekk Arusekk closed this as completed Apr 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
term This is connected to pwnlib.term module
Projects
None yet
Development

No branches or pull requests

2 participants