Skip to content

Instantly share code, notes, and snippets.

@macostag
Created August 19, 2018 22:31
Show Gist options
  • Select an option

  • Save macostag/ab44b22fcd6e1bdfe349dee5feb057d3 to your computer and use it in GitHub Desktop.

Select an option

Save macostag/ab44b22fcd6e1bdfe349dee5feb057d3 to your computer and use it in GitHub Desktop.
IP reverse lookup bash script.
#!/bin/bash
rangeIp=""
for i in `seq 1 1 254`;
do
ip=$rangeIp.$i
#echo $ip
host $ip | grep "pointer";
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment