MCPcopy Create free account
hub / github.com/Geeoon/asploit / __init__

Method __init__

src/ExploitProcessor.py:24–114  ·  view source on GitHub ↗
(self, host: str, path: str, method: str, header: str)

Source from the content-addressed store, hash-verified

22 @throw CommandException if the connection fails.
23 """
24 def __init__(self, host: str, path: str, method: str, header: str):
25 super().__init__()
26 self.commands["--version"] = {
27 "method": self._Base__version,
28 "description": "Get the version of PHP running.",
29 "usage": "--version"
30 }
31
32 self.commands["pwd"] = {
33 "method": self._Base__pwd,
34 "description": "Print working directory.",
35 "usage": "pwd"
36 }
37
38 self.commands["ls"] = {
39 "method": self._Base__ls,
40 "description": "List files and directories.",
41 "usage": "ls"
42 }
43
44 self.commands["run"] = {
45 "method": self._Base__run,
46 "description": "Run a command on the target machine.",
47 "usage": ("run command\n"
48 " command: the command to be run on the machine. "
49 "Do not surround in quotes.")
50 }
51
52 self.commands["lrun"] = {
53 "method": self._Base__lrun,
54 "description": "Run a command on the local machine.",
55 "usage": ("lrun command\n"
56 " command: the command to be run on the machine. "
57 "Do not surround in quotes.")
58 }
59
60 self.commands["cd"] = {
61 "method": self._Base__cd,
62 "description": "Change directory.",
63 "usage": ("cd directory\n"
64 " directory: the directory to change to.")
65 }
66
67 self.commands["cat"] = {
68 "method": self._Base__cat,
69 "description": "Print contents of a file.",
70 "usage": ("cat file\n"
71 " file: the file to print the contents of.")
72 }
73
74 self.commands["download"] = {
75 "method": self._Base__download,
76 "description": ("Download a file to your local machine. "
77 "Stored in a folder called 'downloads'."),
78 "usage": ("download file\n"
79 " file: path of the file to be downloaded.")
80 }
81

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected