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

Skip to content

Commit 4649450

Browse files
committed
Fix for an Issue #137
1 parent 0d8fca3 commit 4649450

3 files changed

Lines changed: 1 addition & 8 deletions

File tree

lib/core/option.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1555,7 +1555,6 @@ def __setKnowledgeBaseAttributes(flushAll=True):
15551555
kb.threadException = False
15561556
kb.timeValidCharsRun = 0
15571557
kb.uChar = NULL
1558-
kb.unescape = True
15591558
kb.unionDuplicates = False
15601559
kb.xpCmdshellAvailable = False
15611560

lib/core/unescaper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
class Unescaper(AttribDict):
1515
def unescape(self, expression, quote=True, dbms=None):
16-
if not kb.unescape or conf.noUnescape:
16+
if conf.noUnescape:
1717
return expression
1818

1919
if expression is None:

plugins/generic/custom.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ def sqlQuery(self, query):
3434
output = None
3535
sqlType = None
3636
query = query.rstrip(';')
37-
kb.unescape = False
3837

3938
for sqlTitle, sqlStatements in SQL_STATEMENTS.items():
4039
for sqlStatement in sqlStatements:
@@ -47,16 +46,13 @@ def sqlQuery(self, query):
4746
logger.info(infoMsg)
4847

4948
output = inject.getValue(query, fromUser=True)
50-
kb.unescape = True
5149

5250
return output
5351
elif not isTechniqueAvailable(PAYLOAD.TECHNIQUE.STACKED) and not conf.direct:
5452
warnMsg = "execution of custom SQL queries is only "
5553
warnMsg += "available when stacked queries are supported"
5654
logger.warn(warnMsg)
5755

58-
kb.unescape = True
59-
6056
return None
6157
else:
6258
if sqlType:
@@ -72,8 +68,6 @@ def sqlQuery(self, query):
7268

7369
output = False
7470

75-
kb.unescape = True
76-
7771
return output
7872

7973
def sqlShell(self):

0 commit comments

Comments
 (0)