Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python3
- # encoding: utf-8
- import sys
- import subprocess
- from time import sleep
- try:
- global myOutput
- address = ['90:06:28:ca:bf:d3']
- while True:
- myOutput = subprocess.check_output('sudo arp-scan -l', shell=True).decode('utf-8')
- print(myOutput)
- print()
- if address[0] in myOutput:
- print("Hurray!!! " + address[0] + " found!")
- else:
- print("Opps! " + address[0] + " not found :(")
- sleep(5)
- except:
- print("Error: ", sys.exc_info()[0])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement