MCPcopy Index your code
hub / github.com/USArmyResearchLab/Dshell / __init__

Method __init__

dshell/plugins/http/web.py:11–22  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

9
10class DshellPlugin(HTTPPlugin):
11 def __init__(self):
12 super().__init__(
13 name="web",
14 author="bg,twp",
15 description="Displays basic information for web requests/responses in a connection",
16 bpf="tcp and (port 80 or port 8080 or port 8000)",
17 output=AlertOutput(label=__name__),
18 optiondict={
19 "md5": {"action": "store_true",
20 "help": "Calculate MD5 for each response."}
21 },
22 )
23
24 def http_handler(self, conn, request, response):
25

Callers

nothing calls this directly

Calls 1

AlertOutputClass · 0.90

Tested by

no test coverage detected