SWLUG 163

[Webhacking.kr] old-28

https://webhacking.kr/chall.php Webhacking.kr webhacking.kr old-28 ๋ฌธ์ œ๋ฅผ ๋ˆ„๋ฅด๋ฉด ๊ฐ€์žฅ ์ฒ˜์Œ์œผ๋กœ ๋‚˜์˜ค๋Š” ํ™”๋ฉด์ด๋‹ค. ๋ฏธ์…˜์€ ./upload/gKlIl1weasuc/flag.php ํŒŒ์ผ์„ ์ฝ๋Š” ๊ฒƒ์ด๊ณ  ๋‚ด ํŒŒ์ผ์€ ./upload/gKlIl1weasuc/ ์— ์—…๋กœ๋“œ ๋œ๋‹ค๊ณ  ํ•œ๋‹ค. ./upload/gKlIl1weasuc/flag.php ์„ ๋ˆ„๋ฅด๋ฉด ์•„๋ฌด๊ฒƒ๋„ ๋‚˜์˜ค์ง€ ์•Š๋Š”๋‹ค~ ์ผ๋‹จ [ํŒŒ์ผ ์„ ํƒ] ๋ฒ„ํŠผ์„ ๋ˆŒ๋Ÿฌ์„œ ์•„๋ฌด ์‚ฌ์ง„์ด๋‚˜ ์˜ฌ๋ ค๋ดค๋‹ค. "file too big"์ด๋ผ๋Š” ๋ฌธ๊ตฌ๊ฐ€ ์ƒ๊ฒผ๊ณ , http://webhacking.kr:10002/index.php --> ์ดˆ๊ธฐํ™”๋ฉด ์›นํŽ˜์ด์ง€ ์ฃผ์†Œ๋’ค์— /index.php ๊ฐ€ ์ถ”๊ฐ€๋๋‹ค. ๋ฐฉ๊ธˆ ์˜ฌ๋ ธ๋˜ ์ด๋ฏธ์ง€ ํŒŒ์ผ์ด ๋„ˆ๋ฌด ํฌ๋‹ค๊ธธ๋ž˜, ํŒŒ์ผ ํฌ๊ธฐ๊ฐ€..

[Network/๋„คํŠธ์›Œํฌ] Study 2์ฃผ์ฐจ :: LAN๊ณผ ๋งค์ฒด ์ ‘๊ทผ ์ œ์–ด ๊ธฐ์ˆ 

[1] LAN ๊ณผ WAN https://www.cloudflare.com/ko-kr/learning/network-layer/what-is-a-wan/ 1. ๊ด‘์—ญ ๋„คํŠธ์›Œํฌ(WAN)๋ž€? ๊ด‘์—ญ ๋„คํŠธ์›Œํฌ(WAN)๋Š” ๋จผ ๊ฑฐ๋ฆฌ์— ์žˆ๋Š” ์ปดํ“จํ„ฐ ๊ทธ๋ฃน์„ ์—ฐ๊ฒฐํ•˜๋Š” ๋Œ€๊ทœ๋ชจ ์ปดํ“จํ„ฐ ๋„คํŠธ์›Œํฌ์ž…๋‹ˆ๋‹ค. WAN์€ ๋Œ€๊ธฐ์—…์—์„œ ์‚ฌ๋ฌด์‹ค ๋„คํŠธ์›Œํฌ๋ฅผ ์—ฐ๊ฒฐํ•˜๋Š” ๋ฐ ์ž์ฃผ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค. ๊ฐ ์‚ฌ๋ฌด์‹ค์—๋Š” ์ผ๋ฐ˜์ ์œผ๋กœ ์ž์ฒด ๊ทผ๊ฑฐ๋ฆฌ ํ†ต์‹ ๋ง(LAN)์ด ์žˆ์œผ๋ฉฐ, ์ด๋Ÿฌํ•œ LAN์€ WAN์„ ํ†ตํ•ด ์—ฐ๊ฒฐ๋ฉ๋‹ˆ๋‹ค ์ด๋Ÿฌํ•œ ๊ธด ์—ฐ๊ฒฐ์€ ์ž„๋Œ€ ํšŒ์„ , VPN, IP ํ„ฐ๋„ ๋“ฑ ์—ฌ๋Ÿฌ ๋ฐฉ๋ฒ•์œผ๋กœ ํ˜•์„ฑ๋  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค(์•„๋ž˜ ์ฐธ์กฐ). WAN์˜ ๊ตฌ์„ฑ ์š”์†Œ์— ๋Œ€ํ•œ ์ •์˜๋Š” ์ƒ๋‹นํžˆ ๊ด‘๋ฒ”์œ„ํ•ฉ๋‹ˆ๋‹ค. ๊ธฐ์ˆ ์ ์œผ๋กœ๋Š”, ๋„“์€ ์ง€๋ฆฌ์  ์˜์—ญ์— ๊ฑธ์ณ ๋ถ„์‚ฐ๋œ ๋ชจ๋“  ๋Œ€๊ทœ๋ชจ ๋„คํŠธ์›Œํฌ๊ฐ€ WAN์ž…๋‹ˆ๋‹ค. ์ธํ„ฐ๋„ท ์ž์ฒด๋„ WA..

