|
14 | 14 | import inspect |
15 | 15 | import logging |
16 | 16 | import ntpath |
17 | | -import optparse |
18 | 17 | import os |
19 | 18 | import pickle |
20 | 19 | import posixpath |
|
25 | 24 | import struct |
26 | 25 | import sys |
27 | 26 | import time |
28 | | -import types |
29 | 27 | import urllib |
30 | 28 | import urlparse |
31 | 29 | import unicodedata |
|
49 | 47 | from extra.cloak.cloak import decloak |
50 | 48 | from extra.magic import magic |
51 | 49 | from extra.odict.odict import OrderedDict |
| 50 | +from extra.safe2bin.safe2bin import safecharencode |
52 | 51 | from lib.core.bigarray import BigArray |
53 | 52 | from lib.core.data import conf |
54 | 53 | from lib.core.data import kb |
55 | 54 | from lib.core.data import logger |
56 | 55 | from lib.core.data import paths |
57 | | -from lib.core.data import queries |
58 | 56 | from lib.core.convert import htmlunescape |
59 | | -from lib.core.convert import safecharencode |
60 | 57 | from lib.core.convert import unicodeencode |
61 | 58 | from lib.core.convert import urldecode |
62 | 59 | from lib.core.convert import urlencode |
|
120 | 117 | from lib.core.settings import DYNAMICITY_MARK_LENGTH |
121 | 118 | from lib.core.settings import REFLECTIVE_MISS_THRESHOLD |
122 | 119 | from lib.core.settings import SENSITIVE_DATA_REGEX |
123 | | -from lib.core.settings import SUPPORTED_OS |
124 | 120 | from lib.core.settings import UNION_UNIQUE_FIFO_LENGTH |
125 | 121 | from lib.core.settings import URI_INJECTION_MARK_CHAR |
126 | 122 | from lib.core.settings import URI_QUESTION_MARKER |
@@ -403,7 +399,7 @@ def getErrorParsedDBMSes(): |
403 | 399 | 1. Sort the tests, getSortedInjectionTests() - detection phase. |
404 | 400 | 2. Ask user whether or not skip specific DBMS tests in detection phase, |
405 | 401 | lib/controller/checks.py - detection phase. |
406 | | - 3. Sort the fingerprint of the DBMS, lib/controller/handler.py - |
| 402 | + 3. Sort the fingerprint of the DBMS, lib/controller/handler.py - |
407 | 403 | fingerprint phase. |
408 | 404 | """ |
409 | 405 |
|
@@ -869,7 +865,7 @@ def randomStr(length=4, lowercase=False, alphabet=None): |
869 | 865 | """ |
870 | 866 |
|
871 | 867 | if alphabet: |
872 | | - rndStr = "".join(random.choice(alphabet) for _ in xrange(0, length)) |
| 868 | + rndStr = "".join(random.choice(alphabet) for _ in xrange(0, length)) |
873 | 869 | elif lowercase: |
874 | 870 | rndStr = "".join(random.choice(string.lowercase) for _ in xrange(0, length)) |
875 | 871 | else: |
@@ -1670,7 +1666,7 @@ def readXmlFile(xmlFile): |
1670 | 1666 | Reads XML file content and returns it's DOM representation |
1671 | 1667 | """ |
1672 | 1668 |
|
1673 | | - checkFile(xmlFile) |
| 1669 | + checkFile(xmlFile) |
1674 | 1670 |
|
1675 | 1671 | with codecs.open(xmlFile, 'r', UNICODE_ENCODING) as f: |
1676 | 1672 | retVal = minidom.parse(f).documentElement |
@@ -2179,7 +2175,7 @@ def enumValueToNameLookup(type_, value_): |
2179 | 2175 |
|
2180 | 2176 | def extractRegexResult(regex, content, flags=0): |
2181 | 2177 | """ |
2182 | | - Returns 'result' group value from a possible match with regex on a given |
| 2178 | + Returns 'result' group value from a possible match with regex on a given |
2183 | 2179 | content |
2184 | 2180 | """ |
2185 | 2181 |
|
|
0 commit comments