(self, ip_addr: str, target: str)
| 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" |
no test coverage detected