#!/usr/bin/env python.
import os.
os.system("apt-get install figlet")
os.system("clear")
os.system('figlet PORT TARAMA BY LORAX')
print("""
Port Tarama Tooluna Hosgeldin.
1) Hizli tarama.
2) Servis Ve Version Bilgisi.
3) Isletim Sistemi Bilgisi.
""")
islemno= raw_input('Islem Numarasini Girin: ')
if (islemno=="1"):
hedefip = raw_input('Hedef Ip Giriniz:')
os.system('nmap' + hedefip)
elif(islemno==2):
hedefip = raw_input('Hedef Ip Girin:')
os.system('nmap -sS -sV' + hedefip)
if(islemno=="3"):
hedefip = raw_input('Hedef Ip Girin')
os.system('nmap -0'+ hedefip)
else:
print("Hatali Secim Yaptin")