Unverified Commit bc35081d by Marcin Bury Committed by GitHub

Removing https warnings (#405)

parent adc0b62a
import socket
import requests
import urllib3
from routersploit.core.exploit.exploit import Exploit
from routersploit.core.exploit.exploit import Protocol
......@@ -7,6 +8,8 @@ from routersploit.core.exploit.option import OptBool
from routersploit.core.exploit.printer import print_error
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
HTTP_TIMEOUT = 30.0
......@@ -18,6 +21,7 @@ class HTTPClient(Exploit):
verbosity = OptBool("true", "Verbosity enabled: true/false")
ssl = OptBool("false", "SSL enabled: true/false")
def http_request(self, method, path, session=requests, **kwargs):
if self.ssl:
url = "https://"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment