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

Skip to content

Commit c1eb803

Browse files
committed
Bug fix for MsSQL --hex --technique=E (NOT IN based queries were not working properly)
1 parent b75c52f commit c1eb803

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/core/agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,7 @@ def limitQuery(self, num, query, field=None, uniqueField=None):
752752
if " ORDER BY " not in fromFrom:
753753
# Reference: http://vorg.ca/626-the-MS-SQL-equivalent-to-MySQLs-limit-command
754754
if " WHERE " in limitedQuery:
755-
limitedQuery = "%s AND %s " % (limitedQuery, uniqueField or field)
755+
limitedQuery = "%s AND %s " % (limitedQuery, self.nullAndCastField(uniqueField or field))
756756
else:
757757
limitedQuery = "%s WHERE ISNULL(%s,' ') " % (limitedQuery, uniqueField or field)
758758

0 commit comments

Comments
 (0)