[Network/๋„คํŠธ์›Œํฌ] Study 2์ฃผ์ฐจ :: OSI 7๊ณ„์ธต

[1] ๊ณต๋ถ€ ์ž๋ฃŒ โ‘  https://koostar.tistory.com/173 ํ›„๋‹ˆ ๋„คํŠธ์›Œํฌ ( ๋„คํŠธ์›Œํฌ ๊ธฐ์ดˆ ๊ธฐ๋ณธ์„œ ) ์ดˆ๋ณด ๋ฉ”๋‰ด์–ผ ํ›„๋‹ˆ ๋„คํŠธ์›Œํฌ ( ๋„คํŠธ์›Œํฌ ๊ธฐ์ดˆ ๊ธฐ๋ณธ์„œ ) ์ดˆ๋ณด ๋ฉ”๋‰ด์–ผ ์˜›๋‚  PCํ†ต์‹ ์‹œ์ ˆ ํ•˜์ดํ…”, ๋‚˜์šฐ๋ˆ„๋ฆฌ, ์œ ๋‹ˆํ…” ๋“ฑ๋“ฑ ์œ ๋ช…ํ–ˆ๋˜ ํ›„๋‹ˆ์˜ ๋„คํŠธ์›Œํฌ ๊ธฐ์ดˆ ๊ฐ€์ด๋“œ ๋ฉ”๋‰ด์–ผ์ž…๋‹ˆ๋‹ค. ๋„คํŠธ์›์Ÿ์ด๋กœ์จ ์ด ๋ฉ”๋‰ด์–ผ์€ ์™„์ „ koostar.tistory.com ๋„คํŠธ์›Œํฌ๋ฅผ ๊ณต๋ถ€ํ•˜๊ธฐ ์œ„ํ•ด, ์œ„์˜ ๋งํฌ์— ์˜ฌ๋ ค์ง„ 'ํ›„๋‹ˆ ๋„คํŠธ์›Œํฌ' ๋ผ๋Š” ์ž๋ฃŒ๋ฅผ ์ฝ๊ณ  ์ •๋ฆฌํ•œ ๋‚ด์šฉ์„ ๊ธฐ๋กํ•˜๊ฒ ๋‹ค. ์˜ค๋Š˜์€ 84ํ˜ธ, 175ํ˜ธ์— ๋Œ€ํ•œ ๋‚ด์šฉ์„ ์ •๋ฆฌํ•˜๋„๋ก ํ•œ๋‹ค. ์ œ84ํ˜ธ : OSI์™€ IIP์˜ ๋น„๊ต OSI(Open System Interconnection) ๋ ˆํผ๋Ÿฐ์Šค ๋ชจ๋ธ์€ 1980๋…„ ์ดˆ๋ฐ˜์— ISO(International Organization S..

