def start_dot11decrypt(self, interface, decryption_key): #starts and returns dot11decrypt subprocess and interface.
print "Starting new dot11decrypt subprocess on " + interface + " with key " + decryption_key
proc = subprocess32.Popen(['sudo', 'd11decrypt/build/dot11decrypt', interface, decryption_key], stdout=subprocess32.PIPE)
read = proc.stdout.readline()
if read[0:14] == "Using device: ":
print "Currently decrypting packets and releasing to " + read[14:].rstrip()
print "Process number is " + str(proc.pid)
return proc, read[14:].rstrip()
else:
print read
raise Exception
评论列表
文章目录