MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / _get_ssid

Method _get_ssid

display.py:2178–2190  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2176
2177 # Show recent scan targets
2178 targets = data.get('targets', [])
2179 if targets:
2180 y += int(2 * sy)
2181 draw.line((int(4 * sx), y, w - int(4 * sx), y), fill=0)
2182 y += int(4 * sy)
2183 draw.text((pad_x, y), "Recent targets:", font=font, fill=0)
2184 y += row_h
2185 max_rows = (h - int(18 * sy) - y) // row_h
2186 for ip in targets[:max_rows]:
2187 draw.text((int(10 * sx), y), ip, font=font, fill=0)
2188 y += row_h
2189 else:
2190 stats = [
2191 ("Vulns found", str(getattr(sd, 'vulnnbr', 0))),
2192 ("Attacks avail", str(getattr(sd, 'attacksnbr', 0))),
2193 ("Hosts scanned", str(getattr(sd, 'targetnbr', 0))),

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected