#!/usr/bin/env python# -*- coding: utf-8 -*-import osos.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 Servis2> 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)