attacks01.json 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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. ports:1,
  14. x:0.75,
  15. y:0.35,
  16. script: deviceScripts.encryption
  17. },
  18. {
  19. id:"Alice",
  20. ports:1,
  21. x:0.25,
  22. y:0.6,
  23. script: deviceScripts.encryption
  24. },
  25. {
  26. id:"Eve",
  27. image: "macbook",
  28. ports:2,
  29. x:0.5,
  30. y:0.6,
  31. player:true
  32. },
  33. {
  34. id:"Bob",
  35. image: "iphone-1",
  36. ports:1,
  37. x:0.75,
  38. y:0.6,
  39. script: deviceScripts.encryption
  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:500,
  60. from:"Alice",
  61. payload:{
  62. network:{srcip:"Alice",dstip:"Bob"},
  63. transport:{proto:"encryption"},
  64. application:{type:"keyrequest"}
  65. }
  66. },
  67. {
  68. type:"packet",
  69. at:500,
  70. from:"Example Alice",
  71. payload:{
  72. network:{srcip:"Example Alice",dstip:"Example Bob"},
  73. transport:{proto:"encryption"},
  74. application:{type:"keyrequest"}
  75. }
  76. }
  77. ],
  78. triggers:[
  79. {
  80. type:"packet",
  81. device:"Eve",
  82. payload:{
  83. network:{srcip:"Alice",dstip:"Bob"},
  84. transport:{proto:"encryption"},
  85. application:{type:"message",key:"31337"}
  86. }
  87. },
  88. {
  89. type:"packet",
  90. device:"Bob",
  91. payload:{
  92. network:{srcip:"Alice", dstip: "Bob"},
  93. transport:{proto:"encryption"},
  94. application:{type:"message",key:"123456"}
  95. }
  96. }
  97. ]
  98. }