Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SQLMap: Can't establish SSL Connection: Need Solution

Tags:

sqlmap

Am trying to use SQLMap with https but when i try "C:\Python27\sqlmap>sqlmap.py -u https://localhost:8774/App/console/index.jsp --force-ssl" it returns "Can't establish SSL Connection".

So it there any way that i can pass SSL certificate to SQLMap?

Environment Details: OS: Windows 10 Python: 2.7 SQLMap: 1.4.2.42

Refer to attached image for more details.

like image 493
Hafiz Muhammad Emraan Avatar asked Dec 19 '25 02:12

Hafiz Muhammad Emraan


2 Answers

A simple solution for that is to set up a proxy listener like Burp Suite, browse over to the site with the bad SSL certificate and Trust it.

After that, you can include the following option in your SQLMap command:

--proxy="http://PROXY-IP:PROXY-PORT"

where proxy ip is generally 127.0.0.1 and proxy port 8080.

like image 198
0xVulf Avatar answered Dec 21 '25 22:12

0xVulf


remove https:// from 'u' paremeter, just put: -u localhost:8774/App/console/index.jsp

like image 38
Dawid Avatar answered Dec 22 '25 00:12

Dawid



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!