[C] ๋ฐฑ์ค€ BEAKJOON 19532๋ฒˆ: ์ˆ˜ํ•™์€ ๋น„๋Œ€๋ฉด๊ฐ•์˜์ž…๋‹ˆ๋‹ค.

https://www.acmicpc.net/problem/19532 19532๋ฒˆ: ์ˆ˜ํ•™์€ ๋น„๋Œ€๋ฉด๊ฐ•์˜์ž…๋‹ˆ๋‹ค ์ •์ˆ˜ $a$, $b$, $c$, $d$, $e$, $f$๊ฐ€ ๊ณต๋ฐฑ์œผ๋กœ ๊ตฌ๋ถ„๋˜์–ด ์ฐจ๋ก€๋Œ€๋กœ ์ฃผ์–ด์ง„๋‹ค. ($-999 \leq a,b,c,d,e,f \leq 999$) ๋ฌธ์ œ์—์„œ ์–ธ๊ธ‰ํ•œ ๋ฐฉ์ •์‹์„ ๋งŒ์กฑํ•˜๋Š” $\left(x,y\right)$๊ฐ€ ์œ ์ผํ•˜๊ฒŒ ์กด์žฌํ•˜๊ณ , ์ด ๋•Œ $x$์™€ $y$๊ฐ€ ๊ฐ๊ฐ $- www.acmicpc.net ์ˆ˜ํ•™์€ ๋น„๋Œ€๋ฉด ๊ฐ•์˜๊ตฌ๋‚˜... ๋ถ€๋Ÿฝ๋‹ค... [1] ๋ฌธ์ œ [2] ์ •๋‹ต #pragma warning(disable:4996) #include int main() { int x1, y1, z1, x2, y2, z2; int i, j; scanf("%d %d %d %d %d %d", &x1, &y1, ..

[C] ๋ฐฑ์ค€ BEAKJOON 2164๋ฒˆ: ์นด๋“œ2

https://www.acmicpc.net/problem/2164 2164๋ฒˆ: ์นด๋“œ2 N์žฅ์˜ ์นด๋“œ๊ฐ€ ์žˆ๋‹ค. ๊ฐ๊ฐ์˜ ์นด๋“œ๋Š” ์ฐจ๋ก€๋กœ 1๋ถ€ํ„ฐ N๊นŒ์ง€์˜ ๋ฒˆํ˜ธ๊ฐ€ ๋ถ™์–ด ์žˆ์œผ๋ฉฐ, 1๋ฒˆ ์นด๋“œ๊ฐ€ ์ œ์ผ ์œ„์—, N๋ฒˆ ์นด๋“œ๊ฐ€ ์ œ์ผ ์•„๋ž˜์ธ ์ƒํƒœ๋กœ ์ˆœ์„œ๋Œ€๋กœ ์นด๋“œ๊ฐ€ ๋†“์—ฌ ์žˆ๋‹ค. ์ด์ œ ๋‹ค์Œ๊ณผ ๊ฐ™์€ ๋™์ž‘์„ ์นด๋“œ๊ฐ€ www.acmicpc.net ์ž˜ ๋ชจ๋ฅด๊ฒ ๋‹ค... ์—ฌ๋Ÿฌ๊ฐ€์ง€ ๋ฐฉ๋ฒ•์„ ์‹œ๋„ํ•ด๋ณด์•˜๋Š”๋ฐ, ์ง„์งœ ํ˜น์‹œ๋‚˜ํ•ด์„œ ์ œ์ถœํ–ˆ๋Š”๋ฐ ์—ญ์‹œ๋‚˜ ํ‹€๋ ธ๋‹ค. ๊ตฌ๊ธ€๋ง์„ ํ†ตํ•ด ์ •๋‹ต์„ ์•Œ์•„๋ณด์•˜๋‹ค. (์ฐธ๊ณ : https://jootopia0808.tistory.com/111, https://blog.naver.com/kim-nan-hee/221901814483 ) [1] ์ •๋‹ต ์ฝ”๋“œ #include #define size 500000 int main() { int n, ..

