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

Skip to content

Commit 8e2f466

Browse files
committed
Removing dependency for bz2 as there are some reported problems with the library on non-standard platforms
1 parent 45c88b3 commit 8e2f466

15 files changed

Lines changed: 4 additions & 7 deletions

File tree

extra/cloak/cloak.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
import os
1111
import sys
12+
import zlib
1213

1314
from optparse import OptionError
1415
from optparse import OptionParser
@@ -24,20 +25,16 @@ def hideAscii(data):
2425
return retVal
2526

2627
def cloak(inputFile):
27-
import bz2
28-
2928
f = open(inputFile, 'rb')
30-
data = bz2.compress(f.read())
29+
data = zlib.compress(f.read())
3130
f.close()
3231

3332
return hideAscii(data)
3433

3534
def decloak(inputFile):
36-
import bz2
37-
3835
f = open(inputFile, 'rb')
3936
try:
40-
data = bz2.decompress(hideAscii(f.read()))
37+
data = zlib.decompress(hideAscii(f.read()))
4138
except:
4239
print 'ERROR: the provided input file \'%s\' does not contain valid cloaked content' % inputFile
4340
sys.exit(1)

extra/icmpsh/icmpsh.exe_

-197 Bytes
Binary file not shown.
-170 Bytes
Binary file not shown.
-155 Bytes
Binary file not shown.
-396 Bytes
Binary file not shown.

lib/utils/versioncheck.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
if PYVERSION >= "3" or PYVERSION < "2.6":
1313
exit("[CRITICAL] incompatible Python version detected ('%s'). For successfully running sqlmap you'll have to use version 2.6 or 2.7 (visit 'http://www.python.org/download/')" % PYVERSION)
1414

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

shell/backdoor.asp_

-59 Bytes
Binary file not shown.

shell/backdoor.aspx_

-71 Bytes
Binary file not shown.

shell/backdoor.jsp_

-80 Bytes
Binary file not shown.

shell/backdoor.php_

-66 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)