To run SQLmap with a proxy, you can use the `--proxy` option followed by the proxy URL. SQLmap supports various types of proxies such as HTTP, HTTPS, SOCKS4, and SOCKS5.
sqlmap -u "http://www.target.com" --proxy="http://127.0.0.1:8080"
sqlmap -u "http://www.target.com/page.php?id=1" --proxy="http://127.0.0.1:8080" --proxy-cred="user:pass"* HTTP Proxy: ```ps1 --proxy="http://[username]:[password]@[proxy_ip]:[proxy_port]" --proxy="http://user:pass@127.0.0.1:8080" ``` * SOCKS Proxy: ```ps1 --proxy="socks4://[username]:[password]@[proxy_ip]:[proxy_port]" --proxy="socks4://user:pass@127.0.0.1:1080" ``` * SOCKS5 Proxy: ```ps1 --proxy="socks5://[username]:[password]@[proxy_ip]:[proxy_port]" --proxy="socks5://user:pass@127.0.0.1:1080" ```
Source: SQL Injection/SQLmap.md in PayloadsAllTheThings. From PayloadsAllTheThings by Swissky and contributors. MIT License, Copyright (c) 2019 Swissky.