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

Skip to content

Commit 116c1c8

Browse files
committed
Minor refactoring
1 parent afc2a42 commit 116c1c8

6 files changed

Lines changed: 16 additions & 13 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.1.9.21"
22+
VERSION = "1.1.9.22"
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: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,10 @@ def headersParser(headers):
2323

2424
if not kb.headerPaths:
2525
kb.headerPaths = {
26-
"cookie": os.path.join(paths.SQLMAP_XML_BANNER_PATH, "cookie.xml"),
2726
"microsoftsharepointteamservices": os.path.join(paths.SQLMAP_XML_BANNER_PATH, "sharepoint.xml"),
2827
"server": os.path.join(paths.SQLMAP_XML_BANNER_PATH, "server.xml"),
29-
"servlet-engine": os.path.join(paths.SQLMAP_XML_BANNER_PATH, "servlet.xml"),
30-
"set-cookie": os.path.join(paths.SQLMAP_XML_BANNER_PATH, "cookie.xml"),
28+
"servlet-engine": os.path.join(paths.SQLMAP_XML_BANNER_PATH, "servlet-engine.xml"),
29+
"set-cookie": os.path.join(paths.SQLMAP_XML_BANNER_PATH, "set-cookie.xml"),
3130
"x-aspnet-version": os.path.join(paths.SQLMAP_XML_BANNER_PATH, "x-aspnet-version.xml"),
3231
"x-powered-by": os.path.join(paths.SQLMAP_XML_BANNER_PATH, "x-powered-by.xml"),
3332
}

txt/checksum.md5

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ a44d7a4cc6c9a67a72d6af2f25f4ddac lib/core/exception.py
4646
d8e9250f3775119df07e9070eddccd16 lib/core/replication.py
4747
785f86e3f963fa3798f84286a4e83ff2 lib/core/revision.py
4848
40c80b28b3a5819b737a5a17d4565ae9 lib/core/session.py
49-
1b0c524c75375ae969a357cbc9e83b72 lib/core/settings.py
49+
64dbe305e1d88e9b90e66829b183a75d lib/core/settings.py
5050
d91291997d2bd2f6028aaf371bf1d3b6 lib/core/shell.py
5151
2ad85c130cc5f2b3701ea85c2f6bbf20 lib/core/subprocessng.py
5252
effc153067a00bd43461bfc1cdec1122 lib/core/target.py
@@ -60,7 +60,7 @@ ad74fc58fc7214802fd27067bce18dd2 lib/core/unescaper.py
6060
96a762a2ed36b34baedd59b9bfae80c2 lib/parse/cmdline.py
6161
3a31657bc38f277d0016ff6d50bde61f lib/parse/configfile.py
6262
14539f1be714d4f1ed042067d63bc50a lib/parse/handler.py
63-
64e5bb3ecbdd75144500588b437ba8da lib/parse/headers.py
63+
8da3684e70bfeef80b1d221ff0cd958c lib/parse/headers.py
6464
165dc27660c8559318009d44354f27cb lib/parse/html.py
6565
310efc965c862cfbd7b0da5150a5ad36 lib/parse/__init__.py
6666
0b010b7cdb2e42b5aa0caa59607279ad lib/parse/payloads.py
@@ -441,14 +441,14 @@ f3727ed5d1b5b06495233c413c8687a6 waf/wallarm.py
441441
3792fb08791f0f77fa5386f6e9374068 waf/webknight.py
442442
76c50593f1fbb8d4e87ff4781688e728 waf/yundun.py
443443
83a57aff89cf698b3e4aac9814a03e67 waf/yunsuo.py
444-
2d53fdaca0d7b42edad5192661248d76 xml/banner/cookie.xml
445444
e87d59af23b7b18cd56c9883e5f02d5c xml/banner/generic.xml
446445
d8925c034263bf1b83e7d8e1c78eec57 xml/banner/mssql.xml
447-
c97c383b560cd578f74c5e4d88c88ed2 xml/banner/mysql.xml
446+
b8b56f4aa34bf65365808919b97119a7 xml/banner/mysql.xml
448447
9b262a617b06af56b1267987d694bf6f xml/banner/oracle.xml
449448
d90fe5a47b95dff3eb1797764c9db6c5 xml/banner/postgresql.xml
450449
b07b5c47c751787e136650ded060197f xml/banner/server.xml
451-
d48c971769c6131e35bd52d2315a8d58 xml/banner/servlet.xml
450+
d48c971769c6131e35bd52d2315a8d58 xml/banner/servlet-engine.xml
451+
2d53fdaca0d7b42edad5192661248d76 xml/banner/set-cookie.xml
452452
d989813ee377252bca2103cea524c06b xml/banner/sharepoint.xml
453453
350605448f049cd982554123a75f11e1 xml/banner/x-aspnet-version.xml
454454
817078783e1edaa492773d3b34d8eef0 xml/banner/x-powered-by.xml

xml/banner/mysql.xml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,14 @@
2727
<info dbms_version="1" type="Linux" distrib="Debian" release="4.0" codename="etch"/>
2828
</regexp>
2929

30+
<regexp value="^([\d\.]+)[\-\_]Debian[\-\_][\d\.]+lenny">
31+
<info dbms_version="1" type="Linux" distrib="Debian" release="5.0" codename="lenny"/>
32+
</regexp>
33+
34+
<regexp value="^([\d\.]+)[\-\_]Debian[\-\_][\d\.]+squeeze">
35+
<info dbms_version="1" type="Linux" distrib="Debian" release="6.0" codename="squeeze"/>
36+
</regexp>
37+
3038
<regexp value="^([\d\.]+)[\-\_]Debian[\-\_][\d\.]+(sid|unstable)">
3139
<info dbms_version="1" type="Linux" distrib="Debian" codename="unstable"/>
3240
</regexp>
@@ -35,8 +43,4 @@
3543
<info dbms_version="1" type="Linux" distrib="Debian" codename="testing"/>
3644
</regexp>
3745

38-
<!-- Ubuntu -->
39-
<regexp value="^(5\.0\.67)-0ubuntu6">
40-
<info dbms_version="1" type="Linux" distrib="Ubuntu" release="8.10" codename="Intrepid Ibex"/>
41-
</regexp>
4246
</root>

0 commit comments

Comments
 (0)