Skip to content

Commit

Permalink
Merge pull request derv82#58 from mathiasvr/patch-1
Browse files Browse the repository at this point in the history
Fix targeted deauthentication
  • Loading branch information
derv82 authored Mar 25, 2018
2 parents 918a499 + 61d206d commit 549447f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wifite.py
Original file line number Diff line number Diff line change
Expand Up @@ -2231,7 +2231,7 @@ def wpa_get_handshake(self):
# Send deauth packets via aireplay-ng
cmd = ['aireplay-ng',
'--ignore-negative-one',
'-0', # Attack method (Deauthentication)
'--deauth',
str(self.RUN_CONFIG.WPA_DEAUTH_COUNT), # Number of packets to send
'-a', self.target.bssid]

Expand All @@ -2247,7 +2247,7 @@ def wpa_get_handshake(self):
(GR + sec_to_hms(self.RUN_CONFIG.WPA_ATTACK_TIMEOUT - seconds_running) + W, \
G + str(self.RUN_CONFIG.WPA_DEAUTH_COUNT) + W, \
G + target_clients[client_index].bssid + W),
cmd.append('-h')
cmd.append('-c')
cmd.append(target_clients[client_index].bssid)
cmd.append(self.iface)
stdout.flush()
Expand Down Expand Up @@ -3214,7 +3214,7 @@ def wep_send_deauths(self, iface, target, clients):
'--ignore-negative-one',
'--deauth', str(self.RUN_CONFIG.WPA_DEAUTH_COUNT),
'-a', target.bssid,
'-h', client.bssid,
'-c', client.bssid,
iface]
call(cmd, stdout=DN, stderr=DN)

Expand Down

0 comments on commit 549447f

Please sign in to comment.