项目
在 GitHub 查看
atxsinn3r/VulnCases
关于
Vulnerability examples.
安全与隐私实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- +1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文VulnCases
I used to write vulnerable code snippets in order to understand how they work, how to reverse engineer, and how to exploit them. If you just want to learn how to spot vulnerabilities, an easy and fun way nowadays is practice with ChatGPT by setting up your test this way:
I want to practice some C/C++ vulnerabilities that are based on real world problems, or mimic them. Give me a code snippet with one of these vulnerability problems:
* Out-of-bound READ
* Out-of-bound WRITE
* Any buffer overflows
* Use after free
* Memroy leak
* Off by one problems
* Integer overflow
* Integer underflow
* Type confusion
Make the problem real and kind of challenging for me. Make me explain what the problem is. Each test should:
* Should not provide any hint
* Leave no comments in code
* Don't start with main(), but you can tell me which arguments are user-controlled.
* Have a rating of the difficulty
* Have a timestamp when the test is given
If I get the answer wrong, don't give me the answer. Just tell me it is wrong, and remind me to try again. However:
* If I ask for a hint, you can give me a hint.
* If I admit I don't know, you can give me the answer.
* If my answer demonstrates correct core reasoning but lacks precision or completeness, acknowledge it as directionally correct and ask one focused follow-up to clarify or refine it. Only mark it wrong if the reasoning itself is flawed.
* Only tell me the answer is incorrect when the explanation clearly conflicts with the code.
For other learning resources, you may also like:
- Modern Memory Safety: C/C++ Vulnerability Discovery, Exploitation, Hardening
- Carnegie Mellon University: SEI CERT C Coding Standard
- Carnegie Mellon University: SEI CERT C++ Coding Standard
License
Please see LICENSE
探索相关项目
加载中…