Advertisement
Guest User

Untitled

a guest
Jan 30th, 2019
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 6.36 KB | None | 0 0
  1. import sys, os, time, getpass, subprocess    #importing modules
  2.  
  3. def quiting():   #i created a quit function, to add to all the different options
  4.     clearing()
  5.     print_slow("\nExiting Alpha-StepNet.....Goodbye\n" ) #applying the code to print slowly
  6.     exit=quit()
  7.  
  8. def clearing(): #I created this to keep the screen from constantly holding the data.
  9.     os.system("clear")
  10.  
  11. def print_slow(str): #kool trick i picked up, to make the letters print slowly.. like a movie
  12.     for letter in str:
  13.         sys.stdout.write(letter)
  14.         sys.stdout.flush()
  15.         time.sleep(.070)
  16.  
  17. #def host():    <--- I was trying some stuff lol.
  18. #    host = input("\nEnter Target Host/IP: \n")
  19.  
  20. password = getpass.getpass("Enter System Password: \n") #i'm going to be modifying this later.
  21. if password == ("root36"): #but this is how you would request a password in python, and also place asteric instead of the password being shown as it's typed.
  22.     print_slow("""
  23. Authentication Confirmed
  24. Initializing Alpha-StepNet System Check
  25. .......................................
  26. Starting Alpha-StepNet
  27.    """)
  28.     clearing()
  29.  
  30. else:
  31.     print_slow("Please Try Again.....GoodBye\n")
  32.     exit=quit()
  33.  
  34. def main():
  35.     print("""
  36. Welcome to Alpha-StepNet
  37. Please Select From The Following Menu:
  38.    """)
  39.  
  40.     main=True
  41.     while main:
  42.         print("Main Menu")
  43.         print("""
  44. 1.Communications
  45. 2.Passive/Non Passive Reconn
  46. 3.Predator Mode
  47. 0.Exit
  48.            """)
  49.  
  50.         opt=True
  51.         opt=input("Which Opt Would You Like to Load: ")
  52.  
  53.         if opt=="1":
  54.             opt1=True
  55.             while opt1:
  56.                 clearing()
  57.                 print("Communications Systems")
  58.                 print("""
  59. 1.Return
  60. 2.Weechat
  61. 3.SSh
  62. 0.Exit System
  63.                """)
  64.  
  65.                 opt1=input("Which Opt Would You Like To Load: ")
  66.                 if opt1=="1":
  67.                     clearing()
  68.                     break
  69.  
  70.                 elif opt1=="2":
  71.                     print(os.system("weechat") )
  72.  
  73.                 elif opt1=="3":
  74.                     sh = input("What's the Host/IP, You wish to connect to: ")
  75.                     usr = input("Please Enter The Username: ")
  76.                     print(os.system("ssh " + usr + "@" + sh) )
  77.  
  78.                 elif opt1=="0":
  79.                     quiting()
  80.  
  81.  
  82.         if opt=="2":
  83.             clearing()
  84.             host = input("Enter Target Host/IP: ")
  85.             opt2=True
  86.             while opt2:
  87.                 print("Target:", host, "has been selected" )
  88.                 print("""
  89.  
  90. 1.Return To Main Menu
  91. 2.Netstat
  92. 3.Nmap
  93. 4.Nslookup
  94. 5.Ping
  95. 6.Traceroute
  96. 7.Track New Host
  97. 0.Exit system
  98.  
  99. Extras:
  100.  
  101.  
  102. "This should go without saying, but any scan on a full subnet will take some time lol.
  103. We only added most commonly used subnets. "
  104.  
  105. "Also full scans are running decoy's, and smaller packets for Firewall/IDS evasions.
  106. That said be advised for more heavier, and controlled scanns recommended you run these on your own modifying your switches"
  107.  
  108. 10.Nmap Scan Class B Subnet
  109. 11.Nmap Scan Class C Subnet
  110.                """)
  111.  
  112.                 opt2=input("\nSelect Function You'd Like To Run: ")
  113.  
  114.                 if opt2=="1":
  115.                     clearing()
  116.                     break
  117.  
  118.                 elif opt2=="2":
  119.                     print(os.system("netstat -p " + host) )
  120.  
  121.                 elif opt2=="3":
  122.                     print(os.system("nmap -sT -PN --spoof-mac 0 -D RND:10 " + host) )
  123.  
  124.                 elif opt2=="4":
  125.                     print(os.system("nslookup " + host) )
  126.  
  127.                 elif opt2=="5":
  128.                     print(os.system("ping -c 1 " + host) )
  129.  
  130.                 elif opt2=="6":
  131.                     print(os.system("traceroute " + host) )
  132.  
  133.                 elif opt2=="7":
  134.                     host = input("Enter New Target Aquisition: ")
  135.  
  136.                 elif opt2=="0":
  137.                     quiting()
  138.  
  139.                 elif opt2=="10":
  140.                     print(os.system("nmap -sS -O -f -D RND:10 172.16.1.0/24") )
  141.  
  142.                 elif opt2=="11":
  143.                     print(os.system("nmap -sS -O -f -D RND:10 192.168.1.0/24") )
  144.  
  145.         if opt=="3":
  146.             opt3=True
  147.             clearing()
  148.             print("Predator Mode Selected")
  149.             print_slow("""
  150. Predator Mode Enabled...
  151. You've Now Reached PONR....
  152. From This Point Forth, You Are On Your Own....
  153. Good Luck. . .
  154.            """)
  155.             clearing()
  156.  
  157.             while opt3:
  158.                 print("Predator Mode")
  159.                 print("""
  160. 1.Return To Main Menu
  161. 2.AirMon
  162. 3.Airmon (Disable Monitor Mode)
  163. 4.AirCrack - SSID Tracking
  164. 5.AirCrack
  165. 6.MacChanger
  166. 10.Set Nic (If In Monitor Mode Already)
  167. 0.Exit
  168.                """)
  169.  
  170.                 opt3=input("Select Function You'd Like To Run: ")
  171.                 if opt3=="1":
  172.                     clearing()
  173.                     break
  174.  
  175.                 elif opt3=="2":
  176.                     print(os.system("ifconfig " ) )
  177.                     nic = input("\nWhich card, would you like to place, in monitor mode: ")
  178.                     print(os.system("ifconfig " + nic + " down") )
  179.                     print(os.system("ifconfig ") )
  180.                     print(os.system("airmon-ng start " + nic) )
  181.  
  182.                 elif opt3=="3":
  183.                     print(os.system("airmon-ng stop " + nic + "mon") )
  184.                     print(os.system("ifconfig " ) )
  185.  
  186.                 elif opt3=="4":
  187.                     airodump = subprocess.Popen(["airodump-ng", nic, "mon"],stdin=subprocess.PIPE,
  188.                                                 stdout=subprocess.PIPE,
  189.                                                 stderr=subprocess.PIPE)
  190.  
  191.                     s_scan, unused_stderr = airodump.communicate(timeout=15)
  192.                     airodump.kill()
  193.  
  194.                     print(s_scan)
  195.  
  196.  
  197.                 elif opt3=="6":
  198.                     clearing()
  199.                     print(os.system("ifconfig"))
  200.                     m_nic = input("Which Nic would you like to change the Mac address of?: ")
  201.                     print(os.system("macchanger -r " + m_nic))
  202.  
  203.                 elif opt3=="10":
  204.                     print(os.system("ifconfig"))
  205.                     nic = input("Which nic would you like to set:")
  206.  
  207.                 elif opt3=="0":
  208.                     quiting()
  209.  
  210.         if opt=="0":
  211.             opt0=True
  212.             quiting()
  213. main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement