Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fixed hanging on stdin in API mode. #4657

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

Merged
merged 2 commits into from
Oct 8, 2021

Conversation

pdelagrave
Copy link
Contributor

@pdelagrave pdelagrave commented Apr 26, 2021

Fixed regression introduced in 1.4.11

EDIT: initial instructions to reproduce was incorrect.

sqlmap assumed that if stdin was present and wasn't a TTY, then it must expect and read a target list from stdin.
In API mode (i.e. lauched by sqlmapapi.py), sqlmap will have a valid stdin file and won't be a TTY, yet we don't want to use the stdin to pass a target list, all the configuration is to be passed via the -c file option.

This caused sqlmap to be unusable in API mode with sqlmapapi.py; executions would stall early with that log message: using 'STDIN' for parsing targets list.

Fixed regression introduced in 1.4.11
@pdelagrave
Copy link
Contributor Author

Hello @stamparm
Do you have time to look at this PR? It's making the API mode unusable since 1.4.11.
Thanks!

@qinghuan1998
Copy link

I had the same problem. When I ran the sqlmap.py program in the corresponding directory in PyCharm using os.system(), it prompted me with the following message:
[INFO] using 'STDIN' for parsing targets list

@stamparm
Copy link
Member

stamparm commented Oct 8, 2021

@pdelagrave sorry man, i didn't get a notification for this in my email. on it

@stamparm stamparm merged commit b65c176 into sqlmapproject:master Oct 8, 2021
stamparm added a commit that referenced this pull request Oct 8, 2021
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

Successfully merging this pull request may close these issues.

3 participants