-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdemo_script
25 lines (20 loc) · 935 Bytes
/
demo_script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# The script for the Quanta demo.
fpga_deploy
ssc_server_fmt 128 65536 /media/ssc_disk/disk.yml
sudo ssc_server 8990 eth0 /media/ssc_disk/disk.yml
ssc_client write ~/Downloads/lolcat1.jpg 1 pwnage.local
ssc_client read ~/Downloads/lolcat1_read.jpg 1 pwnage.local
# Close server. Insert disk 2.
cp /media/ssc_disk/disk.yml /media/ssc_disk_/disk.yml
# Remove both disks, then plug in a disk.
sudp ssc_server 8990 eth0 /media/ssc_disk/disk.yml # Up key.
ssc_client write ~/Downloads/lolcat2.jpg 1 pwnage.local
ssc_client read ~/Downloads/lolcat2_read.jpg 1 pwnage.local
# Delete lolcat2_read.jpg
# Close server. Swap the disks.
sudo ssc_server 8990 eth0 /media/ssc_disk/disk.yml # Up key.
ssc_client read ~/Downloads/lolcat2_read.jpg 1 pwnage.local
# Close server. Swap the disks again.
cp disk2.yml disk.yml
sudo ssc_server 8990 eth0 /media/ssc_disk/disk.yml # Up key.
ssc_client read ~/Downloads/lolcat2_read.jpg 1 pwnage.local