INNER CODE UNIT · Python
AttackSurfaceWorker
HaxL0p4/L0p4Map · ui/app.py:233
class AttackSurfaceWorker(QThread):
finished = pyqtSignal(dict)
status_update = pyqtSignal(str)
port_found = pyqtSignal(dict)
def __init__(self, target: str):
super().__init__()
self.target = target
def run(self):
import tempfile, xml.etree.ElementTree as ET
tmp = tempfile.NamedTemporaryFile(suffix=".xml", delete=False)
tmp_path = tmp.name
tmp.close()
cmd = [
"nmap", "-sV", "-O",