Skip to content

Commit

Permalink
parsing technique variation from JSON playbook
Browse files Browse the repository at this point in the history
  • Loading branch information
mvelazco committed Feb 19, 2021
1 parent 5cf3362 commit 838dd42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions PurpleSharp/Lib/Json.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public class SimulationPlaybook
public class PlaybookTask
{
public string technique { get; set; }
public int variation { get; set; }
}


Expand Down
2 changes: 1 addition & 1 deletion PurpleSharp/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ public static void Main(string[] args)
{
//techs.Add(task.technique);
//Console.WriteLine(task.technique);
ExecuteTechnique(task.technique, variation, 10, nhosts, tsleep, log, cleanup);
ExecuteTechnique(task.technique, task.variation, 10, nhosts, tsleep, log, cleanup);
if (playbook.pbsleep > 0 && task != lastTask) Thread.Sleep(1000 * playbook.pbsleep);
}
logger.TimestampInfo("Playbook Finished");
Expand Down

0 comments on commit 838dd42

Please sign in to comment.