HEX
Server: Apache
System: Linux viper.innovativeinternet.net 4.18.0-553.80.1.lve.el8.x86_64 #1 SMP Wed Oct 22 19:29:36 UTC 2025 x86_64
User: thetradingroom (1095)
PHP: 8.3.25
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //ibin/chads
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "<html><head><title>TITLE HERE</titel></head>\n";
print "<body bgcolor=ffffff text=000000>\n";
$good = "http://to.good.gif"; $bad = "http://to.bad.gif";
    
open(IPS,"./ips.txt"); @ips = <IPS>; close(IPS);
foreach (@ips) {
  chomp; ($ip, $domain) = split(/\|/,$_);
  $status = &check($ip); print "$domain - $status<br>\n";
}
sub check {
  print "$_[0]"; $ok = '';
  open(PING,"ping -c 1 $_[0] |");
  @result = <PING>; close(PING);
  foreach (@result) { if($_ =~ /0\% packet loss/) { $ok = '1'; } }
  if($ok == 1) { return("<img $good>"); } else { return("<img $bad>"); }
}