diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 3e6e191a..b8518b7f 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -61,4 +61,5 @@ HomerQing * contributing to fix ipv6 compatibility issue in build_url Xxcdd -* Add support for requests session reuse \ No newline at end of file +* Add support for requests session reuse +* Add support for web hook \ No newline at end of file diff --git a/pocsuite3/lib/core/settings.py b/pocsuite3/lib/core/settings.py index ccd3c25b..cec7b82e 100644 --- a/pocsuite3/lib/core/settings.py +++ b/pocsuite3/lib/core/settings.py @@ -191,8 +191,8 @@ "connect_back_host", "connect_back_port", - "requests-session-reuse", - "requests-session-reuse-num", + "session-reuse", + "session-reuse-num", # web hook "dingtalk-token", diff --git a/pocsuite3/lib/parse/cmd.py b/pocsuite3/lib/parse/cmd.py index 5297a37e..dd22a9d4 100644 --- a/pocsuite3/lib/parse/cmd.py +++ b/pocsuite3/lib/parse/cmd.py @@ -73,9 +73,9 @@ def cmd_line_parser(argv=None): 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)") - request.add_argument("--requests-session-reuse", dest="requests_session_reuse", action="store_true", + request.add_argument("--session-reuse", dest="requests_session_reuse", action="store_true", help="Enable requests session reuse") - request.add_argument("--requests-session-reuse-num", type=int, dest="requests_session_reuse_num", default=10, + request.add_argument("--session-reuse-num", type=int, dest="requests_session_reuse_num", default=10, help="Requests session reuse number") # Account options