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