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

Skip to content

Commit ad5a731

Browse files
committed
First commit for Issue #120
1 parent 95be19a commit ad5a731

3 files changed

Lines changed: 14 additions & 1 deletion

File tree

lib/core/agent.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,8 @@ def cleanupPayload(self, payload, origValue=None):
301301
("[SPACE_REPLACE]", kb.chars.space),
302302
("[DOLLAR_REPLACE]", kb.chars.dollar),
303303
("[HASH_REPLACE]", kb.chars.hash_),
304-
("[GENERIC_SQL_COMMENT]", GENERIC_SQL_COMMENT)
304+
("[GENERIC_SQL_COMMENT]", GENERIC_SQL_COMMENT),
305+
("[ORIGINAL]", origValue or "")
305306
)
306307
payload = reduce(lambda x, y: x.replace(y[0], y[1]), replacements, payload)
307308

xml/boundaries.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,17 @@ Formats:
488488
</boundary>
489489
<!-- End of pre-WHERE derived table boundaries -->
490490

491+
<!-- Escaped column name (e.g. SELECT `...` FROM table) boundaries -->
492+
<boundary>
493+
<level>4</level>
494+
<clause>1</clause>
495+
<where>1</where>
496+
<ptype>1</ptype>
497+
<prefix>`</prefix>
498+
<suffix> AND `[ORIGINAL]</suffix>
499+
</boundary>
500+
<!-- End of escaped column name boundaries -->
501+
491502
<!-- AGAINST boolean full-text search boundaries (http://dev.mysql.com/doc/refman/5.5/en/fulltext-boolean.html) -->
492503
<boundary>
493504
<level>4</level>

xml/errors.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<error regexp="MySQLSyntaxErrorException"/>
1010
<error regexp="valid MySQL result"/>
1111
<error regexp="check the manual that corresponds to your (MySQL|MariaDB) server version"/>
12+
<error regexp="Unknown column '[^ ]+' in 'field list'"/>
1213
<error regexp="MySqlClient\."/>
1314
<error regexp="com\.mysql\.jdbc\.exceptions"/>
1415
<error regexp="Zend_Db_Statement_Mysqli_Exception"/>

0 commit comments

Comments
 (0)