@@ -61,7 +61,7 @@ def __findUnionCharCount(comment, place, parameter, value, prefix, suffix, where
6161 min_ , max_ = MAX_RATIO , MIN_RATIO
6262
6363 for count in range (lowerCount , upperCount + 1 ):
64- query = agent .forgeInbandQuery ('' , - 1 , count , comment , prefix , suffix , conf .uChar )
64+ query = agent .forgeInbandQuery ('' , - 1 , count , comment , prefix , suffix , kb .uChar )
6565 payload = agent .payload (place = place , parameter = parameter , newValue = query , where = where )
6666 page , _ = Request .queryPage (payload , place = place , content = True , raise404 = False )
6767 ratio = comparison (page , True ) or MIN_RATIO
@@ -122,7 +122,7 @@ def __unionPosition(comment, place, parameter, value, prefix, suffix, count, whe
122122 randQueryUnescaped = unescaper .unescape (randQueryProcessed )
123123
124124 # Forge the inband SQL injection request
125- query = agent .forgeInbandQuery (randQueryUnescaped , position , count , comment , prefix , suffix , conf .uChar )
125+ query = agent .forgeInbandQuery (randQueryUnescaped , position , count , comment , prefix , suffix , kb .uChar )
126126 payload = agent .payload (place = place , parameter = parameter , newValue = query , where = where )
127127
128128 # Perform the request
@@ -141,7 +141,7 @@ def __unionPosition(comment, place, parameter, value, prefix, suffix, count, whe
141141
142142 if content and phrase in content :
143143 validPayload = payload
144- vector = (position , count , comment , prefix , suffix , conf .uChar , where )
144+ vector = (position , count , comment , prefix , suffix , kb .uChar , where )
145145
146146 if where == PAYLOAD .WHERE .ORIGINAL :
147147 # Prepare expression with delimiters
@@ -151,15 +151,15 @@ def __unionPosition(comment, place, parameter, value, prefix, suffix, count, whe
151151 randQueryUnescaped2 = unescaper .unescape (randQueryProcessed2 )
152152
153153 # Confirm that it is a full inband SQL injection
154- query = agent .forgeInbandQuery (randQueryUnescaped , position , count , comment , prefix , suffix , conf .uChar , multipleUnions = randQueryUnescaped2 )
154+ query = agent .forgeInbandQuery (randQueryUnescaped , position , count , comment , prefix , suffix , kb .uChar , multipleUnions = randQueryUnescaped2 )
155155 payload = agent .payload (place = place , parameter = parameter , newValue = query , where = PAYLOAD .WHERE .NEGATIVE )
156156
157157 # Perform the request
158158 page , headers = Request .queryPage (payload , place = place , content = True , raise404 = False )
159159 content = "%s%s" .lower () % (page or "" , listToStrValue (headers .headers if headers else None ) or "" )
160160
161161 if content and ((phrase in content and phrase2 not in content ) or (phrase not in content and phrase2 in content )):
162- vector = (position , count , comment , prefix , suffix , conf .uChar , PAYLOAD .WHERE .NEGATIVE )
162+ vector = (position , count , comment , prefix , suffix , kb .uChar , PAYLOAD .WHERE .NEGATIVE )
163163
164164 if not unionErrorCase :
165165 break
@@ -190,7 +190,7 @@ def __unionTestByCharBruteforce(comment, place, parameter, value, prefix, suffix
190190
191191 validPayload = None
192192 vector = None
193- query = agent .prefixQuery ("UNION ALL SELECT %s" % conf .uChar )
193+ query = agent .prefixQuery ("UNION ALL SELECT %s" % kb .uChar )
194194 total = conf .uColsStop + 1 - conf .uColsStart
195195
196196 count = __findUnionCharCount (comment , place , parameter , value , prefix , suffix )
@@ -200,7 +200,7 @@ def __unionTestByCharBruteforce(comment, place, parameter, value, prefix, suffix
200200 query = query [:- len (FROM_TABLE [Backend .getIdentifiedDbms ()])]
201201
202202 if count :
203- query += ", %s" % conf .uChar
203+ query += ", %s" % kb .uChar
204204
205205 if Backend .getIdentifiedDbms () in FROM_TABLE :
206206 query += FROM_TABLE [Backend .getIdentifiedDbms ()]
0 commit comments