==== IP Scanner ====
There's a simple auto-scanner at [[https://cyli.org/|cyli.org]] that you can use to see your IP address and run a fast nmap(([[https://nmap.org/|nmap homepage]])) scan against your routable IP address.
There are three files that make up the scanner, the first, in the root directory of the web server is index.php. It shows your routable IP address and displays a button to run nmap against that address. ;
Steve Jones' Web Stuff
" ;
echo " $Addr
" ;
$Command = '/usr/bin/geoiplookup "'.$Addr.'" | grep "City Edition"';
$ShellOut = shell_exec($Command);
echo trim($ShellOut); ?>
This product includes GeoLite2 data created by MaxMind, available from
https://www.maxmind.com.
Subnet Cheat Sheet
Reserved IP Addresses (Wikipedia)
That button calls a second page at ip/scan.php;
Scanning...
If you are not redirected automatically, follow the link to LastScan.
The page above initiates the scan, and then redirects the browser to the file containing the results of the scan. The scanner is;
#!/bin/bash
Date=$(date +"%Y-%m-%d-%H-%M-%S")
Addr="${1}"
Dir="/var/www/html/ip"
rm "${Dir}/LastScan.html"
/usr/bin/nmap -FoX - "${Addr}" \
| /usr/bin/xsltproc --output ${Dir}/LastScan-${Date}.html -
ln -s ${Dir}/LastScan-${Date}.html ${Dir}/LastScan.html
An example of the output is [[https://cyli.org/Scan-2023-11-10-03-19-28.html|LastScan-2023-11-10-03-19-28.html]], this is from one of the many crawlers that wander about the Internet...