Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 76c873a

Browse files
committed
minor fix
1 parent 76584ff commit 76c873a

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/core/agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ def getFields(self, query):
420420
fieldsToCastStr = fieldsSelectFrom.groups()[0]
421421
elif fieldsSelect:
422422
fieldsToCastStr = fieldsSelect.groups()[0]
423-
elif fieldsNoSelect:
423+
else:
424424
fieldsToCastStr = fieldsNoSelect
425425

426426
# Function

lib/techniques/blind/inference.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,14 +105,14 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
105105
else:
106106
expressionUnescaped = unescaper.unescape(expression)
107107

108-
if length and not isinstance(length, int) and length.isdigit():
108+
if length and isinstance(length, basestring) and length.isdigit():
109109
length = int(length)
110110

111111
if length == 0:
112112
return 0, ""
113113

114114
if lastChar > 0 and length > ( lastChar - firstChar ):
115-
length = ( lastChar - firstChar )
115+
length = lastChar - firstChar
116116

117117
showEta = conf.eta and isinstance(length, int)
118118
numThreads = min(conf.threads, length)

0 commit comments

Comments
 (0)