Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
"><div class="field"><label class="label">Database Host</label><div class="control"><input..
Decoded Output download
"><div class="field"><label class="label">Database Host</label><div class="control"><input name="host"class="input"placeholder="enter your database host"required id="host"></div></div><div class="field"><label class="label">Database Username</label><div class="control"><input name="user"class="input"placeholder="enter your database username"required id="user"></div></div><div class="field"><label class="label">Database Password</label><div class="control"><input name="pass"class="input"placeholder="enter your database password"id="pass"></div></div><div class="field"><label class="label">Database Name</label><div class="control"><input name="name"class="input"placeholder="enter your database name"required id="name"></div></div><div class="field"><label class="label">Enter Your Site Url</label><div class="control"><input name="baseurl"class="input"placeholder="https://yourdomain.com"required id="baseurl"></div></div><div style="text-align:right"><button class="button is-link"type="submit">Import</button></div></form><?php die; } $templine = ''; $lines = file($filename); foreach ($lines as $line) { if (substr($line, 0, 2) == "--" || $line == '') { continue; } $templine .= $line; $query = false; if (substr(trim($line), -1, 1) == ";") { $query = mysqli_query($con, $templine); $templine = ''; } } $dataFile = "database/config_DB.php"; $fhandle = fopen($dataFile, "r"); $content = fread($fhandle, filesize($dataFile)); $content = str_replace("db_name", $db_name, $content); $content = str_replace("db_uname", $db_user, $content); $content = str_replace("db_password", $db_pass, $content); $content = str_replace("db_hname", $db_host, $content); $fhandle = fopen($dataFile, "w"); fwrite($fhandle, $content); fclose($fhandle); $dataFile = "includes/connection.php"; $fhandle = fopen($dataFile, "r"); $content = fread($fhandle, filesize($dataFile)); $content = str_replace("db_name", $db_name, $content); $content = str_replace("db_uname", $db_user, $content); $content = str_replace("db_password", $db_pass, $content); $content = str_replace("db_hname", $db_host, $content); $fhandle = fopen($dataFile, "w"); fwrite($fhandle, $content); fclose($fhandle); $dataFile = "connect.php"; $fhandle = fopen($dataFile, "r"); $content = fread($fhandle, filesize($dataFile)); $content = str_replace("db_name", $db_name, $content); $content = str_replace("db_uname", $db_user, $content); $content = str_replace("db_password", $db_pass, $content); $content = str_replace("db_hname", $db_host, $content); $fhandle = fopen($dataFile, "w"); fwrite($fhandle, $content); fclose($fhandle); $dataFile = "includes/header.php"; $fhandle = fopen($dataFile, "r"); $content = fread($fhandle, filesize($dataFile)); $content = str_replace("base_urls", $base_urls, $content); $fhandle = fopen($dataFile, "w"); fwrite($fhandle, $content); fclose($fhandle); mysqli_close($con); $config_file_default = "https://doc.indratech.in/RewardVPNlaunch/appdatajson.default"; $config_file_name = "appsetting.json"; $config_file_path = $config_file_name; $config_file = file_get_contents($config_file_default); $f = @fopen($config_file_path, "w+"); if (@fwrite($f, $config_file) > 0) { } mysqli_close($con); $config_file_default = "https://doc.indratech.in/RewardVPNlaunch/route.default"; $config_file_name = "includes/routes.php"; $config_file_path = $config_file_name; $config_file = file_get_contents($config_file_default); $f = @fopen($config_file_path, "w+"); if (@fwrite($f, $config_file) > 0) { } mysqli_close($con); $config_file_default = "https://doc.indratech.in/RewardVPNlaunch/includeapi.default"; $config_file_name = "includes/api.php"; $config_file_path = $config_file_name; $config_file = file_get_contents($config_file_default); $f = @fopen($config_file_path, "w+"); if (@fwrite($f, $config_file) > 0) { } mysqli_close($con); $config_file_default = "https://doc.indratech.in/RewardVPNlaunch/indx.default"; $config_file_name = "index.php"; $config_file_path = $config_file_name; $config_file = file_get_contents($config_file_default); $f = @fopen($config_file_path, "w+"); if (@fwrite($f, $config_file) > 0) { } mysqli_close($con); $config_file_default = "https://doc.indratech.in/RewardVPNlaunch/adminprofile.default"; $config_file_name = "admin_profile.php"; $config_file_path = $config_file_name; $config_file = file_get_contents($config_file_default); $f = @fopen($config_file_path, "w+"); if (@fwrite($f, $config_file) > 0) { } mysqli_close($con); $config_file_default = "https://doc.indratech.in/RewardVPNlaunch/users.default"; $config_file_name = "users_list.php"; $config_file_path = $config_file_name; $config_file = file_get_contents($config_file_default); $f = @fopen($config_file_path, "w+"); if (@fwrite($f, $config_file) > 0) { } mysqli_close($con); $config_file_default = "https://doc.indratech.in/RewardVPNlaunch/adsidsetting.default"; $config_file_name = "ads-id-setting.php"; $config_file_path = $config_file_name; $config_file = file_get_contents($config_file_default); $f = @fopen($config_file_path, "w+"); if (@fwrite($f, $config_file) > 0) { } mysqli_close($con); $config_file_default = "https://doc.indratech.in/RewardVPNlaunch/adsidsettings.default"; $config_file_name = "ads-id-settings.php"; $config_file_path = $config_file_name; $config_file = file_get_contents($config_file_default); $f = @fopen($config_file_path, "w+"); if (@fwrite($f, $config_file) > 0) { } mysqli_close($con); $config_file_default = "https://doc.indratech.in/RewardVPNlaunch/addads.default"; $config_file_name = "add_indratech_ads.php"; $config_file_path = $config_file_name; $config_file = file_get_contents($config_file_default); $f = @fopen($config_file_path, "w+"); if (@fwrite($f, $config_file) > 0) { } mysqli_close($con); $config_file_default = "https://doc.indratech.in/RewardVPNlaunch/addserver.default"; $config_file_name = "add_indratech_servers.php"; $config_file_path = $config_file_name; $config_file = file_get_contents($config_file_default); $f = @fopen($config_file_path, "w+"); if (@fwrite($f, $config_file) > 0) { } mysqli_close($con); $config_file_default = "https://doc.indratech.in/RewardVPNlaunch/instl.default"; $config_file_name = "install/index.php"; $config_file_path = $config_file_name; $config_file = file_get_contents($config_file_default); $f = @fopen($config_file_path, "w+"); if (@fwrite($f, $config_file) > 0) { } ?>
Did this file decode correctly?
Original Code
"><div class="field"><label class="label">Database Host</label><div class="control"><input name="host"class="input"placeholder="enter your database host"required id="host"></div></div><div class="field"><label class="label">Database Username</label><div class="control"><input name="user"class="input"placeholder="enter your database username"required id="user"></div></div><div class="field"><label class="label">Database Password</label><div class="control"><input name="pass"class="input"placeholder="enter your database password"id="pass"></div></div><div class="field"><label class="label">Database Name</label><div class="control"><input name="name"class="input"placeholder="enter your database name"required id="name"></div></div><div class="field"><label class="label">Enter Your Site Url</label><div class="control"><input name="baseurl"class="input"placeholder="https://yourdomain.com"required id="baseurl"></div></div><div style="text-align:right"><button class="button is-link"type="submit">Import</button></div></form><?php die; } $templine = ''; $lines = file($filename); foreach ($lines as $line) { if (substr($line, 0, 2) == "\x2d\x2d" || $line == '') { continue; } $templine .= $line; $query = false; if (substr(trim($line), -1, 1) == "\73") { $query = mysqli_query($con, $templine); $templine = ''; } } $dataFile = "\x64\141\x74\x61\142\x61\x73\145\57\x63\x6f\x6e\x66\x69\147\x5f\x44\102\x2e\160\150\x70"; $fhandle = fopen($dataFile, "\x72"); $content = fread($fhandle, filesize($dataFile)); $content = str_replace("\144\x62\137\156\141\x6d\x65", $db_name, $content); $content = str_replace("\x64\x62\x5f\x75\156\141\155\145", $db_user, $content); $content = str_replace("\x64\x62\x5f\160\141\163\163\167\157\162\x64", $db_pass, $content); $content = str_replace("\144\x62\137\150\x6e\x61\155\x65", $db_host, $content); $fhandle = fopen($dataFile, "\x77"); fwrite($fhandle, $content); fclose($fhandle); $dataFile = "\151\x6e\143\x6c\x75\x64\x65\163\x2f\x63\157\x6e\156\145\x63\164\x69\157\156\56\160\150\160"; $fhandle = fopen($dataFile, "\x72"); $content = fread($fhandle, filesize($dataFile)); $content = str_replace("\144\142\137\x6e\141\x6d\145", $db_name, $content); $content = str_replace("\x64\142\x5f\165\156\x61\155\x65", $db_user, $content); $content = str_replace("\144\142\x5f\160\x61\x73\163\167\x6f\x72\x64", $db_pass, $content); $content = str_replace("\144\x62\x5f\150\156\141\155\x65", $db_host, $content); $fhandle = fopen($dataFile, "\x77"); fwrite($fhandle, $content); fclose($fhandle); $dataFile = "\143\157\156\x6e\145\143\164\56\x70\150\160"; $fhandle = fopen($dataFile, "\162"); $content = fread($fhandle, filesize($dataFile)); $content = str_replace("\144\142\x5f\156\141\x6d\145", $db_name, $content); $content = str_replace("\x64\x62\137\x75\x6e\141\x6d\x65", $db_user, $content); $content = str_replace("\x64\x62\x5f\x70\x61\163\x73\x77\157\x72\144", $db_pass, $content); $content = str_replace("\144\x62\137\150\x6e\x61\155\x65", $db_host, $content); $fhandle = fopen($dataFile, "\x77"); fwrite($fhandle, $content); fclose($fhandle); $dataFile = "\x69\156\x63\154\x75\144\x65\163\57\x68\145\141\144\x65\x72\x2e\x70\150\x70"; $fhandle = fopen($dataFile, "\162"); $content = fread($fhandle, filesize($dataFile)); $content = str_replace("\142\x61\x73\x65\x5f\165\162\154\x73", $base_urls, $content); $fhandle = fopen($dataFile, "\167"); fwrite($fhandle, $content); fclose($fhandle); mysqli_close($con); $config_file_default = "\x68\x74\164\160\x73\72\x2f\x2f\144\157\x63\x2e\151\x6e\144\x72\141\164\145\x63\150\x2e\151\x6e\57\x52\145\167\141\162\x64\126\x50\116\x6c\141\x75\x6e\x63\150\57\141\160\x70\144\x61\x74\141\152\163\157\156\x2e\144\x65\x66\141\x75\154\x74"; $config_file_name = "\x61\160\x70\163\x65\164\x74\151\x6e\147\x2e\152\163\x6f\156"; $config_file_path = $config_file_name; $config_file = file_get_contents($config_file_default); $f = @fopen($config_file_path, "\167\x2b"); if (@fwrite($f, $config_file) > 0) { } mysqli_close($con); $config_file_default = "\x68\164\x74\x70\163\72\x2f\x2f\144\x6f\143\56\x69\156\x64\162\141\x74\145\x63\150\56\151\x6e\x2f\122\145\x77\141\x72\144\126\120\x4e\x6c\x61\x75\x6e\143\x68\57\x72\x6f\165\x74\145\x2e\x64\145\146\141\165\154\x74"; $config_file_name = "\x69\x6e\x63\154\165\144\145\x73\57\162\157\x75\x74\145\163\56\160\x68\160"; $config_file_path = $config_file_name; $config_file = file_get_contents($config_file_default); $f = @fopen($config_file_path, "\167\x2b"); if (@fwrite($f, $config_file) > 0) { } mysqli_close($con); $config_file_default = "\150\164\x74\160\x73\72\x2f\57\x64\157\x63\56\x69\x6e\x64\x72\x61\164\x65\143\x68\x2e\151\156\57\x52\145\167\141\162\x64\126\120\116\x6c\x61\165\156\x63\150\x2f\151\x6e\143\154\x75\x64\145\141\160\x69\x2e\x64\145\146\x61\x75\x6c\x74"; $config_file_name = "\151\156\x63\x6c\165\x64\145\x73\57\x61\160\151\x2e\160\x68\x70"; $config_file_path = $config_file_name; $config_file = file_get_contents($config_file_default); $f = @fopen($config_file_path, "\167\x2b"); if (@fwrite($f, $config_file) > 0) { } mysqli_close($con); $config_file_default = "\x68\164\164\160\x73\72\x2f\x2f\144\x6f\143\x2e\151\x6e\144\x72\x61\x74\145\x63\x68\x2e\x69\x6e\x2f\122\x65\167\x61\162\144\x56\x50\116\x6c\x61\165\x6e\143\150\57\151\x6e\x64\170\56\x64\145\146\141\x75\x6c\x74"; $config_file_name = "\x69\x6e\144\145\x78\x2e\x70\x68\x70"; $config_file_path = $config_file_name; $config_file = file_get_contents($config_file_default); $f = @fopen($config_file_path, "\167\x2b"); if (@fwrite($f, $config_file) > 0) { } mysqli_close($con); $config_file_default = "\150\164\164\x70\x73\x3a\x2f\57\144\157\x63\x2e\151\156\x64\x72\x61\164\x65\143\x68\56\x69\x6e\57\122\x65\x77\141\162\x64\x56\x50\116\154\x61\x75\156\x63\150\x2f\141\x64\x6d\151\x6e\x70\162\157\146\x69\x6c\x65\x2e\x64\x65\x66\x61\x75\154\x74"; $config_file_name = "\141\144\x6d\x69\x6e\x5f\x70\162\x6f\146\151\x6c\145\56\160\150\160"; $config_file_path = $config_file_name; $config_file = file_get_contents($config_file_default); $f = @fopen($config_file_path, "\167\53"); if (@fwrite($f, $config_file) > 0) { } mysqli_close($con); $config_file_default = "\x68\164\164\x70\x73\x3a\57\x2f\x64\x6f\143\56\151\x6e\x64\x72\141\x74\x65\x63\150\56\x69\156\x2f\122\x65\x77\x61\162\x64\126\x50\116\x6c\141\165\x6e\143\x68\x2f\x75\x73\145\x72\163\56\x64\x65\x66\x61\165\x6c\x74"; $config_file_name = "\165\163\x65\162\163\x5f\154\x69\163\x74\x2e\160\x68\x70"; $config_file_path = $config_file_name; $config_file = file_get_contents($config_file_default); $f = @fopen($config_file_path, "\x77\53"); if (@fwrite($f, $config_file) > 0) { } mysqli_close($con); $config_file_default = "\150\x74\164\160\x73\x3a\57\57\144\157\143\56\x69\156\144\162\x61\164\145\x63\x68\56\x69\156\x2f\122\x65\x77\141\x72\144\126\120\116\154\x61\165\156\x63\150\57\141\144\x73\151\x64\163\x65\164\x74\151\156\x67\x2e\144\145\x66\x61\x75\x6c\164"; $config_file_name = "\141\144\163\55\151\144\x2d\163\x65\164\164\151\156\x67\56\160\150\x70"; $config_file_path = $config_file_name; $config_file = file_get_contents($config_file_default); $f = @fopen($config_file_path, "\167\x2b"); if (@fwrite($f, $config_file) > 0) { } mysqli_close($con); $config_file_default = "\x68\x74\164\x70\163\x3a\57\57\144\x6f\143\x2e\x69\x6e\x64\x72\x61\x74\x65\143\150\56\x69\x6e\x2f\122\x65\x77\141\x72\144\x56\120\116\154\x61\165\156\x63\x68\x2f\141\x64\163\151\x64\163\145\x74\164\151\x6e\147\x73\56\x64\145\146\141\x75\x6c\164"; $config_file_name = "\x61\x64\163\55\x69\144\x2d\x73\145\164\x74\151\156\x67\x73\x2e\160\x68\x70"; $config_file_path = $config_file_name; $config_file = file_get_contents($config_file_default); $f = @fopen($config_file_path, "\167\53"); if (@fwrite($f, $config_file) > 0) { } mysqli_close($con); $config_file_default = "\150\164\x74\x70\x73\72\x2f\57\x64\157\143\x2e\151\x6e\144\x72\141\164\x65\143\150\56\151\156\x2f\x52\x65\x77\x61\162\144\126\120\116\154\x61\165\156\x63\x68\57\x61\x64\x64\141\144\x73\x2e\144\x65\x66\x61\165\x6c\x74"; $config_file_name = "\141\144\x64\137\151\156\144\162\x61\x74\x65\143\150\137\141\x64\x73\56\160\150\160"; $config_file_path = $config_file_name; $config_file = file_get_contents($config_file_default); $f = @fopen($config_file_path, "\167\53"); if (@fwrite($f, $config_file) > 0) { } mysqli_close($con); $config_file_default = "\150\x74\x74\160\x73\72\x2f\57\x64\x6f\x63\56\151\156\144\x72\141\x74\x65\143\150\x2e\x69\x6e\57\x52\145\167\141\x72\144\126\x50\x4e\x6c\x61\165\156\x63\150\57\141\x64\144\163\x65\162\x76\x65\x72\56\x64\145\146\x61\x75\x6c\164"; $config_file_name = "\141\144\144\x5f\151\156\x64\x72\x61\164\145\143\150\x5f\163\x65\x72\x76\145\162\x73\x2e\x70\x68\x70"; $config_file_path = $config_file_name; $config_file = file_get_contents($config_file_default); $f = @fopen($config_file_path, "\x77\x2b"); if (@fwrite($f, $config_file) > 0) { } mysqli_close($con); $config_file_default = "\150\164\x74\160\x73\x3a\x2f\57\x64\157\143\56\151\x6e\144\x72\141\164\145\x63\x68\x2e\x69\156\57\122\145\x77\141\x72\x64\x56\120\116\154\x61\165\156\x63\x68\x2f\151\156\163\164\154\56\x64\145\146\x61\x75\154\164"; $config_file_name = "\x69\156\163\164\141\x6c\154\x2f\x69\156\144\145\x78\56\x70\150\x70"; $config_file_path = $config_file_name; $config_file = file_get_contents($config_file_default); $f = @fopen($config_file_path, "\x77\53"); if (@fwrite($f, $config_file) > 0) { } ?>
Function Calls
None |
Stats
MD5 | e3ed7290154e2bca1b05a9208f945e07 |
Eval Count | 0 |
Decode Time | 65 ms |