File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 138138from lib .core .settings import IS_WIN
139139from lib .core .settings import LARGE_OUTPUT_THRESHOLD
140140from lib .core .settings import LOCALHOST
141+ from lib .core .settings import MAX_INT
141142from lib .core .settings import MIN_ENCODED_LEN_CHECK
142143from lib .core .settings import MIN_ERROR_PARSING_NON_WRITING_RATIO
143144from lib .core .settings import MIN_TIME_RESPONSES
@@ -2998,9 +2999,11 @@ def isNumPosStrValue(value):
29982999 False
29993000 >>> isNumPosStrValue('-2')
30003001 False
3002+ >>> isNumPosStrValue('100000000000000000000')
3003+ False
30013004 """
30023005
3003- return (hasattr (value , "isdigit" ) and value .isdigit () and int (value ) > 0 ) or (isinstance (value , int ) and value > 0 )
3006+ return (( hasattr (value , "isdigit" ) and value .isdigit () and int (value ) > 0 ) or (isinstance (value , int ) and value > 0 )) and int ( value ) < MAX_INT
30043007
30053008@cachedmethod
30063009def aliasToDbmsEnum (dbms ):
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.1.51 "
21+ VERSION = "1.4.1.52 "
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 )
You can’t perform that action at this time.
0 commit comments