dos02.json 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. {
  2. devices:[
  3. {
  4. id:"Alice",
  5. image: "macbook",
  6. ports:1,
  7. x:0.25,
  8. y:0.2,
  9. player:true
  10. },
  11. {
  12. id:"Zombie 1",
  13. image: "macbook",
  14. ports:1,
  15. x:0.25,
  16. y:0.4,
  17. player:true
  18. },
  19. {
  20. id:"Zombie 2",
  21. image: "iphone-1",
  22. ports:1,
  23. x:0.25,
  24. y:0.6,
  25. player:true
  26. },
  27. {
  28. id:"Zombie 3",
  29. ports:1,
  30. x:0.25,
  31. y:0.8,
  32. player:true
  33. },
  34. {
  35. id:"Google",
  36. image: "server",
  37. ports:1,
  38. x:0.8,
  39. y:0.5,
  40. bufferWait:305
  41. },
  42. {
  43. id:"Google's Firewall",
  44. image: "router",
  45. ports:5,
  46. x:0.6,
  47. y:0.5,
  48. script: deviceScripts.firewall,
  49. rules:[
  50. {srcip:"Alice"}
  51. ]
  52. }
  53. ],
  54. links:[
  55. {
  56. src:"Alice", srcport:0,
  57. dst:"Google's Firewall", dstport:4
  58. },
  59. {
  60. src:"Zombie 1", srcport:0,
  61. dst:"Google's Firewall", dstport:1
  62. },
  63. {
  64. src:"Zombie 2", srcport:0,
  65. dst:"Google's Firewall", dstport:2
  66. },
  67. {
  68. src:"Zombie 3", srcport:0,
  69. dst:"Google's Firewall", dstport:3
  70. },
  71. {
  72. src:"Google", srcport:0,
  73. dst:"Google's Firewall", dstport:0
  74. }
  75. ],
  76. timeline:[
  77. {
  78. type:"packet",
  79. at:50,
  80. from:"Alice",
  81. times:20,
  82. payload:{
  83. network:{srcip:"Alice",dstip:"Google"}
  84. }
  85. }
  86. ],
  87. triggers:[
  88. {
  89. type:"packet",
  90. device:"Google",
  91. payload:{
  92. network:{srcip:"Zombie 1", dstip:"Google"}
  93. }
  94. },
  95. {
  96. type:"packet",
  97. device:"Google",
  98. payload:{
  99. network:{srcip:"Zombie 2", dstip:"Google"}
  100. }
  101. },
  102. {
  103. type:"packet",
  104. device:"Google",
  105. payload:{
  106. network:{srcip:"Zombie 3", dstip:"Google"}
  107. }
  108. },
  109. {
  110. type:"packet",
  111. device:"Google",
  112. times:60
  113. }
  114. ],
  115. nextLevel:10
  116. }