{"id":23050051,"url":"https://github.com/yuawn/ntu-computer-security","last_synced_at":"2025-07-23T12:02:52.198Z","repository":{"id":93094544,"uuid":"326146135","full_name":"yuawn/NTU-Computer-Security","owner":"yuawn","description":"台大 計算機安全 - Pwn 簡報、影片、作業題目與解法 - Computer Security Fall 2019 @ CSIE NTU Taiwan","archived":false,"fork":false,"pushed_at":"2021-11-28T08:03:14.000Z","size":2034,"stargazers_count":375,"open_issues_count":0,"forks_count":39,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-31T10:11:10.759Z","etag":null,"topics":["binary-exploitation","course","csie","ctf","education","exploitation","exploits","ntu","pwn","reverse-engineering","security"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yuawn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-01-02T09:07:27.000Z","updated_at":"2025-03-07T14:11:01.000Z","dependencies_parsed_at":"2023-06-04T19:15:54.212Z","dependency_job_id":null,"html_url":"https://github.com/yuawn/NTU-Computer-Security","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuawn%2FNTU-Computer-Security","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuawn%2FNTU-Computer-Security/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuawn%2FNTU-Computer-Security/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuawn%2FNTU-Computer-Security/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yuawn","download_url":"https://codeload.github.com/yuawn/NTU-Computer-Security/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247648978,"owners_count":20972945,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["binary-exploitation","course","csie","ctf","education","exploitation","exploits","ntu","pwn","reverse-engineering","security"],"created_at":"2024-12-15T23:19:01.616Z","updated_at":"2025-04-07T12:08:42.261Z","avatar_url":"https://github.com/yuawn.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NTU Computer Security Fall 2019 - 台大 計算機安全\n擔任台大大助教，與三週 Pwn 課程講師。\n\n## 課程內容\n### Week 1: Binary Exploitation - Basic\n\n- Slide: [speakerdeck.com/yuawn/binary-exploitation-basic](https://speakerdeck.com/yuawn/binary-exploitation-basic)  \n- Video: [youtu.be/U8N6aE-Nq-Q](https://youtu.be/U8N6aE-Nq-Q)\n- Lab:\n    - [bof](week1/exp/bof.py)\n        - stack buffer overflow, overwrite return address\n    - [orw](week1/exp/orw.py)\n        - seccomp filter syscall, shellcode\n- Homework:\n    - [Casino](week1/exp/casino.py)\n        - oob array access, GOT hijacking, shellcode\n\n### Week 2: Binary Exploitation\n\n- Slide: [speakerdeck.com/yuawn/binary-exploitation](https://speakerdeck.com/yuawn/binary-exploitation)  \n- Video: [youtu.be/5D7tvxpSUUM](https://youtu.be/5D7tvxpSUUM)\n- Lab:\n    - [ROP](week2/exp/rop.py)\n        - ROP bypass NX protection\n    - [ret2plt](week2/exp/ret2plt.py)\n        - Practice using plt functions\n    - [ret2libc](week2/exp/ret2libc.py)\n        - information leak, bypass ASLR, practice ret2libc technique\n- Homework:\n    - [Casino++](week2/exp/casino++.py)\n        - oob array access, GOT hijacking, leak libc, ret2libc hijack plt function to system()\n\n### Week 3: Heap Exploitation\n\n- Slide: [speakerdeck.com/yuawn/heap-exploitation](https://speakerdeck.com/yuawn/heap-exploitation)  \n- Video: [youtu.be/rMqvL9j0QaM](https://youtu.be/rMqvL9j0QaM)\n- Lab:\n    - [UAF](week3/exp/uaf.py)\n        - Practice using UAF to leak address and exploit.\n    - [Note](week3/exp/note.py)\n        - double free, fastbin attack\n    - [T-Note](week3/exp/t-note.py)\n        - Tcache dup\n- Homework:\n    - [Election](week3/exp/election.py)\n        - stack pivoting, ret2csu csu gadget\n    - [Note++](week3/exp/note++.py)\n        - off-by-one null byte overflow, fastbin dup, forge chunk size to leak libc, overwrite __malloc_hook, one gadget\n\n## 課程題目 challenges\n- 各 week 中 `src` 底下為題目原始碼\n- 各 week 中 `exp` 底下為答案解法 exploits\n\n### 環境 environment\n- OS: ubuntu 18.04\n- GCC: gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0\n\n### Build\n\n```bash\ncd week1 # week2 week3\ndocker-compose up -d\n```\n\n### Compile (如需自行重編題目 binary)\n\n```bash\nsudo apt install libseccomp-dev\nmake\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuawn%2Fntu-computer-security","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyuawn%2Fntu-computer-security","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuawn%2Fntu-computer-security/lists"}