File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1274,7 +1274,7 @@ def checkPipedInput():
12741274 # Reference: https://stackoverflow.com/a/33873570
12751275 """
12761276
1277- return not os . isatty (sys .stdin . fileno ()) if hasattr (sys .stdin , " fileno" ) else False
1277+ return hasattr (sys .stdin , " fileno" ) and not os . isatty (sys .stdin . fileno ())
12781278
12791279def isZipFile (filename ):
12801280 """
@@ -1364,9 +1364,9 @@ def parsePasswordHash(password):
13641364 >>> kb.forcedDbms = popValue()
13651365 """
13661366
1367- blank = " " * 8
1367+ blank = ' ' * 8
13681368
1369- if isNoneValue (password ) or password == " " :
1369+ if isNoneValue (password ) or password == ' ' :
13701370 retVal = NULL
13711371 else :
13721372 retVal = password
@@ -1510,7 +1510,7 @@ def parseTargetDirect():
15101510 if details :
15111511 conf .dbms = details .group ("dbms" )
15121512
1513- if details .group (' credentials' ):
1513+ if details .group (" credentials" ):
15141514 conf .dbmsUser = details .group ("user" )
15151515 conf .dbmsPass = details .group ("pass" )
15161516 else :
@@ -1622,7 +1622,7 @@ def parseTargetUrl():
16221622
16231623 originalUrl = conf .url
16241624
1625- if re .search (r"\[.+\]" , conf .url ) and not socket .has_ipv6 :
1625+ if re .search (r":// \[.+\]" , conf .url ) and not socket .has_ipv6 :
16261626 errMsg = "IPv6 communication is not supported "
16271627 errMsg += "on this platform"
16281628 raise SqlmapGenericException (errMsg )
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.4.5.23 "
21+ VERSION = "1.4.5.24 "
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 @@ -154,6 +154,7 @@ class _(object):
154154 except AttributeError :
155155 def _ (self ):
156156 return getattr (self , "hdrs" ) or {}
157+
157158 result .info = types .MethodType (_ , result )
158159
159160 if not hasattr (result , "read" ):
@@ -164,6 +165,7 @@ def _(self, length=None):
164165 retVal = ""
165166 finally :
166167 return retVal
168+
167169 result .read = types .MethodType (_ , result )
168170
169171 if not getattr (result , "url" , None ):
Original file line number Diff line number Diff line change @@ -534,4 +534,4 @@ def main():
534534 sys .exit (getattr (os , "_exitcode" , 0 ))
535535else :
536536 # cancelling postponed imports (because of Travis CI checks)
537- from lib .controller .controller import start
537+ __import__ ( " lib.controller.controller" )
You can’t perform that action at this time.
0 commit comments