| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- {
- devices:[
- {
- id:"Example Alice",
- ports:1,
- x:0.25,
- y:0.35,
- script: deviceScripts.encryption
- },
- {
- id:"Example Bob",
- image: "iphone-1",
- ports:1,
- x:0.75,
- y:0.35,
- script: deviceScripts.encryption
- },
- {
- id:"Alice",
- ports:1,
- x:0.25,
- y:0.6
- },
- {
- id:"Eve",
- image: "macbook",
- type:"Switch",
- ports:2,
- x:0.5,
- y:0.6,
- player:true,
- defaultBehaviour:false,
- preload:true
- },
- {
- id:"Bob",
- image: "iphone-1",
- ports:1,
- x:0.75,
- y:0.6
- }
- ],
- links:[
- {
- src:"Alice", srcport:0,
- dst:"Eve", dstport:0
- },
- {
- src:"Eve", srcport:1,
- dst:"Bob", dstport:0
- },
- {
- src:"Example Alice", srcport:0,
- dst:"Example Bob", dstport:0
- }
- ],
- timeline:[
- {
- type:"packet",
- at:500,
- from:"Alice",
- payload:{
- network:{srcip:"Alice",dstip:"Bob"},
- transport:{proto:"encryption"},
- application:{type:"keyrequest"}
- }
- },
- {
- type:"packet",
- at:500,
- from:"Example Alice",
- payload:{
- network:{srcip:"Example Alice",dstip:"Example Bob"},
- transport:{proto:"encryption"},
- application:{type:"keyrequest"}
- }
- }
- ],
- triggers:[
- {
- type:"packet",
- device:"Eve",
- payload:{
- network:{srcip:"Alice",dstip:"Bob"},
- transport:{proto:"encryption"},
- application:{type:"message",key:"31337"}
- }
- },
- {
- type:"packet",
- device:"Bob",
- payload:{
- network:{srcip:"Alice", dstip: "Bob"},
- transport:{proto:"encryption"},
- application:{type:"message",key:"123456"}
- }
- }
- ]
- }
|