dos02.json 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. capacity:3
  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:"flood",
  90. device:"Google"
  91. }
  92. ],
  93. nextLevel:10
  94. }