Skip to content

Commit

Permalink
Fix for issue Veil-Framework#208 with bug in MINROCS golang payloads
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisTruncer committed May 9, 2018
1 parent f6f87b3 commit f8fac66
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 3 deletions.
8 changes: 6 additions & 2 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
[2018-05-09]
Released.: 3.1.9
Modified.: Fixed bug in golang payloads when using MINPROCS check, thanks to issue #208

[2018-05-08]
Released.: 3.1.8
Modified.: Setup script to now support Ubuntu 17 - thanks to @leesoh for the PR
Expand All @@ -7,8 +11,8 @@
Modified.: Setup updated for Debian thanks to @g0tmi1k

[2018-04-23]
Released.: 3.1.6
Modified.: Updated setup (again) thanks to @g0tmi1k!!!
Released.: 3.1.6
Modified.: Updated setup (again) thanks to @g0tmi1k!!!

[2018-04-05]
Released.: 3.1.5
Expand Down
2 changes: 1 addition & 1 deletion lib/common/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
sys.exit()

# Current version of Veil
veil_version = "3.1.8"
veil_version = "3.1.9"


def title_screen():
Expand Down
2 changes: 2 additions & 0 deletions tools/evasion/payloads/go/meterpreter/rev_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ def generate(self):
# Add in other imports based on checks being performed
if self.required_options["USERNAME"][0].lower() != "x":
payload_code += "\"strings\"\n\"os/user\"\n"
if self.required_options["MINPROCS"][0].lower() != "x":
payload_code += "\"os\"\n"
if self.required_options["HOSTNAME"][0].lower() != "x" or self.required_options["PROCCHECK"][0].lower() != 'false':
if "strings" not in payload_code:
payload_code += "\"strings\"\n"
Expand Down
2 changes: 2 additions & 0 deletions tools/evasion/payloads/go/meterpreter/rev_https.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ def generate(self):
# Add in other imports based on checks being performed
if self.required_options["USERNAME"][0].lower() != "x":
payload_code += "\"strings\"\n\"os/user\"\n"
if self.required_options["MINPROCS"][0].lower() != "x":
payload_code += "\"os\"\n"
if self.required_options["HOSTNAME"][0].lower() != "x" or self.required_options["PROCCHECK"][0].lower() != 'false':
if "strings" not in payload_code:
payload_code += "\"strings\"\n"
Expand Down
2 changes: 2 additions & 0 deletions tools/evasion/payloads/go/meterpreter/rev_tcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ def generate(self):
# Add in other imports based on checks being performed
if self.required_options["USERNAME"][0].lower() != "x":
payload_code += "\"strings\"\n\"os/user\"\n"
if self.required_options["MINPROCS"][0].lower() != "x":
payload_code += "\"os\"\n"
if self.required_options["HOSTNAME"][0].lower() != "x" or self.required_options["PROCCHECK"][0].lower() != 'false':
if "strings" not in payload_code:
payload_code += "\"strings\"\n"
Expand Down

0 comments on commit f8fac66

Please sign in to comment.