You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running a python 3 script that uses pwntools from file, the input builtin is overwritten with a function that mimics the python 2 behavior of input(), namely running safeeval.const(input()). I suppose this is left over from python 2. the issue seems to originate from here:
it looks like that whole part of the file is still written for python 2, as raw_input is also set while not existing in python 3. this currently breaks some of my scripts since they expect to see a string passed into stdin but it is instead evaled and throws an error.
The text was updated successfully, but these errors were encountered:
When running a python 3 script that uses pwntools from file, the
input
builtin is overwritten with a function that mimics the python 2 behavior ofinput()
, namely runningsafeeval.const(input())
. I suppose this is left over from python 2. the issue seems to originate from here:pwntools/pwnlib/term/readline.py
Line 457 in 5bba036
it looks like that whole part of the file is still written for python 2, as
raw_input
is also set while not existing in python 3. this currently breaks some of my scripts since they expect to see a string passed into stdin but it is instead evaled and throws an error.The text was updated successfully, but these errors were encountered: