The Attic Network
Bringing random useful crap to the internet since 2007
The Attic Network Logo
Home Blog

PHP Looking Glass

A need came about for a page that could execute commands to reterieve details for: host, ping, traceroute, WHOIS and GeoIP data from one page.

We have written a PHP script to do just that. It is designed to run specifically on Linux and you will encounter errors on Windows, it can be tweaked to run on Windows.

Requirements:

For this to run properly you will need:

Linux based web server with PHP
GeoIP PHP module for GeoIP lookups
Firewall allowing the following ports outbound: 53 (DNS lookups), 43 (WHOIS), ICMP (Ping & tracert)

You will also need the relevant system commands installed (most likely installed by default on your Linux OS):
host, ping, traceroute, whois and grep

It is all contained within 1 PHP page, but can be seperated out with little tweaking. We are releasing this as open source and you can tweak it and modify it anyway you want to fit it into your sites theme.

Sample:

To see it in action, head on over to lg.theatticnetwork.net

Download:

To get the script, click here!

Archived versions:
1.2A
1.1A