I'm working on following script to automate enumeration phase.
I use subprocess to run nmap like this:
subprocess.run(["nmap", "192.168.1.1"])
I want to achive possibility to kill this subprocess and execute rest of code, but when i pick ctrl + c whole script run down.
subprocess.run(["nmap", "192.168.1.1"])- i don't want to wait for result of that command just skip to next