MCPcopy Create free account
hub / github.com/Dizzy-K/AutoPT / bind_target

Method bind_target

workflow/state.py:42–52  ·  view source on GitHub ↗
(self, ip_addr: str, target: str)

Source from the content-addressed store, hash-verified

40 target: str = ""
41
42 def bind_target(self, ip_addr: str, target: str) -> None:
43 self.ip_addr = ip_addr
44 self.target = target
45 self.problem = self.problem_template.format(ip_addr=ip_addr, vul_target=target)
46 benchmark_context = self._benchmark_context()
47 if benchmark_context:
48 self.problem += (
49 "Known benchmark context:\n"
50 f"{benchmark_context}\n"
51 "Prefer this local benchmark context before fetching external pages.\n"
52 )
53
54 def append_information(self, information: str) -> None:
55 self.problem += f"Information: {information}\n"

Callers 3

build_task_requestFunction · 0.95
reset_runtimeMethod · 0.95
runMethod · 0.80

Calls 1

_benchmark_contextMethod · 0.95

Tested by

no test coverage detected