File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818from thirdparty .six import unichr as _unichr
1919
2020# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21- VERSION = "1.3.6.57 "
21+ VERSION = "1.3.6.58 "
2222TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
2323TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
2424VERSION_STRING = "sqlmap/%s#%s" % ('.' .join (VERSION .split ('.' )[:- 1 ]) if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] == '0' else VERSION , TYPE )
Original file line number Diff line number Diff line change 1818from lib .core .common import getPageWordSet
1919from lib .core .common import hashDBWrite
2020from lib .core .common import isNoneValue
21+ from lib .core .common import ntToPosixSlashes
2122from lib .core .common import popValue
2223from lib .core .common import pushValue
2324from lib .core .common import randomInt
@@ -298,6 +299,19 @@ def columnExistsThread():
298299@stackedmethod
299300def fileExists (pathFile ):
300301 retVal = []
302+
303+ message = "which common files file do you want to use?\n "
304+ message += "[1] default '%s' (press Enter)\n " % pathFile
305+ message += "[2] custom"
306+ choice = readInput (message , default = '1' )
307+
308+ if choice == '2' :
309+ message = "what's the custom common files file location?\n "
310+ pathFile = readInput (message ) or pathFile
311+
312+ infoMsg = "checking files existence using items from '%s'" % pathFile
313+ logger .info (infoMsg )
314+
301315 paths = getFileItems (pathFile , unique = True )
302316
303317 kb .bruteMode = True
@@ -321,7 +335,7 @@ def fileExistsThread():
321335 while kb .threadContinue :
322336 kb .locks .count .acquire ()
323337 if threadData .shared .count < threadData .shared .limit :
324- path = paths [threadData .shared .count ]
338+ path = ntToPosixSlashes ( paths [threadData .shared .count ])
325339 threadData .shared .count += 1
326340 kb .locks .count .release ()
327341 else :
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ def stackedReadFile(self, remoteFile):
8989
9090 result = []
9191 txtTbl = self .fileTblName
92- hexTbl = "%shex" % self .fileTblName
92+ hexTbl = "%s% shex" % ( self .fileTblName , randomStr ())
9393
9494 self .createSupportTbl (txtTbl , self .tblField , "text" )
9595 inject .goStacked ("DROP TABLE %s" % hexTbl )
You can’t perform that action at this time.
0 commit comments