MCPcopy
hub / github.com/epinna/tplmap / rendered_detected

Method rendered_detected

core/plugin.py:70–97  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

68 pass
69
70 def rendered_detected(self):
71
72 action_evaluate = self.actions.get('evaluate', {})
73 test_os_code = action_evaluate.get('test_os')
74 test_os_code_expected = action_evaluate.get('test_os_expected')
75
76 if test_os_code and test_os_code_expected:
77
78 os = self.evaluate(test_os_code)
79
80 if os and re.search(test_os_code_expected, os):
81 self.set('os', os)
82 self.set('evaluate', self.language)
83 self.set('write', True)
84 self.set('read', True)
85
86 action_execute = self.actions.get('execute', {})
87 test_cmd_code = action_execute.get('test_cmd')
88 test_cmd_code_expected = action_execute.get('test_cmd_expected')
89
90 if (
91 test_cmd_code and
92 test_cmd_code_expected and
93 test_cmd_code_expected == self.execute(test_cmd_code)
94 ):
95 self.set('execute', True)
96 self.set('bind_shell', True)
97 self.set('reverse_shell', True)
98
99 def blind_detected(self):
100

Callers 1

detectMethod · 0.95

Calls 4

evaluateMethod · 0.95
setMethod · 0.95
executeMethod · 0.95
getMethod · 0.80

Tested by

no test coverage detected