[webhacking.kr] old-12๋ฒˆ

[webhacking.kr] old-19๋ฒˆhttps://webhacking.kr/challenge/code-3/ Challenge 12 webhacking.kr ๋ฌธ์ œ ๋งํฌ๋กœ ๋“ค์–ด๊ฐ€๋ฉด ๋‚˜์˜ค๋Š” ํ™”๋ฉด์ด๋‹ค. "javascript challenge"๋ผ๊ณ  ์“ฐ์—ฌ์žˆ์œผ๋ฏ€๋กœ ๊ฐœ๋ฐœ์ž ๋„๊ตฌ๋กœ ๋“ค์–ด๊ฐ€ ์ค€๋‹ค. ์ œ์ผ ๋จผ์ € ๋ˆˆ์— ๋ˆ ๊ฑด ์•Œ ์ˆ˜ ์—†๋Š” ์ด๋ชจํ‹ฐ์ฝ˜๋“ค... ์–ด๋–ป๊ฒŒ ํ•ด์•ผ ํ• ์ง€ ๋ชจ๋ฅด๊ฒ ์–ด์„œ ๊ตฌ๊ธ€๋ง์„ ํ–ˆ๋‹ค. ( ์ฐธ๊ณ : https://security-nanglam.tistory.com/281 ) ๋‹ค์Œ์€ ํƒœ๊ทธ ์‚ฌ์ด์— ์žˆ๋Š” ์•Œ ์ˆ˜ ์—†๋Š” ์ด๋ชจํ‹ฐ์ฝ˜๋“ค์— ๋Œ€ํ•œ ์„ค๋ช…์ด๋‹ค. ์ด ๋‚œ๋…ํ™” ๋ฐฉ๋ฒ•์€ aaencode ๋ฐฉ์‹์œผ๋กœ, ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ๋ฅผ ์ด๋ชจํ‹ฐ์ฝ˜์œผ๋กœ ๋ฐ”๊ฟ”์ฃผ๋Š” ์•”ํ˜ธํ™” ๋ฐฉ์‹์ด๋‹ค. ์ผ๋ณธ์˜ ๊ฐœ๋ฐœ์ž๊ฐ€ ๋งŒ๋“ค์—ˆ๋‹ค๊ณ  ํ•œ๋‹ค. ์ฝ”๋“œ ๋‚œ๋…ํ™”๋Š” ํ”„๋กœ๊ทธ๋ž˜๋ฐ ์–ธ์–ด๋กœ ์ž‘์„ฑ๋œ ์ฝ”๋“œ..

[Root Me] Javascript - Webpack

https://www.root-me.org/en/Challenges/Web-Client/Javascript-Webpack Challenges/Web - Client : Javascript - Webpack [Root Me : Hacking and Information Security learning platform] TCP - Back to school just blocks when i try to read the flag after i have sent the calculation. Not sure if my calculation is wrong or what is is? www.root-me.org Start the challenge ๋ฒ„ํŠผ์„ ๋ˆŒ๋Ÿฌ ๋ฌธ์ œ ํ’€์ด๋ฅผ ์‹œ์ž‘ํ•˜์ž. ๋ฌธ์ œ ํ’€์ด์˜ ์ฒ˜์Œ ํ™”๋ฉด์ด๋‹ค. Q..

[Root Me] Javascript - Authentication 2

https://www.root-me.org/en/Challenges/Web-Client/Javascript-Authentication-2 Challenges/Web - Client : Javascript - Authentication 2 [Root Me : Hacking and Information Security learning platform] TCP - Back to school just blocks when i try to read the flag after i have sent the calculation. Not sure if my calculation is wrong or what is is? www.root-me.org Start the challenge ๋ฒ„ํŠผ์„ ๋ˆŒ๋Ÿฌ ๋ฌธ์ œ๋ฅผ ํ‘ธ๋Š” ์›นํŽ˜์ด์ง€๋กœ..