[Dreamhack] beginner: bof
ยท
CTF, War game
1. ๋ฌธ์ œhttps://dreamhack.io/wargame/challenges/1111 bofDescription Buffer overflow is one of the basics of pwnable ๐Ÿฑ The path of the flag file is /home/bof/flag.dreamhack.ioThe path of the flag file is /home/bof/flag.2. ํ’€์ด(1) ์ฝ”๋“œ ํ™•์ธmain(): ์‚ฌ์šฉ์ž์˜ ์ž…๋ ฅ์„ ๋ฐ›์•„ read_cat()ํ•จ์ˆ˜๋ฅผ ํ˜ธ์ถœํ•˜๊ณ  ์ž…๋ ฅ์„ ์ถœ๋ ฅํ•˜๋Š” ์ฝ”๋“œ์ด๋‹ค. ์ด๋•Œ ./cat ์ด ์ €์žฅ๋˜๋Š” v5๋ณ€์ˆ˜๋Š” 16๋ฐ”์ดํŠธ์ด๊ณ , ์ž…๋ ฅ๊ฐ’์€ 128 ๋ฐ”์ดํŠธ์˜ ํฌ๊ธฐ์ด๋‹ค. ์ฆ‰,  v4์˜ ํฌ๊ธฐ๊ฐ€ 128๋ฐ”์ดํŠธ์ธ๋ฐ, scanf๋กœ ์ตœ๋Œ€ 144๋ฐ”์ดํŠธ๋ฅผ ์ฝ์–ด๋“ค์ด๋ฏ€๋กœ, bof๊ฐ€ ๋ฐœ์ƒํ•  ์ˆ˜ ์žˆ๋Š” ๊ฒƒ..
[Dreamhack] beginner: baby-bof
ยท
CTF, War game
1. ๋ฌธ์ œ https://dreamhack.io/wargame/challenges/974 baby-bofDescription Simple pwnable 101 challenge Q. What is Return Address? Q. Explain that why BOF is dangerous.dreamhack.io Q. What is Return Address?Q. Explain that why BOF is dangerous.2. ํ’€์ด๋ฌธ์ œ์— ๋‘๊ฐ€์ง€ ์งˆ๋ฌธ์ด ์ œ์‹œ๋˜์–ด ์žˆ์œผ๋ฏ€๋กœ, ์ด ์งˆ๋ฌธ์— ๋Œ€ํ•œ ๋‹ต์„ ํ•ด๊ฒฐํ•˜๋ฉด์„œ ๋ฌธ์ œ๋ฅผ ํ’€์–ด๋ณผ ๊ฒƒ์ด๋‹ค. ๋จผ์ € ๋ฌธ์ œ ์‹คํ–‰ํŒŒ์ผ์„ ida๋ฅผ ํ†ตํ•ด ๋””์Šค์–ด์…ˆ๋ธ” ํ•ด๋ณด๋ฉด, ์•„๋ž˜์™€ ๊ฐ™์€ ์ฝ”๋“œ๊ฐ€ ๋ณด์—ฌ์ง„๋‹ค.  the main function doesn't call win function (0x4012..
mnzy๐ŸŒฑ
'System_Hacking' ํƒœ๊ทธ์˜ ๊ธ€ ๋ชฉ๋ก
-->