INNER CODE UNIT · Python
__init__
HaxL0p4/L0p4Map · ui/app.py:238
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",
"--script", "vulners",
"--open", "-Pn", "-T4",
"-oX", tmp_path,
self.target
]