spoofs02.json 1.8 KB

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