attacks01.json 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. {
  2. devices:[
  3. {
  4. id:"Example Alice",
  5. ports:1,
  6. x:0.25,
  7. y:0.35,
  8. script: deviceScripts.encryption
  9. },
  10. {
  11. id:"Example Bob",
  12. image: "iphone-1",
  13. ports:1,
  14. x:0.75,
  15. y:0.35,
  16. script: deviceScripts.encryption
  17. },
  18. {
  19. id:"Alice",
  20. ports:1,
  21. x:0.25,
  22. y:0.6
  23. },
  24. {
  25. id:"Eve",
  26. image: "macbook",
  27. type:"Switch",
  28. ports:2,
  29. x:0.5,
  30. y:0.6,
  31. player:true,
  32. defaultBehaviour:false,
  33. preload:true
  34. },
  35. {
  36. id:"Bob",
  37. image: "iphone-1",
  38. ports:1,
  39. x:0.75,
  40. y:0.6
  41. }
  42. ],
  43. links:[
  44. {
  45. src:"Alice", srcport:0,
  46. dst:"Eve", dstport:0
  47. },
  48. {
  49. src:"Eve", srcport:1,
  50. dst:"Bob", dstport:0
  51. },
  52. {
  53. src:"Example Alice", srcport:0,
  54. dst:"Example Bob", dstport:0
  55. }
  56. ],
  57. timeline:[
  58. {
  59. type:"packet",
  60. at:500,
  61. from:"Alice",
  62. payload:{
  63. network:{srcip:"Alice",dstip:"Bob"},
  64. transport:{proto:"encryption"},
  65. application:{type:"keyrequest"}
  66. }
  67. },
  68. {
  69. type:"packet",
  70. at:500,
  71. from:"Example Alice",
  72. payload:{
  73. network:{srcip:"Example Alice",dstip:"Example Bob"},
  74. transport:{proto:"encryption"},
  75. application:{type:"keyrequest"}
  76. }
  77. }
  78. ],
  79. triggers:[
  80. {
  81. type:"packet",
  82. device:"Eve",
  83. payload:{
  84. network:{srcip:"Alice",dstip:"Bob"},
  85. transport:{proto:"encryption"},
  86. application:{type:"message",key:"31337"}
  87. }
  88. },
  89. {
  90. type:"packet",
  91. device:"Bob",
  92. payload:{
  93. network:{srcip:"Alice", dstip: "Bob"},
  94. transport:{proto:"encryption"},
  95. application:{type:"message",key:"123456"}
  96. }
  97. }
  98. ]
  99. }