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
06294967
Commit
06294967
authored
Apr 21, 2016
by
fwkz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
verify=False as default argument of http_request()
parent
50ab6c9b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
utils.py
routersploit/utils.py
+3
-3
No files found.
routersploit/utils.py
View file @
06294967
...
...
@@ -120,7 +120,7 @@ def __cprint(*args, **kwargs):
sep
=
kwargs
.
get
(
'sep'
,
' '
)
end
=
kwargs
.
get
(
'end'
,
'
\n
'
)
print
(
'
\033
[{}m'
.
format
(
colors
[
color
]),
end
=
''
,
file
=
file_
,
sep
=
sep
)
print
(
*
args
,
end
=
''
,
file
=
file_
,
sep
=
sep
)
print
(
*
args
,
end
=
''
,
file
=
file_
,
sep
=
sep
)
# TODO printing text that starts from newline
print
(
'
\033
[0m'
,
sep
=
sep
,
end
=
end
,
file
=
file_
)
else
:
print
(
*
args
,
**
kwargs
)
...
...
@@ -276,11 +276,11 @@ def random_text(length, alph=string.letters+string.digits):
return
''
.
join
(
random
.
choice
(
alph
)
for
_
in
range
(
length
))
def
http_request
(
method
,
url
,
**
kwargs
):
def
http_request
(
method
,
url
,
verify
=
False
,
**
kwargs
):
""" Wrapper for 'requests' silencing exceptions a little bit. """
try
:
return
getattr
(
requests
,
method
.
lower
())(
url
,
**
kwargs
)
return
getattr
(
requests
,
method
.
lower
())(
url
,
verify
,
**
kwargs
)
except
(
requests
.
exceptions
.
MissingSchema
,
requests
.
exceptions
.
InvalidSchema
):
print_error
(
"Invalid URL format: {}"
.
format
(
url
))
return
...
...
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