[LOS] Assassin ํ’€์ด(15)

15 ๋ฒˆ์งธ ๋ฌธ์ œ์ธ "assassin"์ž…๋‹ˆ๋‹ค. ํ•ด๋‹น ๋ฌธ์ œ์˜ ๊ฒฝ์šฐ "$_GET[pw]" ๋ผ๋Š” ๋ณ€์ˆ˜์— ์ฟผ๋ฆฌ๋ฌธ์„ ์ž…๋ ฅ๋ฐ›์•„ ์‹คํ–‰๋˜๋Š” ํ˜•ํƒœ๋ฅผ ๊ฐ€์ง€๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. if(preg_match('/\'/i', $_GET[pw])) exit("No Hack ~_~"); ์ž…๋ ฅ๊ฐ’์„ ๊ฒ€์ฆํ•˜๋Š” ๋ถ€๋ถ„์ธ "preg_match" ํ•จ์ˆ˜๋ฅผ ๋ณด๋ฉด ์‹ฑ๊ธ€์ฟผํ„ฐ๋ฅผ ๊ฒ€์ฆํ•˜๊ณ  ์žˆ๋Š” ๊ฒƒ์„ ํ™•์ธํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. if($result['id']) echo "Hello {$result[id]}"; if($result['id'] == 'admin') solve("assassin"); ์–ด์Ž„์‹  ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ•˜๊ธฐ ์œ„ํ•ด์„  ์ž…๋ ฅ๋ฐ›์€ pw์˜ ๊ฐ’์ด "admin" ๊ณ„์ •์ด์–ด์•ผ ํ•œ๋‹ค๋Š”๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค. ์ƒ๋‹จ์˜ ์ฟผ๋ฆฌ๋ฌธ์„ ๋ณด๋ฉด =(๋“ฑํ˜ธ) ๋Œ€์‹  " like " ๊ตฌ๋ฌธ์„ ์“ฐ๊ณ  ์žˆ๋„ค์š” *like๋Š” ..

CHALLENGE