๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

WarGame3

[Dreamhack] baby-linux ๋“œ๋ฆผํ•ต ์›Œ๊ฒŒ์ž„ ๋ฌธ์ œ ํ’€์ด ๐Ÿคฑ baby-linux ๋“œ๋ฆผํ•ต ์›Œ๊ฒŒ์ž„ ๋ฌธ์ œ ํ’€์ด 1. ๋ฌธ์ œ ์„ค๋ช… ํ™•์ธ ํ›„ ์„œ๋ฒ„ ์ƒ์„ฑ 2. ์ƒ์„ฑํ•œ ์„œ๋ฒ„๋กœ ์ ‘์† --> ls ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•˜์—ฌ ํ˜„์กดํ•˜๋Š” ํŒŒ์ผ ๋ชฉ๋ก ์ถœ๋ ฅ 3. cat ๋ช…๋ น์–ด๋ฅผ ํ†ตํ•ด requirements.txt ํŒŒ์ผ ์˜คํ”ˆ --> ๋ณ„๋‹ค๋ฅธ ํžŒํŠธ๋ฅผ ๋ฐœ๊ฒฌํ•˜์ง€ ๋ชปํ•จ 4. cat ๋ช…๋ น์–ด๋ฅผ ํ†ตํ•ด hint.txt ํŒŒ์ผ ์˜คํ”ˆ --> FLAG์˜ ๊ฒฝ๋กœ ๋ฐœ๊ฒฌ 5. ๋‹ค์‹œ cat ๋ช…๋ น์–ด๋ฅผ ์ด์šฉํ•ด hello ํŒŒ์ผ์— ์ ‘๊ทผ ์‹œ๋„ --> No! ๋ฌธ์ž์—ด๊ณผ ํ•จ๊ป˜ ์ ‘๊ทผ ๊ฑฐ๋ถ€ echo $(cat ./dream/hack/hello/flag.txt) 6. app.py ํŒŒ์ผ์„ ์—ด์–ด ์†Œ์Šค์ฝ”๋“œ ํ™•์ธ 7. app.py ์ฝ”๋“œ ํ™•์ธ --> Line 13์—์„œ 'flag' ์šฉ์–ด ํ•„ํ„ฐ๋ง ์š”์†Œ ๋ฐœ๊ฒฌ #!/usr/bin/env python3 import .. 2023. 11. 23.
[Dreamhack] Session - Basic ๋“œ๋ฆผํ•ต ์›Œ๊ฒŒ์ž„ ๋ฌธ์ œ ํ’€์ด 1 - 0 - 6. Session - Basic ์ทจ์•ฝ์  ํƒ์ƒ‰ ์‹ค์Šต # Session - Basic 1. ๋ฌธ์ œ ์„ค๋ช…์„ ํ™•์ธํ•œ ํ›„ ๋“œ๋ฆผํ•ต ์‚ฌ์ดํŠธ์—์„œ ๋ฌธ์ œ ํŒŒ์ผ์„ ๋‹ค์šด๋กœ๋“œ 2. VScode์—์„œ python ํŒŒ์ผ์„ ์‹คํ–‰ 3. ๋ฌธ์ œ ํŒŒ์ผ์˜ ์ฝ”๋“œ ๋ถ„์„ + > : flag.txt ํŒŒ์ผ์—์„œ FLAG ๋ฐ์ดํ„ฐ๋ฅผ ํ˜ธ์ถœํ•˜๋Š” ์ฝ”๋“œ + > : ํ˜„์žฌ guest, user, admin 3๊ฐœ์˜ ๊ณ„์ •์ด ์กด์žฌํ•œ๋‹ค๋Š” ๊ฒƒ์„ ํ™•์ธ : guest์˜ pw๋Š” guest, user์˜ pw๋Š” user1234, admin ์˜ pw๋Š” FLAG์ž„์„ ํ™•์ธ + > : route๋Š” URL์— ์š”์ฒญ์ด ๋“ค์–ด์™”์„ ๊ฒฝ์šฐ ํ˜ธ์ถœํ•  ํ•จ์ˆ˜๋ฅผ ๊ฒฐ์ • + > : ๋งŒ์ผ ๋กœ๊ทธ์ธํ•œ ์•„์ด๋””๊ฐ€ admin์ด ์•„๋‹ˆ๋ผ๋ฉด 'you are not admin'์„, ๋งž๋‹ค๋ฉด FLAG๋ฅผ ์ถœ๋ ฅ + > : ํด๋ผ.. 2022. 9. 17.
[Dreamhack_๋“œ๋ฆผํ•ต] Devtools-sources ์›Œ๊ฒŒ์ž„ ํ’€์ด 1 - 0 - 4. Devtools - sources Wargame # Devtools - Sources Wargame 1. ๋“œ๋ฆผํ•ต ์‚ฌ์ดํŠธ์—์„œ ๋ฌธ์ œ ํŒŒ์ผ์„ ๋‹ค์šด๋กœ๋“œํ•˜์—ฌ ๊ฐ๊ฐ์˜ ๋ธŒ๋ผ์šฐ์ €์— ์ ‘์† 2. F12๋ฅผ ํด๋ฆญํ•˜์—ฌ ๊ฐœ๋ฐœ์ž ๋„๊ตฌ ์‹คํ–‰ --> Sources ๋กœ ์ด๋™ 3. Ctrl + f ๋ฅผ ํ†ตํ•ด ๊ฐœ๋ฐœ์ž ๋„๊ตฌ์˜ ๊ฒ€์ƒ‰ ๊ธฐ๋Šฅ ์ˆ˜ํ–‰ ๊ฐ€๋Šฅ + ๋“œ๋ฆผํ•ต์˜ ํ”Œ๋ž˜๊ทธ ํ˜•ํƒœ๋Š” ์œ„ ์‚ฌ์ง„์—์„œ ๋ณด์ด๋Š” ๋ฐ”์™€ ๊ฐ™์ด DH{.........}์˜ ํ˜•ํƒœ๋ฅผ ๋ˆ๋‹ค. 2022. 9. 16.