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

Skip to content

Commit 9ba4da8

Browse files
committed
Implements #3500
1 parent 58acc4a commit 9ba4da8

3 files changed

Lines changed: 12 additions & 3 deletions

File tree

lib/core/common.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@
147147
from lib.core.settings import PROBLEMATIC_CUSTOM_INJECTION_PATTERNS
148148
from lib.core.settings import PUSH_VALUE_EXCEPTION_RETRY_COUNT
149149
from lib.core.settings import PYVERSION
150+
from lib.core.settings import RANDOMIZATION_TLDS
150151
from lib.core.settings import REFERER_ALIASES
151152
from lib.core.settings import REFLECTED_BORDER_REGEX
152153
from lib.core.settings import REFLECTED_MAX_REGEX_PARTS
@@ -3941,6 +3942,11 @@ def randomizeParameterValue(value):
39413942

39423943
retVal = retVal.replace(original, candidate)
39433944

3945+
if re.match(r"\A[^@]+@.+\.[a-z]+\Z", value):
3946+
parts = retVal.split('.')
3947+
parts[-1] = random.sample(RANDOMIZATION_TLDS, 1)[0]
3948+
retVal = '.'.join(parts)
3949+
39443950
return retVal
39453951

39463952
@cachedmethod

lib/core/settings.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from lib.core.enums import OS
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.3.2.31"
22+
VERSION = "1.3.2.32"
2323
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2424
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2525
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
@@ -680,6 +680,9 @@
680680
# Boldify all logger messages containing these "patterns"
681681
BOLD_PATTERNS = ("' injectable", "provided empty", "leftover chars", "might be injectable", "' is vulnerable", "is not injectable", "does not seem to be", "test failed", "test passed", "live test final result", "test shows that", "the back-end DBMS is", "created Github", "blocked by the target server", "protection is involved", "CAPTCHA", "specific response", "NULL connection is supported", "PASSED", "FAILED")
682682

683+
# TLDs used in randomization of email-alike parameter values
684+
RANDOMIZATION_TLDS = ("com", "net", "ru", "org", "de", "jp", "cn", "fr", "it", "pl", "tv", "edu", "in", "ir", "es", "me", "info", "gr", "gov", "ca", "co", "se", "cz", "to", "vn", "nl", "cc", "az", "hu", "ua", "be", "no", "biz", "io", "ch", "ro", "sk", "eu", "us", "tw", "pt", "fi", "at", "lt", "kz", "cl", "hr", "pk", "lv", "la", "pe")
685+
683686
# Generic www root directory names
684687
GENERIC_DOC_ROOT_DIRECTORY_NAMES = ("htdocs", "httpdocs", "public", "wwwroot", "www")
685688

txt/checksum.md5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ c1da277517c7ec4c23e953a51b51e203 lib/controller/handler.py
3030
fb6be55d21a70765e35549af2484f762 lib/controller/__init__.py
3131
ed7874be0d2d3802f3d20184f2b280d5 lib/core/agent.py
3232
a932126e7d80e545c5d44af178d0bc0c lib/core/bigarray.py
33-
4155b780398de5971f1b7b23b08f80d3 lib/core/common.py
33+
fa9741a9a530283e0071ada4ef54917e lib/core/common.py
3434
de8d27ae6241163ff9e97aa9e7c51a18 lib/core/convert.py
3535
abcb1121eb56d3401839d14e8ed06b6e lib/core/data.py
3636
00828c4455321b6987e3f882f4ef4f92 lib/core/datatype.py
@@ -50,7 +50,7 @@ d5ef43fe3cdd6c2602d7db45651f9ceb lib/core/readlineng.py
5050
7d8a22c582ad201f65b73225e4456170 lib/core/replication.py
5151
3179d34f371e0295dd4604568fb30bcd lib/core/revision.py
5252
d6269c55789f78cf707e09a0f5b45443 lib/core/session.py
53-
c84b0e1b41b6bb971d554a21838a4551 lib/core/settings.py
53+
e5ff2d732c840830f7b34635966f4727 lib/core/settings.py
5454
4483b4a5b601d8f1c4281071dff21ecc lib/core/shell.py
5555
10fd19b0716ed261e6d04f311f6f527c lib/core/subprocessng.py
5656
43772ea73e9e3d446f782af591cb4eda lib/core/target.py

0 commit comments

Comments
 (0)