Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
goto nfDA2; xpT2I: error_reporting(error_reporting() & ~E_NOTICE); goto g5HTu; nfDA2: dat..
Decoded Output download
<? goto nfDA2; xpT2I: error_reporting(error_reporting() & ~E_NOTICE); goto g5HTu; nfDA2: date_default_timezone_set("Europe/Bucharest"); goto meSY0; GX1sZ: if (defined("STDIN")) { $class = $argv[1]; } else { $class = $_REQUEST["Class"]; } goto QZgnU; QZgnU: main($class); goto kY6aK; meSY0: ini_set("display_errors", "on"); goto xpT2I; kY6aK: function main($class) { $obj = new MSSQL(); $conn = $obj->dbConnect(); CheckConnect($conn); $main_sql = "SELECT * FROM gen_switch a JOIN switch_details b ON a.class = b.row_class WHERE a.class ='" . $class . "' ORDER BY b.exec_order ASC"; $stmt = $obj->selectSQLready($main_sql); $row_count = sqlsrv_num_rows($stmt); if ($row_count === false) { throw new Exception("Exit."); } $Result = array(); $i = 0; while ($row = sqlsrv_fetch_array($stmt, SQLSRV_FETCH_ASSOC)) { $Result[$i]["Ordine"] = $row["exec_order"]; $Result[$i]["Clasa"] = $row["row_class"]; $Result[$i]["DB_Sursa"] = $row["dbname_s"]; $Result[$i]["dbS_StringCon"] = $row["dbS_connString"]; $Result[$i]["Campuri_Sursa"] = $row["source_row_fields"]; $Result[$i]["Tabela_Sursa"] = $row["source_row_table"]; $Result[$i]["DB_Destinatie"] = $row["dbname_d"]; $Result[$i]["dbD_StringCon"] = $row["dbD_connString"]; $Result[$i]["Campuri_Destinatie"] = $row["dest_row_fields"]; $Result[$i]["Tabela_Destinatie"] = $row["dest_row_table"]; $Result[$i]["Truncate"] = $row["TBI"]; $Result[$i]["row_sql"] = $row["row_sql"]; $Result[$i]["row_where"] = $row["row_where"]; $Result[$i]["row_join"] = $row["row_join"]; $Result[$i]["row_function"] = $row["row_function"]; $Result[$i]["WorksheetNo"] = $row["IF_ExcelWorksheet"]; $Result[$i]["MvFileAfterImp"] = $row["MvFileAfterImp"]; $Result[$i]["RemHeader"] = $row["Rem_File_Header"]; $Result[$i]["Descr"] = $row["descr"]; $Result[$i]["MRec"] = $row["mail_recipients"]; $Result[$i]["OrderBy"] = $row["OrderBy"]; $i = $i + 1; } for ($r = 0; $r < $i; $r++) { if ($Result[$r]["DB_Sursa"] == "ImportCSV") { LogText("Import din CSV. Executie clasa: " . $Result[$r]["Clasa"]); execImportCSV($Result[$r]); } if ($Result[$r]["DB_Sursa"] == "ExportCSV") { LogText("Export in CSV. Executie clasa: " . $Result[$r]["Clasa"]); execExportCSV($Result[$r]); } if ($Result[$r]["DB_Sursa"] == "Excel") { LogText("Import din Excel. Executie clasa: " . $Result[$r]["Clasa"]); execExcel($Result[$r]); } if ($Result[$r]["DB_Sursa"] == "Excel_Brut") { LogText("Import din Excel. Executie clasa: " . $Result[$r]["Clasa"]); execExcelBrut($Result[$r]); } if ($Result[$r]["DB_Sursa"] == "Excel_Export") { LogText("Export in excel. Executie clasa: " . $Result[$r]["Clasa"]); execExportToExcel($Result[$r]); } if ($Result[$r]["DB_Sursa"] == "custom_PDF_Export") { LogText("Export in PDF. Executie clasa: " . $Result[$r]["Clasa"]); execPDF_Template($Result[$r]); } if ($Result[$r]["DB_Sursa"] != "Excel_Export" and $Result[$r]["DB_Sursa"] != "Excel" and $Result[$r]["DB_Sursa"] != "Excel_Brut" and $Result[$r]["DB_Sursa"] != "ImportCSV" and $Result[$r]["DB_Sursa"] != "ExportCSV" and $Result[$r]["DB_Sursa"] != "custom_PDF_Export") { LogText("Executie Query. Executie clasa: " . $Result[$r]["Clasa"]); execQuery($Result[$r]); } } $main_sql = NULL; $stmt = NULL; $conn = $obj->dbDisconnect(); $obj = NULL; } goto y9U0x; nKJnC: include_once __DIR__ . "/main_class.php"; goto GX1sZ; g5HTu: include_once __DIR__ . "/config/Db_config.php"; goto nKJnC; y9U0x: ?>
Did this file decode correctly?
Original Code
goto nfDA2; xpT2I: error_reporting(error_reporting() & ~E_NOTICE); goto g5HTu; nfDA2: date_default_timezone_set("\105\x75\x72\157\160\x65\57\x42\165\143\150\141\x72\145\163\164"); goto meSY0; GX1sZ: if (defined("\x53\124\x44\111\116")) { $class = $argv[1]; } else { $class = $_REQUEST["\x43\154\x61\163\163"]; } goto QZgnU; QZgnU: main($class); goto kY6aK; meSY0: ini_set("\x64\151\163\x70\154\141\171\x5f\x65\162\x72\x6f\x72\x73", "\157\156"); goto xpT2I; kY6aK: function main($class) { $obj = new MSSQL(); $conn = $obj->dbConnect(); CheckConnect($conn); $main_sql = "\x53\x45\114\105\103\124\40\52\40\106\122\x4f\115\x20\x67\145\156\137\163\x77\151\x74\143\x68\x20\141\40\x4a\117\x49\x4e\x20\x73\x77\151\164\143\x68\x5f\144\145\x74\x61\x69\154\x73\x20\x62\40\117\x4e\x20\x61\x2e\x63\154\x61\x73\163\40\x3d\x20\x62\56\162\157\x77\137\143\x6c\x61\163\x73\x20\x57\110\x45\122\105\x20\x61\56\143\x6c\x61\163\163\x20\75\x27" . $class . "\x27\x20\x4f\x52\104\x45\x52\x20\102\x59\40\x62\x2e\145\x78\x65\x63\137\x6f\x72\144\145\x72\40\101\x53\x43"; $stmt = $obj->selectSQLready($main_sql); $row_count = sqlsrv_num_rows($stmt); if ($row_count === false) { throw new Exception("\x45\170\x69\164\x2e"); } $Result = array(); $i = 0; while ($row = sqlsrv_fetch_array($stmt, SQLSRV_FETCH_ASSOC)) { $Result[$i]["\x4f\162\x64\x69\156\145"] = $row["\145\170\x65\x63\x5f\157\162\x64\x65\x72"]; $Result[$i]["\x43\x6c\141\x73\x61"] = $row["\162\x6f\x77\137\143\154\x61\x73\163"]; $Result[$i]["\104\x42\x5f\x53\x75\x72\163\141"] = $row["\144\142\x6e\141\x6d\145\137\x73"]; $Result[$i]["\144\x62\123\137\x53\x74\x72\151\x6e\x67\x43\157\x6e"] = $row["\x64\x62\x53\137\x63\157\x6e\x6e\x53\164\x72\151\x6e\147"]; $Result[$i]["\103\141\x6d\x70\165\x72\x69\137\x53\165\x72\x73\x61"] = $row["\x73\x6f\x75\x72\x63\x65\x5f\162\x6f\167\x5f\x66\151\x65\154\144\x73"]; $Result[$i]["\124\141\142\145\154\141\x5f\123\x75\x72\x73\141"] = $row["\x73\157\x75\162\x63\145\x5f\x72\x6f\167\137\164\x61\x62\x6c\145"]; $Result[$i]["\x44\102\x5f\104\x65\163\x74\x69\156\141\x74\151\x65"] = $row["\x64\142\x6e\141\155\x65\137\x64"]; $Result[$i]["\144\x62\x44\x5f\123\x74\162\x69\156\147\x43\x6f\x6e"] = $row["\144\142\104\137\143\x6f\156\x6e\x53\164\162\x69\x6e\x67"]; $Result[$i]["\x43\x61\155\x70\x75\162\x69\137\104\x65\163\x74\151\156\x61\164\151\x65"] = $row["\x64\145\x73\164\x5f\162\157\167\137\146\x69\145\154\x64\x73"]; $Result[$i]["\x54\141\x62\145\154\x61\x5f\x44\145\x73\x74\x69\156\141\164\151\145"] = $row["\x64\145\163\164\137\x72\157\x77\x5f\x74\141\142\154\145"]; $Result[$i]["\124\x72\165\x6e\143\x61\164\145"] = $row["\124\102\x49"]; $Result[$i]["\162\x6f\167\x5f\163\161\154"] = $row["\x72\157\167\137\163\161\154"]; $Result[$i]["\x72\157\x77\137\x77\x68\145\162\x65"] = $row["\x72\157\x77\x5f\x77\x68\x65\x72\x65"]; $Result[$i]["\x72\157\167\137\152\x6f\x69\156"] = $row["\x72\x6f\167\137\x6a\157\151\x6e"]; $Result[$i]["\162\157\x77\x5f\x66\x75\x6e\143\164\151\x6f\x6e"] = $row["\162\x6f\x77\137\x66\165\156\x63\x74\151\x6f\156"]; $Result[$i]["\x57\157\162\x6b\163\150\x65\145\x74\116\x6f"] = $row["\111\x46\x5f\105\x78\143\145\154\x57\x6f\162\153\163\x68\x65\x65\x74"]; $Result[$i]["\115\166\106\151\x6c\145\101\x66\x74\145\162\x49\155\x70"] = $row["\x4d\x76\x46\x69\154\x65\101\x66\164\145\x72\x49\155\x70"]; $Result[$i]["\x52\145\x6d\x48\x65\141\x64\145\162"] = $row["\x52\x65\x6d\137\106\151\154\145\x5f\x48\x65\x61\144\145\162"]; $Result[$i]["\104\145\163\x63\162"] = $row["\144\145\x73\143\162"]; $Result[$i]["\x4d\x52\145\143"] = $row["\x6d\x61\151\x6c\x5f\x72\145\143\151\x70\151\145\156\x74\163"]; $Result[$i]["\x4f\x72\x64\x65\162\102\171"] = $row["\117\x72\x64\x65\162\x42\x79"]; $i = $i + 1; } for ($r = 0; $r < $i; $r++) { if ($Result[$r]["\x44\102\137\123\165\x72\163\x61"] == "\111\x6d\160\x6f\x72\164\x43\123\126") { LogText("\x49\155\160\157\x72\164\x20\144\151\x6e\40\x43\123\126\56\x20\105\x78\x65\x63\165\x74\151\145\40\143\x6c\141\163\x61\72\40" . $Result[$r]["\103\x6c\141\163\141"]); execImportCSV($Result[$r]); } if ($Result[$r]["\x44\102\x5f\123\x75\162\x73\141"] == "\x45\x78\x70\x6f\x72\164\103\x53\126") { LogText("\x45\x78\160\157\x72\x74\40\151\156\40\x43\x53\x56\56\x20\x45\170\145\143\165\x74\151\x65\40\x63\154\x61\x73\x61\x3a\x20" . $Result[$r]["\x43\x6c\x61\x73\141"]); execExportCSV($Result[$r]); } if ($Result[$r]["\104\x42\137\x53\x75\162\x73\x61"] == "\105\170\143\x65\x6c") { LogText("\x49\155\x70\x6f\x72\x74\40\144\x69\156\40\x45\x78\143\145\x6c\56\40\105\x78\x65\143\x75\x74\x69\x65\40\143\x6c\x61\163\141\72\x20" . $Result[$r]["\103\x6c\x61\163\141"]); execExcel($Result[$r]); } if ($Result[$r]["\x44\102\137\x53\x75\162\163\x61"] == "\105\x78\x63\x65\x6c\137\x42\162\165\x74") { LogText("\x49\x6d\x70\x6f\x72\x74\x20\144\x69\x6e\40\105\170\x63\145\x6c\56\40\x45\x78\145\x63\x75\x74\x69\x65\x20\x63\154\x61\x73\x61\72\40" . $Result[$r]["\103\x6c\141\x73\x61"]); execExcelBrut($Result[$r]); } if ($Result[$r]["\x44\x42\x5f\123\165\x72\x73\141"] == "\x45\x78\143\145\x6c\137\105\x78\160\157\162\x74") { LogText("\x45\x78\x70\x6f\x72\164\x20\151\x6e\40\x65\170\x63\x65\x6c\56\x20\105\x78\145\x63\165\x74\x69\x65\x20\143\x6c\141\163\141\72\x20" . $Result[$r]["\103\154\x61\163\141"]); execExportToExcel($Result[$r]); } if ($Result[$r]["\104\x42\x5f\x53\165\162\163\x61"] == "\143\x75\x73\164\157\x6d\x5f\120\x44\x46\137\105\x78\x70\x6f\x72\x74") { LogText("\x45\170\160\157\x72\164\x20\151\156\x20\120\x44\106\56\x20\105\170\x65\143\x75\164\x69\145\40\x63\154\141\163\141\x3a\x20" . $Result[$r]["\x43\x6c\x61\163\141"]); execPDF_Template($Result[$r]); } if ($Result[$r]["\x44\x42\137\123\165\x72\163\x61"] != "\x45\170\143\145\154\137\x45\170\x70\x6f\x72\164" and $Result[$r]["\104\x42\x5f\123\x75\162\163\141"] != "\x45\x78\143\145\x6c" and $Result[$r]["\104\x42\137\123\165\x72\163\x61"] != "\105\170\143\x65\154\x5f\102\x72\x75\x74" and $Result[$r]["\x44\102\x5f\123\165\x72\163\x61"] != "\x49\155\x70\157\162\164\103\123\x56" and $Result[$r]["\104\x42\x5f\x53\165\x72\x73\x61"] != "\105\x78\x70\x6f\162\164\103\123\126" and $Result[$r]["\104\x42\x5f\x53\x75\162\x73\x61"] != "\x63\x75\x73\164\157\x6d\x5f\x50\104\106\137\105\170\x70\157\162\x74") { LogText("\x45\170\x65\143\x75\x74\x69\x65\x20\121\165\145\x72\x79\x2e\40\105\x78\145\143\165\164\x69\145\x20\x63\x6c\x61\163\x61\x3a\x20" . $Result[$r]["\x43\x6c\x61\163\x61"]); execQuery($Result[$r]); } } $main_sql = NULL; $stmt = NULL; $conn = $obj->dbDisconnect(); $obj = NULL; } goto y9U0x; nKJnC: include_once __DIR__ . "\57\155\141\x69\156\x5f\143\x6c\141\x73\x73\56\160\150\x70"; goto GX1sZ; g5HTu: include_once __DIR__ . "\57\x63\157\156\146\151\x67\x2f\104\x62\137\x63\x6f\x6e\x66\151\147\x2e\x70\150\x70"; goto nKJnC; y9U0x: ?>
Function Calls
None |
Stats
MD5 | 93c54b45e140c7ef05ef72a9b996c9be |
Eval Count | 0 |
Decode Time | 63 ms |