Here is the code I wrote:
import nmap
def menu():
print (30 * "-", "I hate the CIA", 30 * "-")
print ("1. Ping")
print ("2. ???")
print ("3. ???")
menu()
choice = input("Enter your choice [1 - 3]: ")
if choice==1:
input("Please choose your target: ")
t = nmap.PortScanner()
t.scan(hosts=input, arguments='-sP')
I know it's probably very messy and it's likely bad practice to write in "to-be functionalities" like I have done, but I'm pretty new to this and I'm willing to take it out if there is a better way. Perhaps the answer is clear to me, maybe not. Help is appreciated. Thanks all <3