๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๐Ÿ”’์ •๋ณด๋ณด์•ˆ/์›น ๋ณด์•ˆ

์›น ํ•ดํ‚น - sqlmap

by Janger 2022. 7. 24.
728x90
๋ฐ˜์‘ํ˜•

sqlmap์€ ํŒŒ์ด์ฌ์œผ๋กœ ์ž‘์„ฑ๋œ ์˜คํ”ˆ ์†Œ์Šค SQL Injection ์ž๋™ํ™” ๋„๊ตฌ์ด๋‹ค.

MySQL, Oracle, PostgreSQL, Microsoft SQL Server, Microsoft Access ๋“ฑ ๋‹ค์–‘ํ•œ DBMS๋“ค์„ ์ง€์›ํ•˜๊ณ 
boolean-based blind, time-based blind, error-based, UNION query-based, stacked queries and out-of-band ๊ณต๊ฒฉ ๋ฐฉ์‹๋“ค์„ ์ง€์›ํ•œ๋‹ค๊ณ  ํ•œ๋‹ค.

์ด๋ ‡๊ฒŒ๋‚˜ ๋‹ค์–‘ํ•œ ์˜ต์…˜์„ ๋‹ค ์ž๋™์ ์œผ๋กœ ํ•ด์ฃผ๊ธฐ ๋•Œ๋ฌธ์— ์“ฐ์ง€ ์•Š์„ ์ด์œ ๊ฐ€ ์—†๋‹ค.

๋” ์ž์„ธํ•œ ๋‚ด์šฉ์€ ์ง์ ‘ ๊ณต์‹ ์‚ฌ์ดํŠธ์—์„œ ํ™•์ธ ๊ฐ€๋Šฅ
https://sqlmap.org/

sqlmap: automatic SQL injection and database takeover tool

Introduction sqlmap is an open source penetration testing tool that automates the process of detecting and exploiting SQL injection flaws and taking over of database servers. It comes with a powerful detection engine, many niche features for the ultimate p

sqlmap.org

URL ํŒŒ๋ผ๋ฏธํ„ฐ ๋ฐฉ์‹

์ฟ ํ‚ค ์˜ต์…˜์€ --cookie="์ฟ ํ‚ค"๋กœ ์ง€์ •

POST ๋ฐฉ์‹(With Burpsuite)

์šฐ์„  Burpsuite์—์„œ ์ธํ„ฐ์…‰ํŠธ๋ฅผ ํ™œ์„ฑํ™”ํ•œ ํ›„์— ํŽ˜์ด์ง€์—์„œ POST ์š”์ฒญ์„ ๋ณด๋‚ด ์‹ ํ˜ธ๋ฅผ ์žก์•„๋‚ธ๋‹ค.


Burpsuite์—์„œ ์šฐํด๋ฆญ ํ›„ Copy to file๋กœ ์ €์žฅ


$ sqlmap -r request.txt

๋‹ค์Œ ํ„ฐ๋ฏธ๋„์—์„œ ์œ„์˜ ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅ



์ถœ์ฒ˜:
https://programforlife.tistory.com/m/93

[์ธํ„ฐ๋„ท ๋ณด์•ˆ] SQL Injection - SQL Map

SQL Map์ด๋ž€? SQL Map์€ ํŒŒ์ด์ฌ์œผ๋กœ ๊ฐœ๋ฐœ๋œ ํˆด๋กœ Kali Linux์•ˆ์— ์„ค์น˜๋˜์–ด์žˆ๋Š” ํ”„๋กœ๊ทธ๋žจ์ž…๋‹ˆ๋‹ค. SQL Map์€ ํ„ฐ๋ฏธ๋„๋กœ ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•˜๋ฉด์„œ SQL Injection ๊ณต๊ฒฉ์„ ์ˆ˜ํ–‰ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. SQL Map์„ ์‹คํ–‰ํ•ด๋ณด๋ฉด ๋‹ค์Œ

programforlife.tistory.com

728x90
๋ฐ˜์‘ํ˜•