2424from lib .core .common import hashDBRetrieve
2525from lib .core .common import hashDBWrite
2626from lib .core .common import initTechnique
27+ from lib .core .common import isDigit
2728from lib .core .common import isNoneValue
2829from lib .core .common import isNumPosStrValue
2930from lib .core .common import isTechniqueAvailable
@@ -235,7 +236,7 @@ def _goInferenceProxy(expression, fromUser=False, batch=False, unpack=True, char
235236 elif choice == 'Q' :
236237 raise SqlmapUserQuitException
237238
238- elif choice . isdigit ( ) and int (choice ) > 0 and int (choice ) <= count :
239+ elif isDigit ( choice ) and int (choice ) > 0 and int (choice ) <= count :
239240 stopLimit = int (choice )
240241
241242 infoMsg = "sqlmap is now going to retrieve the "
@@ -246,7 +247,7 @@ def _goInferenceProxy(expression, fromUser=False, batch=False, unpack=True, char
246247 message = "how many? "
247248 stopLimit = readInput (message , default = "10" )
248249
249- if not stopLimit . isdigit ( ):
250+ if not isDigit ( stopLimit ):
250251 errMsg = "invalid choice"
251252 logger .error (errMsg )
252253
@@ -261,7 +262,7 @@ def _goInferenceProxy(expression, fromUser=False, batch=False, unpack=True, char
261262
262263 return None
263264
264- elif count and not count . isdigit ( ):
265+ elif count and not isDigit ( count ):
265266 warnMsg = "it was not possible to count the number "
266267 warnMsg += "of entries for the SQL query provided. "
267268 warnMsg += "sqlmap will assume that it returns only "
0 commit comments