123456789101112131415161718192021222324252627282930313233343536373839#include #include #include char exec_string[20]; void exec_the_string() { execlp(exec_string, exec_string, NULL);} void call_me_with_cafebabe(int cafebabe) { if (cafebabe == 0xcafebabe) { strcpy(exec_string, "/sh"); }} void call_me_with_two_args(int deadbeef, int cafebabe) { if (cafebabe == 0xcafebabe && deadbeef == 0xdeadbeef)..
12345678910111213141516171819202122#undef _FORTIFY_SOURCE#include #include #include void vulnerable_function() { char buf[128]; read(STDIN_FILENO, buf,256);} void be_nice_to_people() { // /bin/sh is usually symlinked to bash, which usually drops privs. Make // sure we don't drop privs if we exec bash, (ie if we call system()). gid_t gid = getegid(); setresgid(gid, gid, gid);} int main(int argc, ..
12345678910111213141516171819202122232425262728#undef _FORTIFY_SOURCE#include #include #include char * not_used = "/bin/bash"; int not_called() { return system("/bin/date");}: void vulnerable_function() { char buf[128]; read(STDIN_FILENO, buf, 256);} void be_nice_to_people() { // /bin/sh is usually symlinked to bash, which usually drops privs. Make // sure we don't drop privs if we exec bash, (i..
- Total
- Today
- Yesterday
- Pwnable.kr
- HarekazeCTF
- OllyDbg
- succubus
- orge
- Codegate
- protostar
- darkknight
- 비교 연산자
- Python
- 0ctf
- 파이썬
- 포너블
- 올리디버거
- lob
- luckyzzang
- C언어
- zombie_assassin
- bugbear
- Golem
- ftz
- 리버싱
- TAMUCTF
- BaskinRobins31
- Nightmare
- 클래스
- angry_doraemon
- babyheap
- babypwn
- picoctf
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |