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

Bug with scan #2472

Closed
Kuhicop opened this issue Apr 10, 2017 · 10 comments
Closed

Bug with scan #2472

Kuhicop opened this issue Apr 10, 2017 · 10 comments
Labels

Comments

@Kuhicop
Copy link

Kuhicop commented Apr 10, 2017

[22:13:18] [INFO] parsing HTTP request from '/root/Escritorio/scan.txt'
[22:13:18] [CRITICAL] the specified HTTP request file does not exist

I replaced files for this files you fix:
56b6bf7

But still not working

stamparm added a commit that referenced this issue Apr 11, 2017
@stamparm
Copy link
Member

That file doesn't exist and you are raising the Issue? How is that a bug. I've updated now the sqlmap to change the order of those messages (for you to not open new Issues), but still I don't see what's the bug here.

@Kuhicop
Copy link
Author

Kuhicop commented Apr 11, 2017

LOOOOL
of course the file exist, it's a request from burp suite in .txt, and it's there ~/Escritorio/scan.txt

@stamparm
Copy link
Member

Basically, your report is trivial at least. It looks like the problem is on your side. Also, you haven't spend a second on debugging it. Please don't raise any more issues

@Kuhicop
Copy link
Author

Kuhicop commented Apr 11, 2017

I updated as you posted
@stamparm Update for an Issue #2472
I didn't see it, sorry. I'm getting the following error now when I open sqlmap

Traceback (most recent call last):
File "/usr/bin/sqlmap", line 35, in
from lib.controller.controller import start
File "/usr/share/sqlmap/lib/controller/controller.py", line 66, in
from lib.core.target import initTargetEnv
File "/usr/share/sqlmap/lib/core/target.py", line 47, in
from lib.core.option import _setDBMS
File "/usr/share/sqlmap/lib/core/option.py", line 60, in
from lib.core.common import saveConfig
ImportError: cannot import name saveConfig

@stamparm
Copy link
Member

stamparm commented Apr 12, 2017 via email

@noraj
Copy link

noraj commented Jul 14, 2020

https://sqlmap-users.narkive.com/Xp6pjiG4/error-while-running-sqlmap-with-request-file

  • Relative path ❌ sqlmap -r test.req
  • Absolute path ✔️ sqlmap -r "$(pwd)/test.req"

@stamparm
Copy link
Member

@noraj

Relative path ✔️ :

1

Absolute path ✔️ :

2

p.s. I guess that your sqlmap script is actually responsible for all your mess (most probably changing the pwd during the runtime)
p.p.s. tested with 3 different versions: pip installed, apt installed and regular git cloned source

@noraj
Copy link

noraj commented Jul 15, 2020

2 options so:

  1. The issue came from SQLmap and was fixed between 1.4.4.1 and 1.4.4.9
  2. The issue is coming from AL packaging: https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/sqlmap

It seems to be more likely option 2.

Update: it is option 2. https://bugs.archlinux.org/task/56287?project=5&string=sqlmapbut @stamparm it seems the guy had a hard time to create a proper wrapper. Can you take a look at it?

@stamparm
Copy link
Member

stamparm commented Jul 16, 2020

@noraj:

  1. As I can see from https://bugs.archlinux.org/task/56287#comment191051, somebody already provided a "way around"
  2. Comments as "Again, I don't see how this could work sensibly without a proper entry point. E.g. using setup.py, which the upstream project doesn't have." are fun because there is always a PyPI version (e.g. available through pip install sqlmap) of a start-of-the-month sqlmap version <- thus, there is no need to use git clone version
  3. Regarding point 2). People that complaint that "there is no proper environment" for a simple dependency-less python projects that runs out of the box, while that same "environment problem" is regarding a "problem" with changing of the running directory in some well-intuitive "why" it doesn't work situation, are FUN FUN FUN

@noraj
Copy link

noraj commented Jul 16, 2020

Yes it's an issue with ArchLinux packaging. Using pip is out of question when talking about distro packaging. But the the AL maintainer is wrong there is not need of setup.py A setup.py would effectively ease the packaging but it's possible to do without it.
Actually 2 people in the AL issue said they fixed it and it was working but it seems the AL maintainer has a hard time to understand. We just need to way for the patch to be accepted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants