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

Skip to content

Commit 44f6951

Browse files
committed
Update of xml/banner files
1 parent b5b32c9 commit 44f6951

8 files changed

Lines changed: 83 additions & 22 deletions

File tree

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.2.4.9"
22+
VERSION = "1.2.4.10"
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)

lib/parse/headers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def headersParser(headers):
3131
"x-powered-by": os.path.join(paths.SQLMAP_XML_BANNER_PATH, "x-powered-by.xml"),
3232
}
3333

34-
for header in itertools.ifilter(lambda x: x in kb.headerPaths, headers):
34+
for header in itertools.ifilter(lambda _: _ in kb.headerPaths, headers):
3535
value = headers[header]
3636
xmlfile = kb.headerPaths[header]
3737
handler = FingerprintHandler(value, kb.headersFp)

txt/checksum.md5

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ c9a56e58984420a5abb7a3f7aadc196d lib/core/optiondict.py
4646
0c3eef46bdbf87e29a3f95f90240d192 lib/core/replication.py
4747
a7db43859b61569b601b97f187dd31c5 lib/core/revision.py
4848
fcb74fcc9577523524659ec49e2e964b lib/core/session.py
49-
3ae3e12c5183d4468fbeb1cb6f4e231c lib/core/settings.py
49+
416a9d32cc0b6ee6281e0ec062a4d169 lib/core/settings.py
5050
0dfc2ed40adf72e302291f6ecd4406f6 lib/core/shell.py
5151
a7edc9250d13af36ac0108f259859c19 lib/core/subprocessng.py
5252
a35efa7bec9f1e6cedf17c9830a79241 lib/core/target.py
@@ -60,7 +60,7 @@ e772deb63270375e685fa5a7b775c382 lib/core/wordlist.py
6060
f667710f17b8447358ee7508a9d2faf1 lib/parse/cmdline.py
6161
fb2e2f05dde98caeac6ccf3e67192177 lib/parse/configfile.py
6262
3794ff139869f5ae8e81cfdbe5714f56 lib/parse/handler.py
63-
8d7321a1bc1a26ac55b2398bf445d78f lib/parse/headers.py
63+
aaad2a0d80f05eaebe52c71519b3dfc7 lib/parse/headers.py
6464
33f21b11b7963062df8fa2292229df80 lib/parse/html.py
6565
1e5532ede194ac9c083891c2f02bca93 lib/parse/__init__.py
6666
ec4e56bbb1349176b2a22e0b99ba6a55 lib/parse/payloads.py
@@ -450,14 +450,14 @@ a687449cd4e45f69e33b13d41e021480 waf/uspses.py
450450
68e332530fab216d017ede506c3fec2f waf/yundun.py
451451
bea35ba732ccc9548e6c4023cea6832b waf/yunsuo.py
452452
705ac8663513c12150cb5623ef4a04fb waf/zenedge.py
453-
e87d59af23b7b18cd56c9883e5f02d5c xml/banner/generic.xml
453+
dc394c5b90ada0a5d5853b5ad1f7d56d xml/banner/generic.xml
454454
d8925c034263bf1b83e7d8e1c78eec57 xml/banner/mssql.xml
455-
b8b56f4aa34bf65365808919b97119a7 xml/banner/mysql.xml
455+
7b21aeb3ad66d7686eacd23a6346292c xml/banner/mysql.xml
456456
9b262a617b06af56b1267987d694bf6f xml/banner/oracle.xml
457-
d90fe5a47b95dff3eb1797764c9db6c5 xml/banner/postgresql.xml
458-
b07b5c47c751787e136650ded060197f xml/banner/server.xml
457+
c26cd4fa986ddc9f6d92dd87c8fc61cb xml/banner/postgresql.xml
458+
4970709ca31bcaea5eb79547a132606a xml/banner/server.xml
459459
d48c971769c6131e35bd52d2315a8d58 xml/banner/servlet-engine.xml
460-
2d53fdaca0d7b42edad5192661248d76 xml/banner/set-cookie.xml
460+
58be20a3b29a9108d043786907700469 xml/banner/set-cookie.xml
461461
d989813ee377252bca2103cea524c06b xml/banner/sharepoint.xml
462462
350605448f049cd982554123a75f11e1 xml/banner/x-aspnet-version.xml
463463
817078783e1edaa492773d3b34d8eef0 xml/banner/x-powered-by.xml

xml/banner/generic.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727
<info sp="4"/>
2828
</regexp>
2929

30+
<regexp value="Service Pack 5">
31+
<info sp="5"/>
32+
</regexp>
33+
3034
<!-- Reference: https://msdn.microsoft.com/en-us/library/windows/desktop/ms724832%28v=vs.85%29.aspx -->
3135

3236
<regexp value="Windows.*10\.0">

xml/banner/mysql.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,22 @@
3535
<info dbms_version="1" type="Linux" distrib="Debian" release="6.0" codename="squeeze"/>
3636
</regexp>
3737

38+
<regexp value="^([\d\.]+)[\-\_]Debian[\-\_][\d\.]+wheezy">
39+
<info dbms_version="1" type="Linux" distrib="Debian" release="7.0" codename="wheezy"/>
40+
</regexp>
41+
42+
<regexp value="^([\d\.]+)[\-\_]Debian[\-\_][\d\.]+jessie">
43+
<info dbms_version="1" type="Linux" distrib="Debian" release="8.0" codename="jessie"/>
44+
</regexp>
45+
46+
<regexp value="^([\d\.]+)[\-\_]Debian[\-\_][\d\.]+stretch">
47+
<info dbms_version="1" type="Linux" distrib="Debian" release="9.0" codename="stretch"/>
48+
</regexp>
49+
50+
<regexp value="^([\d\.]+)[\-\_]Debian[\-\_][\d\.]+buster">
51+
<info dbms_version="1" type="Linux" distrib="Debian" release="10.0" codename="buster"/>
52+
</regexp>
53+
3854
<regexp value="^([\d\.]+)[\-\_]Debian[\-\_][\d\.]+(sid|unstable)">
3955
<info dbms_version="1" type="Linux" distrib="Debian" codename="unstable"/>
4056
</regexp>

xml/banner/postgresql.xml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,4 @@
1313
<regexp value="mingw([\d]+)">
1414
<info type="Windows"/>
1515
</regexp>
16-
17-
<!-- Ubuntu -->
18-
<regexp value="PostgreSQL\s+(8\.2\.7)\s+on.*?\(Ubuntu 4\.2\.3-2ubuntu4\)">
19-
<info dbms_version="1" type="Linux" distrib="Ubuntu" release="8.04" codename="Hardy Heron"/>
20-
</regexp>
21-
22-
<regexp value="PostgreSQL\s+(8\.3\.5)\s+on.*?\(Ubuntu 4\.3\.2-1ubuntu11\)">
23-
<info dbms_version="1" type="Linux" distrib="Ubuntu" release="8.10" codename="Intrepid Ibex"/>
24-
</regexp>
2516
</root>

xml/banner/server.xml

Lines changed: 53 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@
8989
<info type="Linux" distrib="CentOS" release="6.8"/>
9090
</regexp>
9191

92+
<regexp value="Apache/2\.4\.6 \(CentOS\)">
93+
<info type="Linux" distrib="CentOS" release="7-1708"/>
94+
</regexp>
95+
9296
<!-- Apache: Debian -->
9397

9498
<regexp value="Apache/1\.0\.5 \(Unix\) Debian/GNU">
@@ -155,8 +159,8 @@
155159
<info type="Linux" distrib="Debian" release="8.0" codename="jessie"/>
156160
</regexp>
157161

158-
<regexp value="Apache/2\.4\.18 \(Debian\)">
159-
<info type="Linux" distrib="Debian" release="9.0" codename="jessie (testing)"/>
162+
<regexp value="Apache/2\.4\.25 \(Debian\)">
163+
<info type="Linux" distrib="Debian" release="9.0" codename="stretch"/>
160164
</regexp>
161165

