attacks01.json 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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. script: deviceScripts.encryption
  24. },
  25. {
  26. id:"Router",
  27. image: "router",
  28. ports:3,
  29. x:0.5,
  30. y:0.6,
  31. script: deviceScripts.manualRouter,
  32. rules:[
  33. {dstip:"Alice", portNum:0},
  34. {dstip:"Bob", portNum:1}
  35. ],
  36. player:false
  37. },
  38. {
  39. id:"Eve",
  40. image: "macbook",
  41. ports:1,
  42. x:0.5,
  43. y:0.8,
  44. player:true
  45. },
  46. {
  47. id:"Bob",
  48. image: "iphone-1",
  49. ports:1,
  50. x:0.75,
  51. y:0.6,
  52. script: deviceScripts.encryption
  53. }
  54. ],
  55. links:[
  56. {
  57. src:"Alice", srcport:0,
  58. dst:"Router", dstport:0
  59. },
  60. {
  61. src:"Router", srcport:1,
  62. dst:"Bob", dstport:0
  63. },
  64. {
  65. src:"Router", srcport:2,
  66. dst:"Eve", dstport:0
  67. },
  68. {
  69. src:"Example Alice", srcport:0,
  70. dst:"Example Bob", dstport:0
  71. }
  72. ],
  73. timeline:[
  74. {
  75. type:"packet",
  76. at:500,
  77. from:"Alice",
  78. payload:{
  79. network:{srcip:"Alice",dstip:"Bob"},
  80. transport:{proto:"encryption"},
  81. application:{type:"keyrequest"}
  82. }
  83. },
  84. {
  85. type:"packet",
  86. at:500,
  87. from:"Example Alice",
  88. payload:{
  89. network:{srcip:"Example Alice",dstip:"Example Bob"},
  90. transport:{proto:"encryption"},
  91. application:{type:"keyrequest"}
  92. }
  93. }
  94. ],
  95. triggers:[
  96. {
  97. type:"packet",
  98. device:"Eve",
  99. payload:{
  100. network:{srcip:"Alice",dstip:"Bob"},
  101. transport:{proto:"encryption"},
  102. application:{type:"message",key:"31337"}
  103. }
  104. },
  105. {
  106. type:"packet",
  107. device:"Bob",
  108. payload:{
  109. network:{srcip:"Alice", dstip: "Bob"},
  110. transport:{proto:"encryption"},
  111. application:{type:"message",key:"123456"}
  112. }
  113. }
  114. ]
  115. }