Skip to content

Commit

Permalink
fix purplesharp parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
mvelazc0 committed Jul 13, 2023
1 parent b688346 commit 5f2b4eb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions modules/purplesharp_simulation_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ def simulate(self, target, technique, playbook) -> None:
ansible_user = 'Administrator'
ansible_port = 5985 + int(target[-1])

techniques = list()
if technique:
techniques = technique.split(',')
technique = technique.replace(" ","")

run_simulation_playbook = False
simulation_playbook = ''
Expand All @@ -49,7 +47,7 @@ def simulate(self, target, technique, playbook) -> None:
'ansible_password': self.config['general']['attack_range_password'],
'run_simulation_playbook': run_simulation_playbook,
'simulation_playbook': simulation_playbook,
'techniques': techniques,
'techniques': technique,
},
verbosity=0
)
Expand Down

0 comments on commit 5f2b4eb

Please sign in to comment.