Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
packages
tools
vjyscan
Commits
c4379f63
Commit
c4379f63
authored
Sep 28, 2021
by
Nong Hoang Tu
Browse files
Add user-agent and proxy handle for session
parent
c1fd13a4
Changes
1
Show whitespace changes
Inline
Side-by-side
vjyscan/cores/http_session.py
View file @
c4379f63
...
...
@@ -3,7 +3,7 @@ from vjyscan.cli.prints import *
class
VJScan
:
def
__init__
(
self
,
verbose
=
Fal
se
):
def
__init__
(
self
,
ua
,
proxy
,
verbo
se
):
self
.
print_vulnerable
=
print_vulnerable
self
.
print_found
=
print_found
if
verbose
:
...
...
@@ -15,4 +15,6 @@ class VJScan:
self
.
print_not_vulnerable
=
dummy
self
.
print_not_found
=
dummy
self
.
http_client
=
requests
.
Session
()
# TODO add proxy, cookie, agent handler
self
.
http_client
.
headers
.
update
(
ua
)
if
proxy
:
self
.
http_client
.
proxies
.
update
(
proxy
)
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