File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020from lib .core .data import queries
2121from lib .core .datatype import advancedDict
2222from lib .core .enums import DBMS
23+ from lib .core .enums import PAYLOAD
2324from lib .core .enums import PLACE
2425from lib .core .exception import sqlmapNoneDataException
2526from lib .core .settings import PAYLOAD_DELIMITER
@@ -151,10 +152,10 @@ def prefixQuery(self, string):
151152 # Either if the technique is stacked queries (<stype>) or we are
152153 # replacing (<where>) the parameter original value with our
153154 # payload, do not put a space after the prefix
154- if kb .technique == 4 :
155+ if kb .technique == PAYLOAD . TECHNIQUE . STACKED :
155156 query = kb .injection .prefix
156157 elif kb .injection .clause == [2 , 3 ] or kb .injection .clause == [ 3 ]:
157- if kb .technique != 3 :
158+ if kb .technique != PAYLOAD . TECHNIQUE . UNION :
158159 query = kb .injection .prefix
159160 elif kb .technique and kb .technique in kb .injection .data :
160161 where = kb .injection .data [kb .technique ].where
Original file line number Diff line number Diff line change 1414from lib .core .data import logger
1515from lib .core .data import queries
1616from lib .core .enums import DBMS
17+ from lib .core .enums import PAYLOAD
1718from lib .core .session import setUnion
1819from lib .core .unescaper import unescaper
1920from lib .parse .html import htmlParser
@@ -118,7 +119,7 @@ def unionTest():
118119 return kb .unionTest
119120
120121 oldTechnique = kb .technique
121- kb .technique = 3
122+ kb .technique = PAYLOAD . TECHNIQUE . UNION
122123
123124 if conf .uChar == "NULL" :
124125 technique = "NULL bruteforcing"
You can’t perform that action at this time.
0 commit comments