Skip to content

Commit

Permalink
Fix for cli processing of --msfoptions
Browse files Browse the repository at this point in the history
  • Loading branch information
anoncodeinc committed May 12, 2022
1 parent c825577 commit 51102f6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tools/evasion/evasion_common/shellcode_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,8 +545,7 @@ def cli_msf_shellcode_gen(command_line_args):
# Parse extra flags to be included in msfvenom command
extra_options = ""
if command_line_args.msfoptions is not None:
num_extra_options = command_line_args.msfoptions.split(' ')
for xtra_opt in num_extra_options:
for xtra_opt in command_line_args.msfoptions:
if xtra_opt != '':
if "=" not in xtra_opt:
print(helpers.color(" [!] Parameter not entered in correct syntax.\n", warning=True))
Expand Down

0 comments on commit 51102f6

Please sign in to comment.