attacks03.json 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. {
  2. devices:[
  3. {
  4. id:"Alice",
  5. ports:1,
  6. x:0.1,
  7. y:0.3,
  8. player: true
  9. },
  10. {
  11. id:"Waterloo",
  12. image: "router",
  13. ports:2,
  14. x:0.25,
  15. y:0.6,
  16. script: deviceScripts.manualRouter,
  17. rules:[
  18. {dstip:"Alice", portNum:0},
  19. {dstip:"Toronto", portNum:1},
  20. {dstip:"New York", portNum:1},
  21. {dstip:"Mountain View", portNum:1},
  22. {dstip:"Google", portNum:1}
  23. ],
  24. secret: true
  25. },
  26. {
  27. id:"Toronto",
  28. image: "router",
  29. ports:2,
  30. x:0.4,
  31. y:0.3,
  32. script: deviceScripts.manualRouter,
  33. rules:[
  34. {dstip:"Alice", portNum:0},
  35. {dstip:"Waterloo", portNum:0},
  36. {dstip:"New York", portNum:1},
  37. {dstip:"Mountain View", portNum:1},
  38. {dstip:"Google", portNum:1}
  39. ],
  40. secret: true
  41. },
  42. {
  43. id:"New York",
  44. image: "router",
  45. ports:2,
  46. x:0.55,
  47. y:0.6,
  48. script: deviceScripts.manualRouter,
  49. rules:[
  50. {dstip:"Alice", portNum:0},
  51. {dstip:"Toronto", portNum:0},
  52. {dstip:"Waterloo", portNum:0},
  53. {dstip:"Mountain View", portNum:1},
  54. {dstip:"Google", portNum:1}
  55. ],
  56. secret: true
  57. },
  58. {
  59. id:"Mountain View",
  60. image: "router",
  61. ports:2,
  62. x:0.7,
  63. y:0.3,
  64. script: deviceScripts.manualRouter,
  65. rules:[
  66. {dstip:"Alice", portNum:0},
  67. {dstip:"Waterloo", portNum:0},
  68. {dstip:"Toronto", portNum:0},
  69. {dstip:"New York", portNum:0},
  70. {dstip:"Google", portNum:1}
  71. ],
  72. secret: true
  73. },
  74. {
  75. id:"Google",
  76. image: "server",
  77. ports:1,
  78. x:0.85,
  79. y:0.6,
  80. script: deviceScripts.ping
  81. }
  82. ],
  83. links:[
  84. {
  85. src:"Alice", srcport:0,
  86. dst:"Waterloo", dstport:0
  87. },
  88. {
  89. src:"Waterloo", srcport:1,
  90. dst:"Toronto", dstport:0
  91. },
  92. {
  93. src:"Toronto", srcport:1,
  94. dst:"New York", dstport:0
  95. },
  96. {
  97. src:"New York", srcport:1,
  98. dst:"Mountain View", dstport:0
  99. },
  100. {
  101. src:"Mountain View", srcport:1,
  102. dst:"Google", dstport:0
  103. }
  104. ],
  105. timeline:[
  106. {
  107. type:"packet",
  108. at:1000,
  109. from:"Alice",
  110. payload:{
  111. network:{srcip:"Alice",dstip:"Google"},
  112. transport:{proto:"ICMP", ttl:256}
  113. }
  114. },
  115. {
  116. type:"packet",
  117. at:2000,
  118. from:"Alice",
  119. payload:{
  120. network:{srcip:"Alice",dstip:"Google"},
  121. transport:{proto:"ICMP", ttl:256}
  122. }
  123. }
  124. ],
  125. triggers:[
  126. {
  127. type:"packet",
  128. device:"Waterloo",
  129. payload:{
  130. network:{srcip:"Alice",dstip:"Waterloo"}, transport:{proto:"ICMP"}
  131. }
  132. },
  133. {
  134. type:"packet",
  135. device:"Toronto",
  136. payload:{
  137. network:{srcip:"Alice",dstip:"Toronto"}, transport:{proto:"ICMP"}
  138. }
  139. },
  140. {
  141. type:"packet",
  142. device:"New York",
  143. payload:{
  144. network:{srcip:"Alice",dstip:"New York"}, transport:{proto:"ICMP"}
  145. }
  146. },
  147. {
  148. type:"packet",
  149. device:"Mountain View",
  150. payload:{
  151. network:{srcip:"Alice",dstip:"Mountain View"}, transport:{proto:"ICMP"}
  152. }
  153. }
  154. ]
  155. }