Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php goto PrBJ5; PrBJ5: $dsn = "\x66\151\x72\145\x62\x69\x72\x64\x3a\x64\142\x6e\141\155..
Decoded Output download
<?php
goto PrBJ5; PrBJ5: $dsn = "firebird:dbname=srv-pt-c2k2:E:\Daten\TAZ\TAZ-DB-ALC01.fdb;charset=utf8;"; goto h95z2; oXR98: $password = "pmsilva"; goto jGvqX; h95z2: $username = "PMSILVA"; goto oXR98; jGvqX:
date_default_timezone_set("Europe/Lisbon");
$funcao=$_GET['funcao'];
// echo $funcao;
try {
$db = new \PDO($dsn, $username, $password);
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$result = $db->prepare($funcao);
$result->execute();
//print_r($result);
$lido=array();
for($i=0; $row = $result->fetch(PDO::FETCH_ASSOC); $i++){
// print_r($row);
$lido[$i]=$row;
}
} catch (PDOException $e) {
echo "Ocorreu um erro " .$e()->getMessage();
}
//print_r($lido);
$envia=json_encode($lido,JSON_PARTIAL_OUTPUT_ON_ERROR);
echo $envia;
?>
Did this file decode correctly?
Original Code
<?php
goto PrBJ5; PrBJ5: $dsn = "\x66\151\x72\145\x62\x69\x72\x64\x3a\x64\142\x6e\141\155\145\75\x73\x72\x76\55\x70\x74\x2d\143\x32\153\x32\72\105\72\x5c\x44\x61\x74\145\156\134\124\x41\132\x5c\x54\101\x5a\55\104\x42\55\x41\x4c\103\x30\61\56\146\x64\x62\x3b\x63\x68\141\x72\x73\x65\164\x3d\165\164\x66\x38\x3b"; goto h95z2; oXR98: $password = "\160\155\x73\x69\154\166\141"; goto jGvqX; h95z2: $username = "\x50\115\x53\x49\114\126\x41"; goto oXR98; jGvqX:
date_default_timezone_set("Europe/Lisbon");
$funcao=$_GET['funcao'];
// echo $funcao;
try {
$db = new \PDO($dsn, $username, $password);
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$result = $db->prepare($funcao);
$result->execute();
//print_r($result);
$lido=array();
for($i=0; $row = $result->fetch(PDO::FETCH_ASSOC); $i++){
// print_r($row);
$lido[$i]=$row;
}
} catch (PDOException $e) {
echo "Ocorreu um erro " .$e()->getMessage();
}
//print_r($lido);
$envia=json_encode($lido,JSON_PARTIAL_OUTPUT_ON_ERROR);
echo $envia;
?>
Function Calls
None |
Stats
MD5 | 4fb469945050a226edeec284e2f8750b |
Eval Count | 0 |
Decode Time | 39 ms |