level05.json 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. {
  2. devices:[
  3. {
  4. id:"Alice",
  5. ports:1,
  6. x:0.2,
  7. y:0.6,
  8. player:true
  9. },
  10. {
  11. id:"Google",
  12. image:"server",
  13. ports:1,
  14. x:0.8,
  15. y:0.4,
  16. script: deviceScripts.ping
  17. },
  18. {
  19. id:"Bob",
  20. ports:1,
  21. x:0.2,
  22. y:0.2,
  23. image:"macbook"
  24. },
  25. {
  26. id:"Home",
  27. image:"router",
  28. ports:3,
  29. x:0.4,
  30. y:0.4,
  31. script: deviceScripts.modem
  32. }
  33. ],
  34. links:[
  35. {
  36. src:"Alice", srcport:0,
  37. dst:"Home", dstport:1
  38. },
  39. {
  40. src:"Bob", srcport:0,
  41. dst:"Home", dstport:2
  42. },
  43. {
  44. src:"Home", srcport:0,
  45. dst:"Google", dstport:0
  46. }
  47. ],
  48. timeline:[
  49. {
  50. type:"packet",
  51. at:500,
  52. from:"Alice",
  53. payload:{
  54. network:{srcip: "Alice", dstip:"Google"}
  55. }
  56. },
  57. {
  58. type:"packet",
  59. at:1000,
  60. from:"Bob",
  61. payload:{
  62. network:{srcip: "Bob", dstip:"Google"},
  63. transport:{proto:"example"}
  64. }
  65. }
  66. ],
  67. triggers:[
  68. {
  69. type:"packet",
  70. device:"Alice",
  71. payload:{
  72. network:{srcip:"Google", dstip:"Alice"},
  73. transport:{proto:"ICMP"}
  74. }
  75. }
  76. ],
  77. nextLevel:6
  78. }