attacks02.json 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. {
  2. devices:[
  3. {
  4. id:"Alice",
  5. ports:1,
  6. x:0.25,
  7. y:0.6,
  8. script: deviceScripts.encryption,
  9. player: true
  10. },
  11. {
  12. id:"Censor",
  13. image: "router",
  14. ports:4,
  15. x:0.5,
  16. y:0.6,
  17. script: deviceScripts.manualRouter,
  18. rules:[
  19. {dstip:"Alice", portNum:0},
  20. {dstip:"Allowed Site", portNum:2},
  21. {dstip:"Proxy", portNum:3}
  22. ],
  23. player:false
  24. },
  25. {
  26. id:"Blocked Site",
  27. image: "server",
  28. ports:1,
  29. x:0.8,
  30. y:0.4,
  31. player:false
  32. },
  33. {
  34. id:"Allowed Site",
  35. image: "server",
  36. ports:1,
  37. x:0.8,
  38. y:0.6
  39. },
  40. {
  41. id:"Proxy",
  42. image: "server",
  43. ports:2,
  44. x:0.6,
  45. y:0.4,
  46. script: deviceScripts.modem
  47. }
  48. ],
  49. links:[
  50. {
  51. src:"Alice", srcport:0,
  52. dst:"Censor", dstport:0
  53. },
  54. {
  55. src:"Censor", srcport:1,
  56. dst:"Blocked Site", dstport:0
  57. },
  58. {
  59. src:"Censor", srcport:2,
  60. dst:"Allowed Site", dstport:0
  61. },
  62. {
  63. src:"Censor", srcport:3,
  64. dst:"Proxy", dstport:0
  65. },
  66. {
  67. src:"Proxy", srcport:1,
  68. dst:"Blocked Site", dstport:0
  69. }
  70. ],
  71. timeline:[
  72. {
  73. type:"packet",
  74. at:500,
  75. from:"Alice",
  76. payload:{
  77. network:{srcip:"Alice",dstip:"Allowed Site"}
  78. }
  79. },
  80. {
  81. type:"packet",
  82. at:500,
  83. from:"Alice",
  84. payload:{
  85. network:{srcip:"Alice",dstip:"Blocked Site"}
  86. }
  87. }
  88. ],
  89. triggers:[
  90. {
  91. type:"packet",
  92. device:"Blocked Site",
  93. payload:{
  94. network:{srcip:"Alice",dstip:"Blocked Site"}
  95. }
  96. }
  97. ]
  98. }