Advertisement
Guest User

Untitled

a guest
Mar 26th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. ssh.connect('127.0.0.1', username='jesse',
  2. password='lol')
  3. stdin, stdout, stderr = ssh.exec_command(
  4. "sudo dmesg")
  5. stdin.write('lol\n')
  6. stdin.flush()
  7. data = stdout.read.splitlines()
  8. for line in data:
  9. if line.split(':')[0] == 'AirPort':
  10. print line
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement