Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 796173f commit a4cf25cCopy full SHA for a4cf25c
1 file changed
tamper/ord2ascii.py
@@ -0,0 +1,30 @@
1
+#!/usr/bin/env python
2
+
3
+"""
4
+Copyright (c) 2006-2022 sqlmap developers (https://sqlmap.org/)
5
+See the file 'LICENSE' for copying permission
6
7
8
+import re
9
10
+from lib.core.enums import PRIORITY
11
12
+__priority__ = PRIORITY.LOWEST
13
14
+def dependencies():
15
+ pass
16
17
+def tamper(payload, **kwargs):
18
+ """
19
+ Replaces ORD() occurences with equivalent ASCII() calls
20
21
+ >>> tamper("ORD('42')")
22
+ "ASCII('42')"
23
24
25
+ retVal = payload
26
27
+ if payload:
28
+ retVal = re.sub(r"(?i)\bORD\(\b", "ASCII(", payload)
29
30
+ return retVal
0 commit comments