File: wifi-jammer.patch

package info (click to toggle)
websploit 3.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,248 kB
  • ctags: 126
  • sloc: python: 231,477; ruby: 412; php: 20; makefile: 2
file content (35 lines) | stat: -rw-r--r-- 1,289 bytes parent folder | download | duplicates (2)
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
Description: Fix module_wifi_jammer
 Use the new monitoring interface (wlan0mon) 
Origin: http://www.hackingtutorials.org/metasploit-tutorials/websploit-wifi-jammer/
Bug-kali: https://bugs.kali.org/view.php?id=3100
Forwarded: not-needed
Last-Update: 20160303
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/modules/wifi_jammer.py
+++ b/modules/wifi_jammer.py
@@ -9,7 +9,7 @@ from core import wcolors
 from core import help
 from time import sleep
 
-options = ["wlan0", "", "", "mon0", "11"]
+options = ["wlan0", "", "", "wlan0mon", "11"]
 
 def wifi_jammer():
     try:
@@ -32,7 +32,7 @@ def wifi_jammer():
             print "ESSID => ", options[2]
             wifi_jammer()
         elif com[0:7] =='set mon':
-            options[3] = com[8:12]
+            options[3] = com[8:16]
             print "MON => ", options[3]
             wifi_jammer()
         elif com[0:11] =='set channel':
@@ -83,4 +83,4 @@ def wifi_jammer():
             print "Wrong Command => ", com
             wifi_jammer()
     except(KeyboardInterrupt):
-        print(wcolors.color.RED + "\n[*] (Ctrl + C ) Detected, Module Exit" + wcolors.color.ENDC)
\ No newline at end of file
+        print(wcolors.color.RED + "\n[*] (Ctrl + C ) Detected, Module Exit" + wcolors.color.ENDC)