Created
February 6, 2019 22:27
-
-
Save vildninja/39c57ed842ef79dd799c23c5e7dc3ddd to your computer and use it in GitHub Desktop.
Revisions
-
vildninja created this gist
Feb 6, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ macaddress=XX:XX:XX:XX:XX:XX mylocalip=$(ip addr show | egrep -o '[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/[0-9]+' | grep -v 127.0.0.1) echo scanning for $macaddress on $mylocalip piip=$(sudo nmap -p 22 $mylocalip | grep -B5 $macaddress | egrep -o '[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+') echo found pitv on $piip