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

Skip to content

Commit 4a8f01c

Browse files
committed
Minor updates
1 parent 13bf3e6 commit 4a8f01c

10 files changed

Lines changed: 35 additions & 31 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.5.8"
22+
VERSION = "1.2.5.9"
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/request/rangehandler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class HTTPRangeHandler(urllib2.BaseHandler):
3232
urllib2.install_opener(opener)
3333
3434
# create Request and set Range header
35-
req = urllib2.Request('http://www.python.org/')
35+
req = urllib2.Request('https://www.python.org/')
3636
req.header['Range'] = 'bytes=30-50'
3737
f = urllib2.urlopen(req)
3838
"""

plugins/dbms/db2/connector.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919

2020
class Connector(GenericConnector):
2121
"""
22-
Homepage: http://code.google.com/p/ibm-db/
23-
User guide: http://code.google.com/p/ibm-db/wiki/README
24-
API: http://www.python.org/dev/peps/pep-0249/
22+
Homepage: https://github.com/ibmdb/python-ibmdb
23+
User guide: https://github.com/ibmdb/python-ibmdb/wiki/README
24+
API: https://www.python.org/dev/peps/pep-0249/
2525
License: Apache License 2.0
2626
"""
2727

plugins/dbms/informix/connector.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919

2020
class Connector(GenericConnector):
2121
"""
22-
Homepage: http://code.google.com/p/ibm-db/
23-
User guide: http://code.google.com/p/ibm-db/wiki/README
24-
API: http://www.python.org/dev/peps/pep-0249/
22+
Homepage: https://github.com/ibmdb/python-ibmdb
23+
User guide: https://github.com/ibmdb/python-ibmdb/wiki/README
24+
API: https://www.python.org/dev/peps/pep-0249/
2525
License: Apache License 2.0
2626
"""
2727

plugins/dbms/mssqlserver/connector.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121

2222
class Connector(GenericConnector):
2323
"""
24-
Homepage: http://pymssql.sourceforge.net/
25-
User guide: http://pymssql.sourceforge.net/examples_pymssql.php
26-
API: http://pymssql.sourceforge.net/ref_pymssql.php
24+
Homepage: http://www.pymssql.org/en/stable/
25+
User guide: http://www.pymssql.org/en/stable/pymssql_examples.html
26+
API: http://www.pymssql.org/en/stable/ref/pymssql.html
2727
Debian package: python-pymssql
2828
License: LGPL
2929

plugins/dbms/mssqlserver/fingerprint.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ def checkDbmsOs(self, detailed=False):
136136
self.createSupportTbl(self.fileTblName, self.tblField, "varchar(1000)")
137137
inject.goStacked("INSERT INTO %s(%s) VALUES (%s)" % (self.fileTblName, self.tblField, "@@VERSION"))
138138

