Decoded Output
Download<?php
goto wyqwo;
Xavp2:
$database = "bd_warehouse";
goto jBkOl;
WKJDh:
$db->exec("use `{$database}`");
goto U1IJm;
XHWB_:
$port = 3306;
goto TJNoI;
GF4wn:
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
goto Cl628;
TJNoI:
$username = "user_warehouse_adm";
goto q0ik0;
wyqwo:
$host = "10.91.16.156";
goto XHWB_;
q0ik0:
$password = "2`}rJW`Mg")@";
goto Xavp2;
U1IJm:
function tableExists($dbh, $id)
{
$results = $dbh->query("SHOW TABLES LIKE '{$id}'");
if (!$results) {
return false;
}
if ($results->rowCount() > 0) {
return true;
}
return false;
}
goto x242N;
Cl628:
$db->exec("CREATE DATABASE IF NOT EXISTS `{$database}`");
goto WKJDh;
jBkOl:
$db = new PDO("mysql:host={$host};port={$port}", $username, $password);
goto GF4wn;
x242N:
$exists = tableExists($db, "ferias_times");
goto Bev3o;
Bev3o:
if (!$exists) {
} ?>
Did this file decode correctly?
How would you describe this file?
Thank you for your feedback! This will help us detect malicious PHP files more accurately in the future.
Function Calls
None
Variables
None
Stats
| MD5 | e438e902ebbaceac |
|---|---|
| Eval Count | 0 |
| Decode Time | 41 ms |
Original Code
<?php
goto wyqwo;
Xavp2:
$database = "\x62\x64\x5f\x77\141\162\145\x68\x6f\x75\x73\x65";
goto jBkOl;
WKJDh:
$db->exec("\x75\163\x65\x20\x60{$database}\140");
goto U1IJm;
XHWB_:
$port = 3306;
goto TJNoI;
GF4wn:
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
goto Cl628;
TJNoI:
$username = "\165\163\x65\162\137\167\141\162\145\150\x6f\x75\163\145\137\x61\x64\155";
goto q0ik0;
wyqwo:
$host = "\61\x30\56\71\61\x2e\61\x36\56\61\x35\66";
goto XHWB_;
q0ik0:
$password = "\62\x60\175\x72\112\x57\140\115\x67\42\51\x40";
goto Xavp2;
U1IJm:
function tableExists($dbh, $id)
{
$results = $dbh->query("\x53\110\x4f\x57\x20\124\101\102\114\x45\x53\40\114\x49\x4b\105\40\x27{$id}\x27");
if (!$results) {
return false;
}
if ($results->rowCount() > 0) {
return true;
}
return false;
}
goto x242N;
Cl628:
$db->exec("\x43\x52\105\x41\x54\x45\x20\x44\101\x54\101\102\x41\x53\x45\x20\x49\106\40\x4e\x4f\124\40\105\130\x49\x53\x54\x53\x20\140{$database}\140");
goto WKJDh;
jBkOl:
$db = new PDO("\x6d\x79\163\x71\154\x3a\150\157\x73\x74\x3d{$host}\x3b\160\x6f\162\x74\x3d{$port}", $username, $password);
goto GF4wn;
x242N:
$exists = tableExists($db, "\x66\145\x72\x69\x61\x73\137\164\151\x6d\x65\163");
goto Bev3o;
Bev3o:
if (!$exists) {
}