Skip to content

Commit

Permalink
feat: add http debug level command & fix some bug
Browse files Browse the repository at this point in the history
  • Loading branch information
wh0am1i authored and rungobier committed Dec 29, 2023
1 parent 2c580fc commit 5dbfa6b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pocsuite3/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__title__ = 'pocsuite3'
__version__ = '2.0.6'
__version__ = '2.0.7'
__author__ = 'Knownsec 404 Team'
__author_email__ = '[email protected]'
__license__ = 'GPLv2'
Expand Down
4 changes: 4 additions & 0 deletions pocsuite3/lib/core/option.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import importlib
from queue import Queue
from urllib.parse import urlsplit
from http.client import HTTPConnection

import docker.errors
import socks
Expand Down Expand Up @@ -56,6 +57,8 @@ def set_verbosity():
This function set the verbosity of pocsuite output messages.
"""

HTTPConnection.debuglevel = int(conf.http_debug)

if conf.verbose is None:
conf.verbose = 1

Expand Down Expand Up @@ -541,6 +544,7 @@ def _set_conf_attributes():
conf.retry = 0
conf.delay = 0
conf.http_headers = {}
conf.http_debug = 0
conf.ceye_token = None
conf.oob_server = None
conf.oob_token = None
Expand Down
1 change: 1 addition & 0 deletions pocsuite3/lib/core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@
"retry",
"delay",
"headers",
"http-debug",
"ceye-token",
"oob-server",
"oob-token",
Expand Down
1 change: 1 addition & 0 deletions pocsuite3/lib/parse/cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ def cmd_line_parser(argv=None):
request.add_argument("--retry", dest="retry", type=int, default=0, help="Time out retrials times (default 0)")
request.add_argument("--delay", dest="delay", help="Delay between two request of one thread")
request.add_argument("--headers", dest="headers", help="Extra headers (e.g. \"key1: value1\\nkey2: value2\")")
request.add_argument("--http-debug", dest="http_debug", type=int, default=0, help="HTTP debug level (default 0)")
# Account options
group = parser.add_argument_group("Account", "Account options")
group.add_argument("--ceye-token", dest="ceye_token", help="CEye token")
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def find_packages(where='.'):

setup(
name='pocsuite3',
version='2.0.6',
version='2.0.7',
url='https://pocsuite.org',
description='Open-sourced remote vulnerability testing framework.',
long_description=long_description,
Expand Down Expand Up @@ -57,6 +57,7 @@ def find_packages(where='.'):
"dacite",
"PyYAML",
"lxml",
"docker"
],
extras_require={
'complete': [
Expand Down

0 comments on commit 5dbfa6b

Please sign in to comment.