spoofs02.json 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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. }
  41. ],
  42. links:[
  43. {
  44. src:"Alice", srcport:0,
  45. dst:"Central Hub", dstport:0
  46. },
  47. {
  48. src:"Bob", srcport:0,
  49. dst:"Central Hub", dstport:1
  50. },
  51. {
  52. src:"Charlie", srcport:0,
  53. dst:"Central Hub", dstport:2
  54. },
  55. {
  56. src:"Google", srcport:0,
  57. dst:"Central Hub", dstport:3
  58. }
  59. ],
  60. timeline:[
  61. {
  62. type:"packet",
  63. at:100,
  64. from:"Google",
  65. payload:{
  66. network:{srcip:"Google",dstip:"Bob"}
  67. }
  68. },
  69. {
  70. type:"packet",
  71. at:150,
  72. from:"Google",
  73. payload:{
  74. network:{srcip:"Google",dstip:"Bob"}
  75. }
  76. },
  77. {
  78. type:"packet",
  79. at:200,
  80. from:"Google",
  81. payload:{
  82. network:{srcip:"Google",dstip:"Bob"}
  83. }
  84. },
  85. {
  86. type:"packet",
  87. at:380,
  88. from:"Charlie",
  89. payload:{
  90. network:{srcip:"Charlie",dstip:"Google"},
  91. transport:{proto:"ICMP"}
  92. }
  93. },
  94. {
  95. type:"packet",
  96. at:700,
  97. from:"Charlie",
  98. payload:{
  99. network:{srcip:"Charlie",dstip:"Google"},
  100. transport:{proto:"ICMP"}
  101. }
  102. }
  103. ],
  104. triggers:{
  105. t0:{
  106. type:"packet",
  107. device:"Alice",
  108. payload:{
  109. network:{dstip:"Charlie"}
  110. }
  111. }
  112. },
  113. nextLevel: "03 DoS/dos01.json"
  114. }