Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys, os, time, getpass, subprocess #importing modules
- def quiting(): #i created a quit function, to add to all the different options
- clearing()
- print_slow("\nExiting Alpha-StepNet.....Goodbye\n" ) #applying the code to print slowly
- exit=quit()
- def clearing(): #I created this to keep the screen from constantly holding the data.
- os.system("clear")
- def print_slow(str): #kool trick i picked up, to make the letters print slowly.. like a movie
- for letter in str:
- sys.stdout.write(letter)
- sys.stdout.flush()
- time.sleep(.070)
- #def host(): <--- I was trying some stuff lol.
- # host = input("\nEnter Target Host/IP: \n")
- password = getpass.getpass("Enter System Password: \n") #i'm going to be modifying this later.
- 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.
- print_slow("""
- Authentication Confirmed
- Initializing Alpha-StepNet System Check
- .......................................
- Starting Alpha-StepNet
- """)
- clearing()
- else:
- print_slow("Please Try Again.....GoodBye\n")
- exit=quit()
- def main():
- print("""
- Welcome to Alpha-StepNet
- Please Select From The Following Menu:
- """)
- main=True
- while main:
- print("Main Menu")
- print("""
- 1.Communications
- 2.Passive/Non Passive Reconn
- 3.Predator Mode
- 0.Exit
- """)
- opt=True
- opt=input("Which Opt Would You Like to Load: ")
- if opt=="1":
- opt1=True
- while opt1:
- clearing()
- print("Communications Systems")
- print("""
- 1.Return
- 2.Weechat
- 3.SSh
- 0.Exit System
- """)
- opt1=input("Which Opt Would You Like To Load: ")
- if opt1=="1":
- clearing()
- break
- elif opt1=="2":
- print(os.system("weechat") )
- elif opt1=="3":
- sh = input("What's the Host/IP, You wish to connect to: ")
- usr = input("Please Enter The Username: ")
- print(os.system("ssh " + usr + "@" + sh) )
- elif opt1=="0":
- quiting()
- if opt=="2":
- clearing()
- host = input("Enter Target Host/IP: ")
- opt2=True
- while opt2:
- print("Target:", host, "has been selected" )
- print("""
- 1.Return To Main Menu
- 2.Netstat
- 3.Nmap
- 4.Nslookup
- 5.Ping
- 6.Traceroute
- 7.Track New Host
- 0.Exit system
- Extras:
- "This should go without saying, but any scan on a full subnet will take some time lol.
- We only added most commonly used subnets. "
- "Also full scans are running decoy's, and smaller packets for Firewall/IDS evasions.
- That said be advised for more heavier, and controlled scanns recommended you run these on your own modifying your switches"
- 10.Nmap Scan Class B Subnet
- 11.Nmap Scan Class C Subnet
- """)
- opt2=input("\nSelect Function You'd Like To Run: ")
- if opt2=="1":
- clearing()
- break
- elif opt2=="2":
- print(os.system("netstat -p " + host) )
- elif opt2=="3":
- print(os.system("nmap -sT -PN --spoof-mac 0 -D RND:10 " + host) )
- elif opt2=="4":
- print(os.system("nslookup " + host) )
- elif opt2=="5":
- print(os.system("ping -c 1 " + host) )
- elif opt2=="6":
- print(os.system("traceroute " + host) )
- elif opt2=="7":
- host = input("Enter New Target Aquisition: ")
- elif opt2=="0":
- quiting()
- elif opt2=="10":
- print(os.system("nmap -sS -O -f -D RND:10 172.16.1.0/24") )
- elif opt2=="11":
- print(os.system("nmap -sS -O -f -D RND:10 192.168.1.0/24") )
- if opt=="3":
- opt3=True
- clearing()
- print("Predator Mode Selected")
- print_slow("""
- Predator Mode Enabled...
- You've Now Reached PONR....
- From This Point Forth, You Are On Your Own....
- Good Luck. . .
- """)
- clearing()
- while opt3:
- print("Predator Mode")
- print("""
- 1.Return To Main Menu
- 2.AirMon
- 3.Airmon (Disable Monitor Mode)
- 4.AirCrack - SSID Tracking
- 5.AirCrack
- 6.MacChanger
- 10.Set Nic (If In Monitor Mode Already)
- 0.Exit
- """)
- opt3=input("Select Function You'd Like To Run: ")
- if opt3=="1":
- clearing()
- break
- elif opt3=="2":
- print(os.system("ifconfig " ) )
- nic = input("\nWhich card, would you like to place, in monitor mode: ")
- print(os.system("ifconfig " + nic + " down") )
- print(os.system("ifconfig ") )
- print(os.system("airmon-ng start " + nic) )
- elif opt3=="3":
- print(os.system("airmon-ng stop " + nic + "mon") )
- print(os.system("ifconfig " ) )
- elif opt3=="4":
- airodump = subprocess.Popen(["airodump-ng", nic, "mon"],stdin=subprocess.PIPE,
- stdout=subprocess.PIPE,
- stderr=subprocess.PIPE)
- s_scan, unused_stderr = airodump.communicate(timeout=15)
- airodump.kill()
- print(s_scan)
- elif opt3=="6":
- clearing()
- print(os.system("ifconfig"))
- m_nic = input("Which Nic would you like to change the Mac address of?: ")
- print(os.system("macchanger -r " + m_nic))
- elif opt3=="10":
- print(os.system("ifconfig"))
- nic = input("Which nic would you like to set:")
- elif opt3=="0":
- quiting()
- if opt=="0":
- opt0=True
- quiting()
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement