mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-07-29 20:46:36 +00:00
Taking some goodies from Pull request #284
This commit is contained in:
parent
6b39e661a7
commit
0f191f624c
18 changed files with 49 additions and 55 deletions
|
|
@ -39,7 +39,7 @@ def checkDependencies():
|
|||
import pyodbc
|
||||
elif dbmsName == DBMS.FIREBIRD:
|
||||
import kinterbasdb
|
||||
except ImportError, _:
|
||||
except ImportError:
|
||||
warnMsg = "sqlmap requires '%s' third-party library " % data[1]
|
||||
warnMsg += "in order to directly connect to the database "
|
||||
warnMsg += "%s. Download from %s" % (dbmsName, data[2])
|
||||
|
|
@ -55,7 +55,7 @@ def checkDependencies():
|
|||
import impacket
|
||||
debugMsg = "'python-impacket' third-party library is found"
|
||||
logger.debug(debugMsg)
|
||||
except ImportError, _:
|
||||
except ImportError:
|
||||
warnMsg = "sqlmap requires 'python-impacket' third-party library for "
|
||||
warnMsg += "out-of-band takeover feature. Download from "
|
||||
warnMsg += "http://code.google.com/p/impacket/"
|
||||
|
|
@ -66,7 +66,7 @@ def checkDependencies():
|
|||
import ntlm
|
||||
debugMsg = "'python-ntlm' third-party library is found"
|
||||
logger.debug(debugMsg)
|
||||
except ImportError, _:
|
||||
except ImportError:
|
||||
warnMsg = "sqlmap requires 'python-ntlm' third-party library for "
|
||||
warnMsg += "if you plan to attack a web application behind NTLM "
|
||||
warnMsg += "authentication. Download from http://code.google.com/p/python-ntlm/"
|
||||
|
|
@ -78,7 +78,7 @@ def checkDependencies():
|
|||
import pyreadline
|
||||
debugMsg = "'python-pyreadline' third-party library is found"
|
||||
logger.debug(debugMsg)
|
||||
except ImportError, _:
|
||||
except ImportError:
|
||||
warnMsg = "sqlmap requires 'pyreadline' third-party library to "
|
||||
warnMsg += "be able to take advantage of the sqlmap TAB "
|
||||
warnMsg += "completion and history support features in the SQL "
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ See the file 'doc/COPYING' for copying permission
|
|||
|
||||
try:
|
||||
from crypt import crypt
|
||||
except ImportError, _:
|
||||
except ImportError:
|
||||
from thirdparty.fcrypt.fcrypt import crypt
|
||||
|
||||
_multiprocessing = None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue