Advertisement
Guest User

Untitled

a guest
Nov 21st, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. class change_channel(Thread):
  2. def __init__(self, inter):
  3. self.inter = inter
  4. self.channel = channels = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
  5. Thread.__init__(self)
  6.  
  7. def run(self):
  8. while True:
  9. for channel in self.channels:
  10. try:
  11. ret = call(['iwconfig', self.inter, 'channel', str(channel)])
  12. except:
  13. pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement