attacks01.json 1.7 KB

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