139-
# Reference: http://en.wikipedia.org/wiki/Comparison_of_Microsoft_Windows_versions
140-
# http://en.wikipedia.org/wiki/Windows_NT#Releases
139+
# Reference: https://en.wikipedia.org/wiki/Comparison_of_Microsoft_Windows_versions
140+
# https://en.wikipedia.org/wiki/Windows_NT#Releases
141141
versions = {
142142
"NT": ("4.0", (6, 5, 4, 3, 2, 1)),
143143
"2000": ("5.0", (4, 3, 2, 1)),

plugins/dbms/mssqlserver/takeover.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ def uncPathRequest(self):
2626
def spHeapOverflow(self):
2727
"""
2828
References:
29-
* http://www.microsoft.com/technet/security/bulletin/MS09-004.mspx
30-
* http://support.microsoft.com/kb/959420
29+
* https://docs.microsoft.com/en-us/security-updates/securitybulletins/2009/ms09-004
30+
* https://support.microsoft.com/en-us/help/959420/ms09-004-vulnerabilities-in-microsoft-sql-server-could-allow-remote-co
3131
"""
3232

3333
returns = {

plugins/dbms/oracle/connector.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424

2525
class Connector(GenericConnector):
2626
"""
27-
Homepage: http://cx-oracle.sourceforge.net/
28-
User guide: http://cx-oracle.sourceforge.net/README.txt
29-
API: http://cx-oracle.sourceforge.net/html/index.html
30-
License: http://cx-oracle.sourceforge.net/LICENSE.txt
27+
Homepage: https://oracle.github.io/python-cx_Oracle/
28+
User https://cx-oracle.readthedocs.io/en/latest/
29+
API: https://wiki.python.org/moin/DatabaseProgramming
30+
License: https://cx-oracle.readthedocs.io/en/latest/license.html#license
3131
"""
3232

3333
def __init__(self):

plugins/dbms/postgresql/fingerprint.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def checkDbms(self):
6060
"""
6161
References for fingerprint:
6262
63-
* http://www.postgresql.org/docs/9.1/interactive/release.html (up to 9.1.3)
63+
* https://www.postgresql.org/docs/current/static/release.html
6464
"""
6565

6666
if not conf.extensiveFp and Backend.isDbmsWithin(PGSQL_ALIASES):
@@ -97,8 +97,12 @@ def checkDbms(self):
9797
infoMsg = "actively fingerprinting %s" % DBMS.PGSQL
9898
logger.info(infoMsg)
9999

100-
if inject.checkBooleanExpression("TO_JSONB(1) IS NOT NULL"):
101-
Backend.setVersion(">= 9.5.0")
100+
if inject.checkBooleanExpression("XMLTABLE(NULL) IS NULL"):
101+
Backend.setVersion(">= 10.0")
102+
elif inject.checkBooleanExpression("SIND(0)=0"):
103+
Backend.setVersion(">= 9.6.0", "< 10.0")
104+
elif inject.checkBooleanExpression("TO_JSONB(1) IS NOT NULL"):
105+
Backend.setVersion(">= 9.5.0", "< 9.6.0")
102106
elif inject.checkBooleanExpression("JSON_TYPEOF(NULL) IS NULL"):
103107
Backend.setVersionList([">= 9.4.0", "< 9.5.0"])
104108
elif inject.checkBooleanExpression("ARRAY_REPLACE(NULL,1,1) IS NULL"):

txt/checksum.md5

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ c9a56e58984420a5abb7a3f7aadc196d lib/core/optiondict.py
4747
0c3eef46bdbf87e29a3f95f90240d192 lib/core/replication.py
4848
a7db43859b61569b601b97f187dd31c5 lib/core/revision.py
4949
fcb74fcc9577523524659ec49e2e964b lib/core/session.py
50-
f49b5204228e41b1cfab5ba231272f09 lib/core/settings.py
50+
0134616235193faba40a094cf7a4ba09 lib/core/settings.py
5151
0dfc2ed40adf72e302291f6ecd4406f6 lib/core/shell.py
5252
a7edc9250d13af36ac0108f259859c19 lib/core/subprocessng.py
5353
6306284edcccc185b2df085438572b0d lib/core/target.py
@@ -77,7 +77,7 @@ eee965d781546d05f36cfd14af050913 lib/request/httpshandler.py
7777
b188a11542a996276abbbc48913501c3 lib/request/inject.py
7878
aaf956c1e9855836c3f372e29d481393 lib/request/methodrequest.py
7979
51eeaa8abf5ba62aaaade66d46ff8b00 lib/request/pkihandler.py
80-
aa7cb67139bbc57d67a728fd2abf80ed lib/request/rangehandler.py
80+
2c3774b72586985719035b195f144d7b lib/request/rangehandler.py
8181
aa809d825b33bea76a63ecd97cf7792c lib/request/redirecthandler.py
8282
7f12d8f3b6665ed7053954bba70ff718 lib/request/templates.py
8383
747f9941a68361bd779ec760f71568e9 lib/takeover/abstraction.py
@@ -124,7 +124,7 @@ c2428c5c73d049abf4442ec1b9404a25 plugins/dbms/access/fingerprint.py
124124
e657b1b7a295a38ac9ce515158164f00 plugins/dbms/access/__init__.py
125125
77686d7c7e287d5db0a9a87f2c7d4902 plugins/dbms/access/syntax.py
126126
2f1d8706b51497623b2b59c07b552bdc plugins/dbms/access/takeover.py
127-
ead470b613e52e718a3062b63b518272 plugins/dbms/db2/connector.py
127+
8df07c2805aceb7d6fb4add40de84795 plugins/dbms/db2/connector.py
128128
4deeda463003ab71e7d2f34a263b5bbf plugins/dbms/db2/enumeration.py
129129
da9dccd1f9ec2cf1e53295125dd983a0 plugins/dbms/db2/filesystem.py
130130
b54dbf44590a5cbefb2b4f8e9a01a383 plugins/dbms/db2/fingerprint.py
@@ -145,7 +145,7 @@ b7d693a6f5f39fee0a65f2d7b0830c5e plugins/dbms/hsqldb/fingerprint.py
145145
fd369161778d6b48d7f1f7fc14dcdb5c plugins/dbms/hsqldb/__init__.py
146146
4673ebfdce9859718c19e8a7765da8d3 plugins/dbms/hsqldb/syntax.py
147147
7c0535736215ca612756cf589adb249b plugins/dbms/hsqldb/takeover.py
148-
9ceb9430031a26ecebe13ea49cb2a5fa plugins/dbms/informix/connector.py
148+
97dac442190bd4ffac3ba292e2abfd4c plugins/dbms/informix/connector.py
149149
c54d70e4847c6327bd3110c4d8723b04 plugins/dbms/informix/enumeration.py
150150
da9dccd1f9ec2cf1e53295125dd983a0 plugins/dbms/informix/filesystem.py
151151
35eac2f3837a72940eb50753dc4566e5 plugins/dbms/informix/fingerprint.py
@@ -160,21 +160,21 @@ ffd26f64142226d0b1ed1d70f7f294c0 plugins/dbms/maxdb/filesystem.py
160160
4321d7018f5121343460ebfd83bb69be plugins/dbms/maxdb/__init__.py
161161
e7d44671ae26c0bcd5fe8448be070bbd plugins/dbms/maxdb/syntax.py
162162
bf7842bb291e2297c3c8d1023eb3e550 plugins/dbms/maxdb/takeover.py
163-
9e64e67291a4c369bad8b8cf2cfa722a plugins/dbms/mssqlserver/connector.py
163+
decc645344bb93aca504a71ba2e4cad4 plugins/dbms/mssqlserver/connector.py
164164
f1f1541a54faf67440179fa521f99849 plugins/dbms/mssqlserver/enumeration.py
165165
177e1d55d28ed3190bc0079b8126c6be plugins/dbms/mssqlserver/filesystem.py
166-
51eb413ac62408965be20a812f2412c8 plugins/dbms/mssqlserver/fingerprint.py
166+
08914da79141713bd69a25c3cc7f06a8 plugins/dbms/mssqlserver/fingerprint.py
167167
f25c50a95e5390ecd32be5a011637349 plugins/dbms/mssqlserver/__init__.py
168168
612be1929108e7b4512a49a4a3837bbc plugins/dbms/mssqlserver/syntax.py
169-
08fe8ac7acdfc0e3168b5b069a7c73bf plugins/dbms/mssqlserver/takeover.py
169+
3c0845fa526e1bb7bbe636fcfcbcc4a6 plugins/dbms/mssqlserver/takeover.py
170170
f6e1f3f09f32b9cb2ca11c016d373423 plugins/dbms/mysql/connector.py
171171
445164daf59b890aeacc968af58fcb53 plugins/dbms/mysql/enumeration.py
172172
4578fa29f04d0a75499f9668466ded07 plugins/dbms/mysql/filesystem.py
173173
fcbf7ff279c527b4aca0dac94c28d20c plugins/dbms/mysql/fingerprint.py
174174
30065993f8300994e4658634121609e9 plugins/dbms/mysql/__init__.py
175175
0e2adbee217f5b94dcc124d24b8dde99 plugins/dbms/mysql/syntax.py
176176
403591e638b6bfdb840d52bd3138ee56 plugins/dbms/mysql/takeover.py
177-
999cb8d0d52820d30bdd4b3d658a765d plugins/dbms/oracle/connector.py
177+
f772070dba85976a7894dac5046b93ea plugins/dbms/oracle/connector.py
178178
e1ffee36fd18f33f34bb4bac4ae43f14 plugins/dbms/oracle/enumeration.py
179179
c326b0d8bed92be67888b0242f565ac8 plugins/dbms/oracle/filesystem.py
180180
e16cbf8abda91a906ca7bafb81d8866e plugins/dbms/oracle/fingerprint.py
@@ -184,7 +184,7 @@ bcdbd9c04d7d5a911e0e31abe1a24f0f plugins/dbms/oracle/takeover.py
184184
f99c23db4ee6a6b8c0edbf684d360ad3 plugins/dbms/postgresql/connector.py
185185
7cdb821884e5f15084d1bea7f8a50574 plugins/dbms/postgresql/enumeration.py
186186
c8bb829d45752b98e6a03817b92e0fe5 plugins/dbms/postgresql/filesystem.py
187-
603d533d924498378eccba4f0f196be6 plugins/dbms/postgresql/fingerprint.py
187+
29560cf78211888802c6e5c8681e7d71 plugins/dbms/postgresql/fingerprint.py
188188
470860d3e85d11a67f2220bffaa415e7 plugins/dbms/postgresql/__init__.py
189189
20e6f48f496348be45f3402ebc265dbb plugins/dbms/postgresql/syntax.py
190190
1287acf330da86a93c8e64aff46e3b65 plugins/dbms/postgresql/takeover.py

0 commit comments

Comments
 (0)