Skip to content

Commit 5899fd5

Browse files
committed
Update related to the #2806
1 parent f60727a commit 5899fd5

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

lib/core/settings.py

Lines changed: 1 addition & 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.1.11.38"
22+
VERSION = "1.1.11.39"
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)

txt/checksum.md5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ e1c000db9be27f973569b1a430629037 lib/core/option.py
4646
760d9df2a27ded29109b390ab202e72d lib/core/replication.py
4747
a2466b62e67f8b31736bac4dac590e51 lib/core/revision.py
4848
02d4762140a72fd44668d3dab5eabda9 lib/core/session.py
49-
71199d4a6f86e6c1bf6da24a41a9c1b7 lib/core/settings.py
49+
d61f9cea6f98ad14a6ffda2319a67a6d lib/core/settings.py
5050
35bffbad762eb9e03db9e93b1c991103 lib/core/shell.py
5151
a59ec28371ae067a6fdd8f810edbee3d lib/core/subprocessng.py
5252
d5a04d672a18f78deb2839c3745ff83c lib/core/target.py
@@ -392,7 +392,7 @@ ca3ab78d6ed53b7f2c07ed2530d47efd udf/postgresql/windows/32/8.4/lib_postgresqlud
392392
58faaa04de90a44c306e862bbbe0ed83 waf/aws.py
393393
2347b494b91dc50d93d1437e1302f9f1 waf/baidu.py
394394
72fd38a1fa212fb154f74d0c978d489a waf/barracuda.py
395-
02aa8b095f7fabd439a3afda0430ca84 waf/bigip.py
395+
5c55654a7611e767dd2be797716e2d75 waf/bigip.py
396396
5430f2a681071e894fa3c152eebf68e4 waf/binarysec.py
397397
2ce52bac62825acd4456817af6f10b14 waf/blockdos.py
398398
fe60962fc1d80e557b1d602fbe4934dc waf/ciscoacexml.py

waf/bigip.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,14 @@ def detect(get_page):
1616
retval = False
1717

1818
for vector in WAF_ATTACK_VECTORS:
19-
_, headers, _ = get_page(get=vector)
19+
_, headers, code = get_page(get=vector)
2020
retval = headers.get("X-Cnection", "").lower() == "close"
2121
retval |= headers.get("X-WA-Info") is not None
2222
retval |= re.search(r"\ATS\w{4,}=", headers.get(HTTP_HEADER.SET_COOKIE, ""), re.I) is not None
2323
retval |= re.search(r"BigIP|BIGipServer", headers.get(HTTP_HEADER.SET_COOKIE, ""), re.I) is not None
2424
retval |= re.search(r"BigIP|BIGipServer", headers.get(HTTP_HEADER.SERVER, ""), re.I) is not None
2525
retval |= re.search(r"\AF5\Z", headers.get(HTTP_HEADER.SERVER, ""), re.I) is not None
26+
retval &= code >= 400
2627
if retval:
2728
break
2829

0 commit comments

Comments
 (0)