$rdir = '/data/whatever/www/p0f'; $udir = 'p0f/'; $router = $_GET['router']; if (preg_match('/^satchel$/i',$router)) { $routern = 'Satchel'; } elseif (preg_match('/^monty$/i',$router)) { $routern = 'Monty'; } elseif (preg_match('/^fw$/i',$router)) { $routern = '?¿'; } else { $router = 'total'; $routern = 'Monty, Satchel & ?¿'; } ?>
print "Last run at ";
include("$rdir/stamp");
if ($dot && $dnt) {
print "
Calculated on data from $dot to $dnt";
}
print "
\n";
foreach($files as $fn) {
$fd = preg_replace_callback('/=([0-9A-Z][0-9A-Z])/',hexchr,$fn);
$fd = preg_replace('/\.png$/',"",$fd,1);
$fd = preg_replace('/^[a-zA-Z0-9]+_-_/','',$fd,1);
$fd = preg_replace('/^dist$/','Distance',$fd,1);
$fd = preg_replace('/^link$/','Link Type',$fd,1);
$fd = preg_replace('/^os$/','System/Vendor',$fd,1);
print "[$fd]\n";
}
print "[Systems/Versions]\n";
print "
\n";
foreach($vfiles as $fn) {
$fd = preg_replace_callback('/=([0-9A-Z][0-9A-Z])/',hexchr,$fn);
$fd = preg_replace('/\.png$/',"",$fd,1);
$fd = preg_replace('/^[a-zA-Z0-9]+_-_/','',$fd,1);
$fd = preg_replace('/^osver_-_[0-9A-Z]+_-_/','',$fd,1);
print "[$fd]\n";
}
print "
\n"; $of=0; foreach($files as $fn) { if ($of) { print "
This stuff was created with a couple of perl scripts and p0f 2.