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

input() is overwritten with python 2 like input() in python 3 #1373

Closed
mateuszdrwal opened this issue Nov 30, 2019 · 1 comment
Closed

input() is overwritten with python 2 like input() in python 3 #1373

mateuszdrwal opened this issue Nov 30, 2019 · 1 comment

Comments

@mateuszdrwal
Copy link

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:

builtins.input = input

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.

@Arusekk
Copy link
Member

Arusekk commented Dec 4, 2019

On top of my pwntools TODO-list for now

@Arusekk Arusekk closed this as completed in fcc9642 Dec 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants