Great post! It's very nicẹ Thank you so much for your post
Hi all,
I've seen several people raising this issue, but so far none of the suggested solutions have resolved it for me, so I'm opening this thread in the hope of getting this resolved. Any help would be much appreciated.
Sqlmap on BT5 produced an error so I removed it, deleted the sqlmap folder and reinstalled it. Whenever I run an update, via either svn up or the excellent script by sickness (0.6) it starts to update then provides the following error:
svn: OPTIONS of 'https://svn.sqlmap.org/sqlmap': authorization failed: Could not authenticate to server: rejected Digest challenge (https://svn.sqlmap.org)
[>] Failed to update SQLmap.
If I then try and run sqlmap.py I get the following error, that I can only clear if I remove and reinstall (and don't attempt to update it):
Traceback (most recent call last):
File "./sqlmap.py", line 27, in <module>
from lib.controller.controller import start
File "/pentest/database/sqlmap/lib/controller/controller.py", line 13, in <module>
from lib.controller.action import action
File "/pentest/database/sqlmap/lib/controller/action.py", line 10, in <module>
from lib.controller.handler import setHandler
File "/pentest/database/sqlmap/lib/controller/handler.py", line 27, in <module>
from plugins.dbms.mssqlserver import MSSQLServerMap
File "/pentest/database/sqlmap/plugins/dbms/mssqlserver/__init__.py", line 14, in <module>
from plugins.dbms.mssqlserver.enumeration import Enumeration
File "/pentest/database/sqlmap/plugins/dbms/mssqlserver/enumeration.py", line 28, in <module>
from plugins.generic.enumeration import Enumeration as GenericEnumeration
File "/pentest/database/sqlmap/plugins/generic/enumeration.py", line 34, in <module>
from lib.core.common import singleTimeWarnMessage
ImportError: cannot import name singleTimeWarnMessage
Again, any help would be appreciated and sorry if this is 'yet another thread' but I can't find a solution so far.
Regards
Great post! It's very nicẹ Thank you so much for your post
I did not look at other solutions suggested in other threads, but I was able to replicate your problem and easily fix it on my own local system. I had not yet used sickness' v 0.6 script revision and had not noticed this error. i updated the script (from v0.4) and encountered exactly the same result you have posted. i did not attempt using svn, so i am not in any way ungratefully suggesting it is a problem within the script; as you already tried it both ways. i also did not check if sickness' script at v0.6 attempts to update to some higher version number than sqlmap 0.9.
that being said...an easy fix. download the tar.gz of sqlmap 0.9 from http://sqlmap.sourceforge.net
tar -zxvf it onto the desktop. copy the sqlmap folder into correct pentest dirs and overwrite/merge the files.
voila. works again
sqlmap/0.9 - automatic SQL injection and database takeover tool
http://sqlmap.sourceforge.net
Usage: python ./sqlmap.py [options]
Options:
--version show program's version number and exit
-h, --help show this help message and exit
-v VERBOSE Verbosity level: 0-6 (default 1)
Target:
At least one of these options has to be specified to set the source to
get target urls from.
-d DIRECT Direct connection to the database
-u URL, --url=URL Target url
-l LIST Parse targets from Burp or WebScarab proxy logs
-r REQUESTFILE Load HTTP request from a file
-g GOOGLEDORK Process Google dork results as target urls
-c CONFIGFILE Load options from a configuration INI file
etc. hope this helps you.
Thanks for the update.
I've 'worked around' it in that I can put a fresh install on and use it. However I'd like to be able to update it every few days, and can't as any attempt results in the authentication realm error and a corrupt sqlmap.
I had the same issue. I removed the BT5 version on sqlmap and downloaded the 0.9 from sourceforge.
Issue the commandupdates without issue.HTML Code:python sqlmap.py --update