From 3d6e35e64945fde406c0daaede06ce38f971e327 Mon Sep 17 00:00:00 2001 From: TrustedSec Date: Mon, 14 Oct 2013 22:42:01 -0400 Subject: [PATCH] Bug fix causing shellcodeexec to error out --- config/set_config | 2 +- readme/CHANGES | 6 ++++++ src/core/payloadgen/create_payloads.py | 6 ++++-- src/core/setcore.py | 2 +- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/config/set_config b/config/set_config index 037d04970..1fb96418e 100644 --- a/config/set_config +++ b/config/set_config @@ -120,7 +120,7 @@ SELF_SIGNED_APPLET=OFF # ### This flag will set the java id flag within the java applet to something different. ### This could be to make it look more believable or for better obfuscation -JAVA_ID_PARAM=Verified Trusted and Secure (SECURE) +JAVA_ID_PARAM=Verified Trusted and Secure (VERIFIED) # ### Java applet repeater option will continue to prompt the user with the java applet if ### the user hits cancel. This means it will be non stop until run is executed. This gives diff --git a/readme/CHANGES b/readme/CHANGES index 62c5e59c8..0fe77b1e8 100644 --- a/readme/CHANGES +++ b/readme/CHANGES @@ -1,3 +1,9 @@ +~~~~~~~~~~~~~~~~ +version 5.3.9 +~~~~~~~~~~~~~~~ + +* small bug fix that caused shellcodeexec to error out + ~~~~~~~~~~~~~~~~ version 5.3.8 ~~~~~~~~~~~~~~~~ diff --git a/src/core/payloadgen/create_payloads.py b/src/core/payloadgen/create_payloads.py index 9d1aa91c5..ca4949cfa 100644 --- a/src/core/payloadgen/create_payloads.py +++ b/src/core/payloadgen/create_payloads.py @@ -511,9 +511,11 @@ try: filewrite = file("%s/meterpreter.alpha_decoded" % (setdir), "w") filewrite.write(shellcode) filewrite.close() + if choice1 == "shellcode/pyinject" or choice1 == "shellcode/multipyinject": - # close the pyinjector file for ports and payload - payload_options.close() + + # close the pyinjector file for ports and payload + payload_options.close() # here we are going to encode the payload via base64 fileopen = file("%s/meterpreter.alpha_decoded" % (setdir), "r") diff --git a/src/core/setcore.py b/src/core/setcore.py index 176aa90d5..7eed667b0 100644 --- a/src/core/setcore.py +++ b/src/core/setcore.py @@ -229,7 +229,7 @@ def print_error(message): print bcolors.RED + bcolors.BOLD + "[!] " + bcolors.ENDC + bcolors.RED + str(message) + bcolors.ENDC def get_version(): - define_version = '5.3.8' + define_version = '5.3.9' return define_version class create_menu: