Skip to content

Commit

Permalink
Merge pull request splunk#822 from splunk/fix_purplesharp
Browse files Browse the repository at this point in the history
fix Purplesharp parameter
  • Loading branch information
mvelazc0 committed Jul 13, 2023
2 parents b688346 + 5f2b4eb commit aa54d9a
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 aa54d9a

Please sign in to comment.