162166
<!-- Apache: Fedora -->
@@ -273,6 +277,22 @@
273277
<info type="Linux" distrib="Fedora" release="23"/>
274278
</regexp>
275279

280+
<regexp value="Apache/2\.4\.18 \(Fedora\)">
281+
<info type="Linux" distrib="Fedora" release="24"/>
282+
</regexp>
283+
284+
<regexp value="Apache/2\.4\.23 \(Fedora\)">
285+
<info type="Linux" distrib="Fedora" release="25"/>
286+
</regexp>
287+
288+
<regexp value="Apache/2\.4\.25 \(Fedora\)">
289+
<info type="Linux" distrib="Fedora" release="26"/>
290+
</regexp>
291+
292+
<regexp value="Apache/2\.4\.28 \(Fedora\)">
293+
<info type="Linux" distrib="Fedora" release="27"/>
294+
</regexp>
295+
276296
<!-- Apache: FreeBSD -->
277297

278298
<regexp value="Apache/2\.0\.16 \(FreeBSD\)">
@@ -379,6 +399,14 @@
379399
<info type="FreeBSD" release="10.3"/>
380400
</regexp>
381401

402+
<regexp value="Apache/2\.4\.27 \(FreeBSD\)">
403+
<info type="FreeBSD" release="10.4"/>
404+
</regexp>
405+
406+
<regexp value="Apache/2\.4\.26 \(FreeBSD\)">
407+
<info type="FreeBSD" release="11.1"/>
408+
</regexp>
409+
382410
<!-- Apache: Mandrake / Mandriva -->
383411

384412
<regexp value="Apache/1\.3\.6 \(Unix\)\s+\(Mandrake/Linux\)">
@@ -678,6 +706,14 @@
678706
<info type="Linux" distrib="SuSE" release="13.2"/>
679707
</regexp>
680708

709+
<regexp value="Apache/2\.4\.16 \(Linux/SuSE\)">
710+
<info type="Linux" distrib="SuSE" release="42.1"/>
711+
</regexp>
712+
713+
<regexp value="Apache/2\.4\.23 \(Linux/SuSE\)">
714+
<info type="Linux" distrib="SuSE" release="42.2|42.3"/>
715+
</regexp>
716+
681717
<!-- Apache: Ubuntu -->
682718

683719
<regexp value="Apache/2\.0\.50 \(Ubuntu\)">
@@ -753,12 +789,26 @@
753789
</regexp>
754790

755791
<regexp value="Apache/2\.4\.18 \(Ubuntu\)">
756-
<info type="Linux" distrib="Ubuntu" release="16.04" codename="xenial"/>
792+
<info type="Linux" distrib="Ubuntu" release="16.04|16.10" codename="xenial|yakkety"/>
793+
</regexp>
794+
795+
<regexp value="Apache/2\.4\.25 \(Ubuntu\)">
796+
<info type="Linux" distrib="Ubuntu" release="17.04" codename="zesty"/>
797+
</regexp>
798+
799+
<regexp value="Apache/2\.4\.27 \(Ubuntu\)">
800+
<info type="Linux" distrib="Ubuntu" release="17.10" codename="artful"/>
757801
</regexp>
758802

759803
<!-- Nginx -->
760804

761805
<regexp value="nginx/([\w\.]+)">
762806
<info technology="Nginx"/>
763807
</regexp>
808+
809+
<!-- Google Web Server -->
810+
811+
<regexp value="GWS/([\w\.]+)">
812+
<info technology="Google Web Server"/>
813+
</regexp>
764814
</root>

xml/banner/set-cookie.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<info technology="ASP" type="Windows"/>
1212
</regexp>
1313

14-
<regexp value="ASP\.NET_SessionId">
14+
<regexp value="ASP\.NET_SessionId|\.ASPXAUTH">
1515
<info technology="ASP.NET" type="Windows"/>
1616
</regexp>
1717

0 commit comments

Comments
 (0)