Skip to content

Commit 8b88bb8

Browse files
committed
Minor refactoring
1 parent 30fba84 commit 8b88bb8

File tree

15 files changed

+16
-83
lines changed

15 files changed

+16
-83
lines changed

extra/safe2bin/README.txt

Lines changed: 0 additions & 17 deletions
This file was deleted.

extra/safe2bin/__init__.py

Lines changed: 0 additions & 8 deletions
This file was deleted.

lib/core/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646

4747
from extra.beep.beep import beep
4848
from extra.cloak.cloak import decloak
49-
from extra.safe2bin.safe2bin import safecharencode
5049
from lib.core.bigarray import BigArray
5150
from lib.core.compat import cmp
5251
from lib.core.compat import round
@@ -180,6 +179,7 @@
180179
from lib.core.settings import ZIP_HEADER
181180
from lib.core.settings import WEBSCARAB_SPLITTER
182181
from lib.core.threads import getCurrentThreadData
182+
from lib.utils.safe2bin import safecharencode
183183
from lib.utils.sqlalchemy import _sqlalchemy
184184
from thirdparty import six
185185
from thirdparty.clientform.clientform import ParseResponse

lib/core/dump.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
import tempfile
1414
import threading
1515

16-
from extra.safe2bin.safe2bin import safechardecode
1716
from lib.core.common import Backend
1817
from lib.core.common import checkFile
1918
from lib.core.common import dataToDumpFile
@@ -53,6 +52,7 @@
5352
from lib.core.settings import UNSAFE_DUMP_FILEPATH_REPLACEMENT
5453
from lib.core.settings import VERSION_STRING
5554
from lib.core.settings import WINDOWS_RESERVED_NAMES
55+
from lib.utils.safe2bin import safechardecode
5656
from thirdparty import six
5757
from thirdparty.magic import magic
5858

lib/core/replication.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77

88
import sqlite3
99

10-
from extra.safe2bin.safe2bin import safechardecode
1110
from lib.core.common import getSafeExString
1211
from lib.core.common import unsafeSQLIdentificatorNaming
1312
from lib.core.exception import SqlmapConnectionException
1413
from lib.core.exception import SqlmapGenericException
1514
from lib.core.exception import SqlmapValueException
1615
from lib.core.settings import UNICODE_ENCODING
16+
from lib.utils.safe2bin import safechardecode
1717

1818
class Replication(object):
1919
"""

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from thirdparty.six import unichr as _unichr
1919

2020
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21-
VERSION = "1.3.9.8"
21+
VERSION = "1.3.9.9"
2222
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2323
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2424
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

lib/request/connect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
class WebSocketException(Exception):
2323
pass
2424

25-
from extra.safe2bin.safe2bin import safecharencode
2625
from lib.core.agent import agent
2726
from lib.core.common import asciifyUrl
2827
from lib.core.common import calculateDeltaSeconds
@@ -125,6 +124,7 @@ class WebSocketException(Exception):
125124
from lib.request.comparison import comparison
126125
from lib.request.direct import direct
127126
from lib.request.methodrequest import MethodRequest
127+
from lib.utils.safe2bin import safecharencode
128128
from thirdparty import six
129129
from thirdparty.odict import OrderedDict
130130
from thirdparty.six import unichr as _unichr

lib/request/direct.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
import time
99

10-
from extra.safe2bin.safe2bin import safecharencode
1110
from lib.core.agent import agent
1211
from lib.core.common import Backend
1312
from lib.core.common import calculateDeltaSeconds
@@ -26,6 +25,7 @@
2625
from lib.core.enums import EXPECTED
2726
from lib.core.enums import TIMEOUT_STATE
2827
from lib.core.settings import UNICODE_ENCODING
28+
from lib.utils.safe2bin import safecharencode
2929
from lib.utils.timeout import timeout
3030

3131
def direct(query, content=True):

lib/takeover/abstraction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
import sys
1111

12-
from extra.safe2bin.safe2bin import safechardecode
1312
from lib.core.common import Backend
1413
from lib.core.common import dataToStdout
1514
from lib.core.common import getSQLSnippet
@@ -28,6 +27,7 @@
2827
from lib.takeover.udf import UDF
2928
from lib.takeover.web import Web
3029
from lib.takeover.xp_cmdshell import XP_cmdshell
30+
from lib.utils.safe2bin import safechardecode
3131
from thirdparty.six.moves import input as _input
3232

3333
class Abstraction(Web, UDF, XP_cmdshell):

lib/techniques/blind/inference.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
import re
1111
import time
1212

13-
from extra.safe2bin.safe2bin import safecharencode
1413
from lib.core.agent import agent
1514
from lib.core.common import Backend
1615
from lib.core.common import calculateDeltaSeconds
@@ -58,6 +57,7 @@
5857
from lib.core.unescaper import unescaper
5958
from lib.request.connect import Connect as Request
6059
from lib.utils.progress import ProgressBar
60+
from lib.utils.safe2bin import safecharencode
6161
from lib.utils.xrange import xrange
6262

6363
def bisection(payload, expression, length=None, charsetType=None, firstChar=None, lastChar=None, dump=False):

0 commit comments

Comments
 (0)