Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Commit

Permalink
Merge pull request #219 from gryffus/patch-2
Browse files Browse the repository at this point in the history
Fix check if module uses msfvenom, fixes CLI
  • Loading branch information
ChrisTruncer committed Sep 20, 2015
2 parents ac7bd61 + 63cf378 commit cc89c4a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/common/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,10 +327,11 @@ def SetPayload(self, payloadname, options):
print helpers.color("\n [!] Internal error #4.", warning=True)
# options['msfvenom'] = ["windows/meterpreter/reverse_tcp", ["LHOST=192.168.1.1","LPORT=443"]
if 'msfvenom' in options:
if hasattr(options, 'msfvenom'):
if hasattr(self.payload, 'shellcode'):
self.payload.shellcode.SetPayload(options['msfvenom'])
else:
print helpers.color("\n [!] Internal error #3: This module does not use msfvenom!", warning=True)
sys.exit()

if not self.ValidatePayload(self.payload):

Expand Down

0 comments on commit cc89c4a

Please sign in to comment.