attacks01.json 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. {
  2. devices:[
  3. {
  4. id:"Example Alice",
  5. type:"SimpleEncryptionComputer",
  6. ports:1,
  7. x:0.25,
  8. y:0.35
  9. },
  10. {
  11. id:"Example Bob",
  12. type:"SimpleEncryptionComputer",
  13. ports:1,
  14. x:0.75,
  15. y:0.35
  16. },
  17. {
  18. id:"Alice",
  19. type:"SimpleEncryptionComputer",
  20. ports:1,
  21. x:0.25,
  22. y:0.6
  23. },
  24. {
  25. id:"Eve",
  26. type:"Switch",
  27. ports:2,
  28. x:0.5,
  29. y:0.6,
  30. player:true,
  31. defaultBehaviour:false,
  32. preload:true
  33. },
  34. {
  35. id:"Bob",
  36. type:"SimpleEncryptionComputer",
  37. ports:1,
  38. x:0.75,
  39. y:0.6
  40. }
  41. ],
  42. links:[
  43. {
  44. src:"Alice", srcport:0,
  45. dst:"Eve", dstport:0
  46. },
  47. {
  48. src:"Eve", srcport:1,
  49. dst:"Bob", dstport:0
  50. },
  51. {
  52. src:"Example Alice", srcport:0,
  53. dst:"Example Bob", dstport:0
  54. }
  55. ],
  56. timeline:[
  57. {
  58. type:"packet",
  59. at:50,
  60. from:"Alice",
  61. payload:{
  62. network:{srcip:"Alice",dstip:"Bob"},
  63. transport:{proto:"encryptedmessage"},
  64. application:{type:"keyrequest"}
  65. }
  66. },
  67. {
  68. type:"packet",
  69. at:50,
  70. from:"Example Alice",
  71. payload:{
  72. network:{srcip:"Example Alice",dstip:"Example Bob"},
  73. transport:{proto:"encryptedmessage"},
  74. application:{type:"keyrequest"}
  75. }
  76. }
  77. ],
  78. triggers:{
  79. t0:{
  80. type:"packet",
  81. device:"Eve",
  82. payload:{
  83. network:{srcip:"Alice",dstip:"Bob"},
  84. transport:{proto:"encryptedmessage"},
  85. application:{type:"message",encryptionkey:"31337"}
  86. }
  87. },
  88. t1:{
  89. type:"packet",
  90. device:"Bob",
  91. payload:{
  92. network:{srcip:"Alice"},
  93. transport:{proto:"encryptedmessage"},
  94. application:{type:"message",encryptionkey:"123456"}
  95. }
  96. }
  97. }
  98. }