Skip to content

Commit

Permalink
Fixed set frequency issue
Browse files Browse the repository at this point in the history
  • Loading branch information
chrizator authored Jun 9, 2017
1 parent 822eeed commit 469b45c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions netattack2.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def packet_handler(pkt):

def channelhop(iface):
channel = 1
while channel < 15:
while channel < 14:
if do_channelhop:
try:
os.system('iwconfig {0} channel {1}'.format(iface, channel))
Expand All @@ -266,7 +266,7 @@ def channelhop(iface):
sys.exit(1)

sleep(0.1)
if channel >= 14:
if channel >= 13:
channel = 1
continue
channel += 1
Expand Down

0 comments on commit 469b45c

Please sign in to comment.