mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-03 13:14:13 +03:00
Trivial cleanup
This commit is contained in:
parent
6697e49f75
commit
a633bc7f32
|
@ -13,9 +13,7 @@ import os
|
||||||
import re
|
import re
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
import urllib
|
|
||||||
import urllib2
|
import urllib2
|
||||||
import urlparse
|
|
||||||
|
|
||||||
sys.dont_write_bytecode = True
|
sys.dont_write_bytecode = True
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ from lib.core.enums import DBMS_DIRECTORY_NAME
|
||||||
from lib.core.enums import OS
|
from lib.core.enums import OS
|
||||||
|
|
||||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||||
VERSION = "1.2.9.19"
|
VERSION = "1.2.9.20"
|
||||||
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
||||||
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
|
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
|
||||||
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
|
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
|
||||||
|
|
|
@ -5,7 +5,6 @@ Copyright (c) 2006-2018 sqlmap developers (http://sqlmap.org/)
|
||||||
See the file 'LICENSE' for copying permission
|
See the file 'LICENSE' for copying permission
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import codecs
|
|
||||||
import functools
|
import functools
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
|
|
@ -85,7 +85,6 @@ from lib.core.exception import SqlmapTokenException
|
||||||
from lib.core.exception import SqlmapValueException
|
from lib.core.exception import SqlmapValueException
|
||||||
from lib.core.settings import ASTERISK_MARKER
|
from lib.core.settings import ASTERISK_MARKER
|
||||||
from lib.core.settings import BOUNDARY_BACKSLASH_MARKER
|
from lib.core.settings import BOUNDARY_BACKSLASH_MARKER
|
||||||
from lib.core.settings import CUSTOM_INJECTION_MARK_CHAR
|
|
||||||
from lib.core.settings import DEFAULT_CONTENT_TYPE
|
from lib.core.settings import DEFAULT_CONTENT_TYPE
|
||||||
from lib.core.settings import DEFAULT_COOKIE_DELIMITER
|
from lib.core.settings import DEFAULT_COOKIE_DELIMITER
|
||||||
from lib.core.settings import DEFAULT_GET_POST_DELIMITER
|
from lib.core.settings import DEFAULT_GET_POST_DELIMITER
|
||||||
|
|
|
@ -125,8 +125,7 @@ class Takeover(Abstraction, Metasploit, ICMPsh, Registry, Miscellaneous):
|
||||||
raise SqlmapMissingPrivileges(errMsg)
|
raise SqlmapMissingPrivileges(errMsg)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from impacket import ImpactDecoder
|
__import__("impacket")
|
||||||
from impacket import ImpactPacket
|
|
||||||
except ImportError:
|
except ImportError:
|
||||||
errMsg = "sqlmap requires 'python-impacket' third-party library "
|
errMsg = "sqlmap requires 'python-impacket' third-party library "
|
||||||
errMsg += "in order to run icmpsh master. You can get it at "
|
errMsg += "in order to run icmpsh master. You can get it at "
|
||||||
|
|
|
@ -22,7 +22,7 @@ e4805169a081b834ca51a60a150c7247 extra/shutils/newlines.py
|
||||||
1e5532ede194ac9c083891c2f02bca93 extra/sqlharvest/__init__.py
|
1e5532ede194ac9c083891c2f02bca93 extra/sqlharvest/__init__.py
|
||||||
b3e60ea4e18a65c48515d04aab28ff68 extra/sqlharvest/sqlharvest.py
|
b3e60ea4e18a65c48515d04aab28ff68 extra/sqlharvest/sqlharvest.py
|
||||||
1e5532ede194ac9c083891c2f02bca93 extra/wafdetectify/__init__.py
|
1e5532ede194ac9c083891c2f02bca93 extra/wafdetectify/__init__.py
|
||||||
0142de525def5e3f17092dcc1ed67c95 extra/wafdetectify/wafdetectify.py
|
1c7e6968f71214f8a0355420f3914f27 extra/wafdetectify/wafdetectify.py
|
||||||
3459c562a6abb9b4bdcc36925f751f3e lib/controller/action.py
|
3459c562a6abb9b4bdcc36925f751f3e lib/controller/action.py
|
||||||
2058987606ad75435c69d28cab11ef9e lib/controller/checks.py
|
2058987606ad75435c69d28cab11ef9e lib/controller/checks.py
|
||||||
c414cecdb0472c92cf50ed5b01e4438c lib/controller/controller.py
|
c414cecdb0472c92cf50ed5b01e4438c lib/controller/controller.py
|
||||||
|
@ -50,10 +50,10 @@ c8c386d644d57c659d74542f5f57f632 lib/core/patch.py
|
||||||
0c3eef46bdbf87e29a3f95f90240d192 lib/core/replication.py
|
0c3eef46bdbf87e29a3f95f90240d192 lib/core/replication.py
|
||||||
a7db43859b61569b601b97f187dd31c5 lib/core/revision.py
|
a7db43859b61569b601b97f187dd31c5 lib/core/revision.py
|
||||||
fcb74fcc9577523524659ec49e2e964b lib/core/session.py
|
fcb74fcc9577523524659ec49e2e964b lib/core/session.py
|
||||||
ef7c758b79feb71ddb3376df9149d562 lib/core/settings.py
|
03a73c87322c0165d98bcc1df2794e9f lib/core/settings.py
|
||||||
dd68a9d02fccb4fa1428b20e15b0db5d lib/core/shell.py
|
dd68a9d02fccb4fa1428b20e15b0db5d lib/core/shell.py
|
||||||
a7edc9250d13af36ac0108f259859c19 lib/core/subprocessng.py
|
a7edc9250d13af36ac0108f259859c19 lib/core/subprocessng.py
|
||||||
815d1cf27f0f8738d81531e73149867d lib/core/target.py
|
248bd121e0565318e1efaff54aa427bc lib/core/target.py
|
||||||
72d499ca8d792e90a1ebfb2ad2341a51 lib/core/testing.py
|
72d499ca8d792e90a1ebfb2ad2341a51 lib/core/testing.py
|
||||||
e896992e4db26605ab1e73615b1f9434 lib/core/threads.py
|
e896992e4db26605ab1e73615b1f9434 lib/core/threads.py
|
||||||
c40758411bb0bd68764d78e0bb72bd0f lib/core/unescaper.py
|
c40758411bb0bd68764d78e0bb72bd0f lib/core/unescaper.py
|
||||||
|
@ -72,7 +72,7 @@ f2af274126ce0a789027d35d367f2b9e lib/parse/payloads.py
|
||||||
30eed3a92a04ed2c29770e1b10d39dc0 lib/request/basicauthhandler.py
|
30eed3a92a04ed2c29770e1b10d39dc0 lib/request/basicauthhandler.py
|
||||||
2b81435f5a7519298c15c724e3194a0d lib/request/basic.py
|
2b81435f5a7519298c15c724e3194a0d lib/request/basic.py
|
||||||
859b6ad583e0ffba154f17ee179b5b89 lib/request/comparison.py
|
859b6ad583e0ffba154f17ee179b5b89 lib/request/comparison.py
|
||||||
cb148ee9778fdd61bdfc6b524aa1b3a2 lib/request/connect.py
|
84f9cb02454fa21a619ccd2b3fd294d4 lib/request/connect.py
|
||||||
dd4598675027fae99f2e2475b05986da lib/request/direct.py
|
dd4598675027fae99f2e2475b05986da lib/request/direct.py
|
||||||
2044fce3f4ffa268fcfaaf63241b1e64 lib/request/dns.py
|
2044fce3f4ffa268fcfaaf63241b1e64 lib/request/dns.py
|
||||||
98535d0efca5551e712fcc4b34a3f772 lib/request/httpshandler.py
|
98535d0efca5551e712fcc4b34a3f772 lib/request/httpshandler.py
|
||||||
|
@ -216,7 +216,7 @@ f5d5419efddfe04648ea5e953c650793 plugins/generic/fingerprint.py
|
||||||
f7874230e5661910d5fd21544c7d1022 plugins/generic/misc.py
|
f7874230e5661910d5fd21544c7d1022 plugins/generic/misc.py
|
||||||
b1d2a7f3170f9b69e71335aa47f9b08b plugins/generic/search.py
|
b1d2a7f3170f9b69e71335aa47f9b08b plugins/generic/search.py
|
||||||
a70cc0ada4b0cc9e7df23cb6d48a4a0c plugins/generic/syntax.py
|
a70cc0ada4b0cc9e7df23cb6d48a4a0c plugins/generic/syntax.py
|
||||||
4adc07051b727f1525cf0a2d619221f8 plugins/generic/takeover.py
|
a37c21cc3fa5c0c220d33d450bf503ed plugins/generic/takeover.py
|
||||||
4419b13a4b78d7e9e4a2632302344a1a plugins/generic/users.py
|
4419b13a4b78d7e9e4a2632302344a1a plugins/generic/users.py
|
||||||
1e5532ede194ac9c083891c2f02bca93 plugins/__init__.py
|
1e5532ede194ac9c083891c2f02bca93 plugins/__init__.py
|
||||||
5dc693e22f5d020c5c568d7325bd4226 shell/backdoors/backdoor.asp_
|
5dc693e22f5d020c5c568d7325bd4226 shell/backdoors/backdoor.asp_
|
||||||
|
@ -286,7 +286,7 @@ cc212839f55692d422beef3a8e22a8d4 tamper/uppercase.py
|
||||||
f2b9eac52d346315f5705f71beeda791 tamper/varnish.py
|
f2b9eac52d346315f5705f71beeda791 tamper/varnish.py
|
||||||
0e40966a51d1eb5d42a2159d2015a8a4 tamper/versionedkeywords.py
|
0e40966a51d1eb5d42a2159d2015a8a4 tamper/versionedkeywords.py
|
||||||
0fba004bf1be6edbefbda89f23f4e518 tamper/versionedmorekeywords.py
|
0fba004bf1be6edbefbda89f23f4e518 tamper/versionedmorekeywords.py
|
||||||
de532c4e3160039335010c499129d54f tamper/xforwardedfor.py
|
23d845e9f937f2a31c43767b8a8fcff6 tamper/xforwardedfor.py
|
||||||
b422795c5e589decec725963e480ffba thirdparty/ansistrm/ansistrm.py
|
b422795c5e589decec725963e480ffba thirdparty/ansistrm/ansistrm.py
|
||||||
d41d8cd98f00b204e9800998ecf8427e thirdparty/ansistrm/__init__.py
|
d41d8cd98f00b204e9800998ecf8427e thirdparty/ansistrm/__init__.py
|
||||||
8e775c25bc9e84891ad6fcb4f0005c23 thirdparty/beautifulsoup/beautifulsoup.py
|
8e775c25bc9e84891ad6fcb4f0005c23 thirdparty/beautifulsoup/beautifulsoup.py
|
||||||
|
@ -392,7 +392,7 @@ d9006810684baf01ea33281d21522519 udf/postgresql/windows/32/8.3/lib_postgresqlud
|
||||||
ca3ab78d6ed53b7f2c07ed2530d47efd udf/postgresql/windows/32/8.4/lib_postgresqludf_sys.dll_
|
ca3ab78d6ed53b7f2c07ed2530d47efd udf/postgresql/windows/32/8.4/lib_postgresqludf_sys.dll_
|
||||||
0d3fe0293573a4453463a0fa5a081de1 udf/postgresql/windows/32/9.0/lib_postgresqludf_sys.dll_
|
0d3fe0293573a4453463a0fa5a081de1 udf/postgresql/windows/32/9.0/lib_postgresqludf_sys.dll_
|
||||||
336d0b0d2be333f5a6184042c85464fd waf/360.py
|
336d0b0d2be333f5a6184042c85464fd waf/360.py
|
||||||
0ce8a335c7eb9cf14e645f64b3a5e91f waf/aesecure.py
|
9bf2e07cdc54a661aea056223caccfb6 waf/aesecure.py
|
||||||
a73a40d201b39f3387714c59934331e4 waf/airlock.py
|
a73a40d201b39f3387714c59934331e4 waf/airlock.py
|
||||||
7da7970b45512b0233450dbd8088fde0 waf/anquanbao.py
|
7da7970b45512b0233450dbd8088fde0 waf/anquanbao.py
|
||||||
b61329e8f8bdbf5625f9520ec010af1f waf/armor.py
|
b61329e8f8bdbf5625f9520ec010af1f waf/armor.py
|
||||||
|
@ -406,12 +406,12 @@ ef722d062564def381b1f96f5faadee3 waf/baidu.py
|
||||||
2f3bbf43be94d4e9ffe9f80e8483d62f waf/ciscoacexml.py
|
2f3bbf43be94d4e9ffe9f80e8483d62f waf/ciscoacexml.py
|
||||||
ba84f296cb52f5e78a0670b98d7763fa waf/cloudbric.py
|
ba84f296cb52f5e78a0670b98d7763fa waf/cloudbric.py
|
||||||
94b50385a9d462492e3a639d71aaa1c3 waf/cloudflare.py
|
94b50385a9d462492e3a639d71aaa1c3 waf/cloudflare.py
|
||||||
29ba81741fd7e220a95fe7c5fae76e1a waf/cloudfront.py
|
a8affab0838c6a1fe683d5b7333d7a69 waf/cloudfront.py
|
||||||
ac96f34c254951d301973617064eb1b5 waf/comodo.py
|
ac96f34c254951d301973617064eb1b5 waf/comodo.py
|
||||||
c84e515440fe482476c1f2687bd9960f waf/crawlprotect.py
|
c84e515440fe482476c1f2687bd9960f waf/crawlprotect.py
|
||||||
56d58c982c2cf775e0f8dc6767f336fd waf/datapower.py
|
56d58c982c2cf775e0f8dc6767f336fd waf/datapower.py
|
||||||
1538b661e35843074f4599be93b3fae9 waf/denyall.py
|
1538b661e35843074f4599be93b3fae9 waf/denyall.py
|
||||||
0182d23b34cf903537f77f4ec4b144bf waf/distil.py
|
67256152eef36a85498b49a1f0e4e328 waf/distil.py
|
||||||
aade02eb8f6a4a214a53db0fd0f2aae6 waf/dosarrest.py
|
aade02eb8f6a4a214a53db0fd0f2aae6 waf/dosarrest.py
|
||||||
9760a22990f55ab51ea4eedabd939055 waf/dotdefender.py
|
9760a22990f55ab51ea4eedabd939055 waf/dotdefender.py
|
||||||
7ec3f2a90914b501100685aa66aadf02 waf/edgecast.py
|
7ec3f2a90914b501100685aa66aadf02 waf/edgecast.py
|
||||||
|
@ -451,7 +451,7 @@ dffa9cebad777308714aaf83b71635b4 waf/teros.py
|
||||||
b37210459a13de40bf07722c4d032c33 waf/trafficshield.py
|
b37210459a13de40bf07722c4d032c33 waf/trafficshield.py
|
||||||
fe01932df9acea7f6d23f03c6b698646 waf/urlscan.py
|
fe01932df9acea7f6d23f03c6b698646 waf/urlscan.py
|
||||||
a687449cd4e45f69e33b13d41e021480 waf/uspses.py
|
a687449cd4e45f69e33b13d41e021480 waf/uspses.py
|
||||||
ab329be0231efdd360ebabd24c0e5315 waf/varnish.py
|
2d2740972d887d099e9cc8f132a8f147 waf/varnish.py
|
||||||
20840afc269920826deac2b6c00d6b9c waf/wallarm.py
|
20840afc269920826deac2b6c00d6b9c waf/wallarm.py
|
||||||
11205abf397ae9072adc3234b656ade9 waf/watchguard.py
|
11205abf397ae9072adc3234b656ade9 waf/watchguard.py
|
||||||
9bf34539f382987490d2239d8ef0a651 waf/webappsecure.py
|
9bf34539f382987490d2239d8ef0a651 waf/webappsecure.py
|
||||||
|
|
|
@ -5,9 +5,6 @@ Copyright (c) 2006-2018 sqlmap developers (http://sqlmap.org/)
|
||||||
See the file 'LICENSE' for copying permission
|
See the file 'LICENSE' for copying permission
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import re
|
|
||||||
|
|
||||||
from lib.core.enums import HTTP_HEADER
|
|
||||||
from lib.core.settings import WAF_ATTACK_VECTORS
|
from lib.core.settings import WAF_ATTACK_VECTORS
|
||||||
|
|
||||||
__product__ = "aeSecure (aeSecure)"
|
__product__ = "aeSecure (aeSecure)"
|
||||||
|
|
|
@ -7,7 +7,6 @@ See the file 'LICENSE' for copying permission
|
||||||
|
|
||||||
import re
|
import re
|
||||||
|
|
||||||
from lib.core.enums import HTTP_HEADER
|
|
||||||
from lib.core.settings import WAF_ATTACK_VECTORS
|
from lib.core.settings import WAF_ATTACK_VECTORS
|
||||||
|
|
||||||
__product__ = "CloudFront (Amazon)"
|
__product__ = "CloudFront (Amazon)"
|
||||||
|
|
|
@ -5,9 +5,6 @@ Copyright (c) 2006-2018 sqlmap developers (http://sqlmap.org/)
|
||||||
See the file 'LICENSE' for copying permission
|
See the file 'LICENSE' for copying permission
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import re
|
|
||||||
|
|
||||||
from lib.core.enums import HTTP_HEADER
|
|
||||||
from lib.core.settings import WAF_ATTACK_VECTORS
|
from lib.core.settings import WAF_ATTACK_VECTORS
|
||||||
|
|
||||||
__product__ = "Distil Web Application Firewall Security (Distil Networks)"
|
__product__ = "Distil Web Application Firewall Security (Distil Networks)"
|
||||||
|
|
|
@ -7,7 +7,6 @@ See the file 'LICENSE' for copying permission
|
||||||
|
|
||||||
import re
|
import re
|
||||||
|
|
||||||
from lib.core.enums import HTTP_HEADER
|
|
||||||
from lib.core.settings import WAF_ATTACK_VECTORS
|
from lib.core.settings import WAF_ATTACK_VECTORS
|
||||||
|
|
||||||
__product__ = "Varnish FireWall (OWASP)"
|
__product__ = "Varnish FireWall (OWASP)"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user