๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๐ŸดCTF/Lord of SQLinjection

Lord of SQLinjection - giant

by Janger 2021. 12. 8.
728x90
๋ฐ˜์‘ํ˜•

https://los.rubiya.kr/chall/giant_18a08c3be1d1753de0cb157703f75a5e.php

 

https://los.rubiya.kr/chall/giant_18a08c3be1d1753de0cb157703f75a5e.php

 

los.rubiya.kr

 

shit์ด๋ผ๋Š” ์ธ์ž๋ฅผ ์ž…๋ ฅ๋ฐ›์•„์„œ ์ฟผ๋ฆฌ๋ฌธ์„ ์‹คํ–‰์‹œํ‚ค๋Š” ๊ฒƒ์ด ๋ชฉ์  

 

์ฟผ๋ฆฌ๋ฌธ์€ select 1234 from{$_GET[shit]}prob_giant where 1

์ด๋ ‡๊ฒŒ ๊ตฌ์„ฑ๋˜์–ด์žˆ์œผ๋ฉฐ, ์ฟผ๋ฆฌ๋ฅผ ์ •์ƒ ๋™์ž‘์„ ์‹œํ‚ค๊ธฐ ์œ„ํ•ด์„œ๋Š” from ๋’ค์— ๊ณต๋ฐฑ์„ ๋„ฃ์–ด์•ผ ํ•œ๋‹ค. 

 

๊ณต๋ฐฑ์„ ๋„˜๊ฒจ์ฃผ๋Š”๊ฒŒ ์‰ฝ์ง€๋งŒ์€ ์•Š๋‹ค. URL ์ฃผ์†Œ์— ์ŠคํŽ˜์ด์Šค๋ฅผ ๋„ฃ์–ด๋„ ์ „๋‹ฌ์ด ๋˜์ง€ ์•Š๋Š”๋‹ค. 

 

๊ทธ๋ž˜์„œ ๊ณต๋ฐฑ์„ ๋Œ€์‹ ํ•  ๋‹ค๋ฅธ ๊ฒƒ์„ ๋„ฃ์–ด์คฌ๋‹ค. 

๋ฐ”๋กœ "%0b" ์š”๊ฒƒ์„ 

 

 

์ฐธ๊ณ : 

https://janger.tistory.com/126?category=1240702 

 

728x90
๋ฐ˜์‘ํ˜•

'๐ŸดCTF > Lord of SQLinjection' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

Lord of SQLinjection - succubus  (0) 2021.12.08
Lord of SQLinjection - assassin  (0) 2021.12.08
Lord of SQLinjection - bugbear  (0) 2021.12.07
Lord of SQLinjection - darkknight  (0) 2021.12.07
Lord of SQLinjection - skeleton  (0) 2021.12.07