NMAP
4 years ago in Python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
os.system("apt-get install figlet -y")
os.system("apt-get install nc -y")
os.system("apt-get install nmap -y")
os.system("clear")
os.system("figlet NMAP")
print("""
Nmap Port Tarama Aracı
Starting Nmap 7.60 ( https://nmap.org )
1> Tek Servis
2> Tüm Servis
""")
secim = raw_input("Seçim > ")
if(secim=="1"):
ip = raw_input("Hedef IP > ")
port = raw_input("Hedef Port > ")
os.system("clear")
os.system("figlet NMAP")
print("")
os.system("nc " + ip + " " + port)
if(secim=="2"):
ip = raw_input("Hedef IP > ")
os.system("clear")
os.system("figlet NMAP")
print("")
os.system("nmap -sV --script=banner " + ip)