Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
routersploit
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
czos-dpend
routersploit
Commits
bc35081d
Unverified
Commit
bc35081d
authored
May 09, 2018
by
Marcin Bury
Committed by
GitHub
May 09, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removing https warnings (#405)
parent
adc0b62a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
http_client.py
routersploit/core/http/http_client.py
+4
-0
No files found.
routersploit/core/http/http_client.py
View file @
bc35081d
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://"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment