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

Skip to content

Commit 30f8c30

Browse files
committed
Minor update
1 parent fd8bbaf commit 30f8c30

4 files changed

Lines changed: 11 additions & 11 deletions

File tree

lib/core/bigarray.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
except:
1111
import pickle
1212

13+
import bz2
1314
import itertools
1415
import os
1516
import sys
1617
import tempfile
17-
import zlib
1818

1919
from lib.core.enums import MKSTEMP_PREFIX
2020
from lib.core.exception import SqlmapSystemException
@@ -86,7 +86,7 @@ def pop(self):
8686
self.chunks.pop()
8787
try:
8888
with open(self.chunks[-1], "rb") as f:
89-
self.chunks[-1] = pickle.loads(zlib.decompress(f.read()))
89+
self.chunks[-1] = pickle.loads(bz2.decompress(f.read()))
9090
except IOError, ex:
9191
errMsg = "exception occurred while retrieving data "
9292
errMsg += "from a temporary file ('%s')" % ex.message
@@ -107,7 +107,7 @@ def _dump(self, chunk):
107107
self.filenames.add(filename)
108108
os.close(handle)
109109
with open(filename, "w+b") as f:
110-
f.write(zlib.compress(pickle.dumps(chunk, pickle.HIGHEST_PROTOCOL), BIGARRAY_COMPRESS_LEVEL))
110+
f.write(bz2.compress(pickle.dumps(chunk, pickle.HIGHEST_PROTOCOL), BIGARRAY_COMPRESS_LEVEL))
111111
return filename
112112
except (OSError, IOError), ex:
113113
errMsg = "exception occurred while storing data "
@@ -125,7 +125,7 @@ def _checkcache(self, index):
125125
if not (self.cache and self.cache.index == index):
126126
try:
127127
with open(self.chunks[index], "rb") as f:
128-
self.cache = Cache(index, pickle.loads(zlib.decompress(f.read())), False)
128+
self.cache = Cache(index, pickle.loads(bz2.decompress(f.read())), False)
129129
except IOError, ex:
130130
errMsg = "exception occurred while retrieving data "
131131
errMsg += "from a temporary file ('%s')" % ex.message

lib/core/settings.py

Lines changed: 2 additions & 2 deletions
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.1.19"
22+
VERSION = "1.2.1.20"
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)
@@ -531,7 +531,7 @@
531531
# Approximate chunk length (in bytes) used by BigArray objects (only last chunk and cached one are held in memory)
532532
BIGARRAY_CHUNK_SIZE = 1024 * 1024
533533

534-
# Compress (zlib) level used for storing BigArray chunks to disk (0-9)
534+
# Compress level used for storing BigArray chunks to disk (0-9)
535535
BIGARRAY_COMPRESS_LEVEL = 9
536536

537537
# Maximum number of socket pre-connects

lib/utils/versioncheck.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
PYVERSION = sys.version.split()[0]
1111

1212
if PYVERSION >= "3" or PYVERSION < "2.6":
13-
exit("[CRITICAL] incompatible Python version detected ('%s'). For successfully running sqlmap you'll have to use version 2.6.x or 2.7.x (visit 'https://www.python.org/downloads/')" % PYVERSION)
13+
exit("[CRITICAL] incompatible Python version detected ('%s'). To successfully run sqlmap you'll have to use version 2.6.x or 2.7.x (visit 'https://www.python.org/downloads/')" % PYVERSION)
1414

15-
extensions = ("gzip", "ssl", "sqlite3", "zlib")
15+
extensions = ("bz2", "gzip", "ssl", "sqlite3", "zlib")
1616
try:
1717
for _ in extensions:
1818
__import__(_)

txt/checksum.md5

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ ccd66880fc677a3c83db2a3a70d196d7 lib/controller/controller.py
2626
a7b0c8e5a18a3abe8803999dcfc4664f lib/controller/handler.py
2727
1e5532ede194ac9c083891c2f02bca93 lib/controller/__init__.py
2828
e3a3f5218b2e52dd0afafdfc9fed2002 lib/core/agent.py
29-
62fade52c1524364e6e0653c31143a9c lib/core/bigarray.py
29+
86a4703d5474badd8462146510b2c460 lib/core/bigarray.py
3030
27d1b0a4609eece643141408d1f18716 lib/core/common.py
3131
2a40d5b5997265daa890545d4a4a59b9 lib/core/convert.py
3232
9f87391b6a3395f7f50830b391264f27 lib/core/data.py
@@ -46,7 +46,7 @@ ffa5f01f39b17c8d73423acca6cfe86a lib/core/readlineng.py
4646
0c3eef46bdbf87e29a3f95f90240d192 lib/core/replication.py
4747
a7db43859b61569b601b97f187dd31c5 lib/core/revision.py
4848
fcb74fcc9577523524659ec49e2e964b lib/core/session.py
49-
0fe2ab6fe688d723c96b1f0326d4bdb5 lib/core/settings.py
49+
2ef6392db210a10901554ea061ee7256 lib/core/settings.py
5050
d0adc28a38e43a787df4471f7f027413 lib/core/shell.py
5151
63491be462c515a1a3880c27c2acc4a2 lib/core/subprocessng.py
5252
505aaa61e1bba3c3d4567c3e667699e3 lib/core/target.py
@@ -114,7 +114,7 @@ a6d6888e14a7c11f0884c8cc18489caa lib/utils/getch.py
114114
4a6886d3a0c7bf768df97738fa257de9 lib/utils/search.py
115115
4b17311256f0081904a67831252e3fb9 lib/utils/sqlalchemy.py
116116
dcc25183c6bd85b172c87cfcbc305ab6 lib/utils/timeout.py
117-
e426eae9ddf6a42bcb6b7355e2c2936f lib/utils/versioncheck.py
117+
ce5ec6300bc0a185827a21d8a8f09de3 lib/utils/versioncheck.py
118118
1e9cf437451ff8147a372a002641b963 lib/utils/xrange.py
119119
b9d2761f47fec3d98b88311a263fd5db plugins/dbms/access/connector.py
120120
3f1c50a1507d1c2f69c20c706230e2e2 plugins/dbms/access/enumeration.py

0 commit comments

Comments
 (0)