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 te6CG; X7z1N: $csvFileInput = readline("\111\156\x70\x75\x74\40\x46\151\x6c\1..
Decoded Output download
<?php
goto te6CG; X7z1N: $csvFileInput = readline("Input File: "); goto Ctt5M; Ctt5M: $csvFileOutput = readline("Output File: "); goto bquE0; bquE0: $new_domain = readline("New Domain: "); goto RLVWZ; te6CG: error_reporting(0); goto X7z1N; RLVWZ: if (!empty($csvFileInput) && !empty($csvFileOutput) && !empty($new_domain)) { $csvFileInput = $csvFileInput . ".csv"; $csvFileOutputs = $csvFileOutput . ".csv"; if (file_exists($csvFileInput)) { $handle = fopen($csvFileInput, "r"); $domains = array(); while (($data = fgetcsv($handle)) !== false) { $url = $data[0]; $parsedUrl = parse_url($url); if ($parsedUrl && isset($parsedUrl["host"])) { $domain = $parsedUrl["host"]; if (!in_array($domain, $domains)) { if (strpos($domain, "samehadaku.") !== false) { $domains[] = $domain; } } } } fclose($handle); foreach ($domains as $key => $domain) { echo $key . " => " . $domain . "
"; } $input = readline("Pilih salah satu: "); if ($input == null) { echo "Silahkan pilih salah satu domain!"; } else { $handle = fopen($csvFileInput, "r"); $urlsToCopy = array(); while (($data = fgetcsv($handle)) !== false) { $url = $data[0]; if (strpos($url, "samehadaku") !== false) { $parse = parse_url($url)["host"]; $path = parse_url($url)["path"]; $scheme = parse_url($url)["scheme"]; if (array_key_exists($input, $domains)) { if (strpos($parse, $domains[$input]) !== false) { $urlsToCopy[] = $scheme . "://" . $parse . $path . ", https://" . $new_domain . $path; } } else { die("Option tidak tersedia!"); } } } fclose($handle); } if (file_exists($csvFileOutputs)) { echo "File {$csvFileOutputs} sudah ada!"; die; } else { foreach ($urlsToCopy as $dataRow) { $csvContent = $dataRow . "\xa"; file_put_contents($csvFileOutputs, $csvContent, FILE_APPEND); echo $csvContent; } } } else { echo "File {$csvFileInput} tidak ditemukan!"; } } else { echo "Silahkan lengkapi data terlebih dahulu biar tidak error!"; die; } ?>
Did this file decode correctly?
Original Code
<?php
goto te6CG; X7z1N: $csvFileInput = readline("\111\156\x70\x75\x74\40\x46\151\x6c\145\x3a\40"); goto Ctt5M; Ctt5M: $csvFileOutput = readline("\117\165\164\x70\165\x74\40\x46\151\x6c\x65\x3a\40"); goto bquE0; bquE0: $new_domain = readline("\x4e\145\x77\40\x44\x6f\155\141\151\156\x3a\x20"); goto RLVWZ; te6CG: error_reporting(0); goto X7z1N; RLVWZ: if (!empty($csvFileInput) && !empty($csvFileOutput) && !empty($new_domain)) { $csvFileInput = $csvFileInput . "\56\x63\x73\x76"; $csvFileOutputs = $csvFileOutput . "\56\x63\x73\x76"; if (file_exists($csvFileInput)) { $handle = fopen($csvFileInput, "\x72"); $domains = array(); while (($data = fgetcsv($handle)) !== false) { $url = $data[0]; $parsedUrl = parse_url($url); if ($parsedUrl && isset($parsedUrl["\x68\x6f\x73\164"])) { $domain = $parsedUrl["\x68\157\163\164"]; if (!in_array($domain, $domains)) { if (strpos($domain, "\163\141\155\x65\150\x61\144\141\x6b\x75\56") !== false) { $domains[] = $domain; } } } } fclose($handle); foreach ($domains as $key => $domain) { echo $key . "\40\x3d\76\40" . $domain . "\12"; } $input = readline("\120\151\x6c\x69\150\40\x73\x61\x6c\x61\x68\x20\x73\x61\164\165\72\40"); if ($input == null) { echo "\x53\x69\154\141\150\x6b\x61\x6e\40\160\151\154\151\150\x20\163\x61\154\x61\x68\40\x73\141\x74\165\40\144\157\155\x61\151\156\41"; } else { $handle = fopen($csvFileInput, "\162"); $urlsToCopy = array(); while (($data = fgetcsv($handle)) !== false) { $url = $data[0]; if (strpos($url, "\163\x61\x6d\145\x68\141\x64\x61\x6b\x75") !== false) { $parse = parse_url($url)["\x68\157\x73\164"]; $path = parse_url($url)["\x70\x61\164\x68"]; $scheme = parse_url($url)["\x73\x63\150\145\x6d\x65"]; if (array_key_exists($input, $domains)) { if (strpos($parse, $domains[$input]) !== false) { $urlsToCopy[] = $scheme . "\72\x2f\57" . $parse . $path . "\x2c\x20\150\164\x74\x70\x73\72\x2f\x2f" . $new_domain . $path; } } else { die("\117\160\164\x69\x6f\156\x20\164\x69\144\141\x6b\40\x74\x65\x72\x73\145\x64\x69\141\x21"); } } } fclose($handle); } if (file_exists($csvFileOutputs)) { echo "\106\151\154\x65\40{$csvFileOutputs}\x20\x73\x75\144\x61\x68\x20\141\x64\141\41"; die; } else { foreach ($urlsToCopy as $dataRow) { $csvContent = $dataRow . "\xa"; file_put_contents($csvFileOutputs, $csvContent, FILE_APPEND); echo $csvContent; } } } else { echo "\x46\x69\x6c\x65\x20{$csvFileInput}\40\164\x69\144\x61\153\40\144\151\x74\x65\x6d\x75\153\141\x6e\x21"; } } else { echo "\x53\x69\154\x61\150\x6b\141\x6e\40\x6c\145\156\147\x6b\141\160\151\40\144\x61\x74\x61\x20\164\145\162\154\x65\142\151\x68\x20\144\141\150\165\154\x75\x20\x62\x69\x61\162\40\164\151\144\141\x6b\x20\x65\162\162\x6f\x72\41"; die; }
Function Calls
None |
Stats
MD5 | 8abb8c3ab1c76851bdebd8ec24250b72 |
Eval Count | 0 |
Decode Time | 50 ms |