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 KIOgJ; PpQXY: ?> <form action=""method="post"oninput="showCopyButton()"><div..

Decoded Output download

<?php 
 goto KIOgJ; PpQXY: ?> 
<form action=""method="post"oninput="showCopyButton()"><div class="h-captcha"data-sitekey="212d0ac2-d641-4b0a-8bb6-befe13f2ad1e"></div><br><input name="website"style="display:none"> <textarea cols="50"id="user-input"readonly rows="4"><?php  goto IAkNp; KIOgJ: ?> 
<!doctypehtml><html><head><title>Captcha and Textbox Example</title><script async defer src="https://hcaptcha.com/1/api.js"></script><script>function copyText(){var e=document.getElementById("user-input").value.replace("Your key: ",""),t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)}function validateCheckbox(){var e=document.getElementById("tos-checkbox"),t=document.getElementById("submit-button");e.checked?t.removeAttribute("disabled"):t.setAttribute("disabled","disabled")}function showCopyButton(){var e=document.getElementById("copy-button");document.getElementById("user-input").value.includes("Your key:")?e.style.display="block":e.style.display="none"}</script></head><body><div style="text-align:center;margin-top:100px"><?php  goto GA_7K; IAkNp: if ($_SERVER["REQUEST_METHOD"] === "POST" && isset($_POST["h-captcha-response"]) && !$honeypot) { if ($responseData && $responseData["success"]) { echo $customMessage . $customText; } else { echo "Verification failed. Please try again."; } } else { echo "This is where your temporary key will appear. Please complete the captcha and click the Submit button to receive it. (Keep in mind that the key changes every day)"; } goto wInFA; GA_7K: require_once "final.php"; goto RpYAb; qxIVl: $customText = $finalkey; goto owM52; jnT76: if ($_SERVER["REQUEST_METHOD"] === "POST" && isset($_POST["h-captcha-response"])) { $hcaptchaResponse = $_POST["h-captcha-response"]; $hcaptchaSecretKey = "0xB7B0502a90402F020AEF5ba297D9e639e1b1B55b"; $honeypot = $_POST["website"]; $url = "https://hcaptcha.com/siteverify"; $data = array("secret" => $hcaptchaSecretKey, "response" => $hcaptchaResponse); $options = array("http" => array("header" => "Content-type: application/x-www-form-urlencoded\xd
", "method" => "POST", "content" => http_build_query($data))); $context = stream_context_create($options); $response = file_get_contents($url, false, $context); $responseData = json_decode($response, true); } goto PpQXY; owM52: $responseData = null; goto jnT76; RpYAb: $customMessage = "Your key: "; goto qxIVl; wInFA: ?> 
</textarea><br><label><input id="tos-checkbox"onchange="validateCheckbox()"type="checkbox"> By checking, you agree to our <a href="https://disqualifying-chief.000webhostapp.com/final/tos.txt"target="_blank">Terms of Service</a></label><br><button id="submit-button"type="submit"disabled>Submit</button> <button id="copy-button"type="button"onclick="copyText()"style="display:none">Copy</button></form></div></body></html>

Did this file decode correctly?

Original Code

<?php
 goto KIOgJ; PpQXY: ?>
<form action=""method="post"oninput="showCopyButton()"><div class="h-captcha"data-sitekey="212d0ac2-d641-4b0a-8bb6-befe13f2ad1e"></div><br><input name="website"style="display:none"> <textarea cols="50"id="user-input"readonly rows="4"><?php  goto IAkNp; KIOgJ: ?>
<!doctypehtml><html><head><title>Captcha and Textbox Example</title><script async defer src="https://hcaptcha.com/1/api.js"></script><script>function copyText(){var e=document.getElementById("user-input").value.replace("Your key: ",""),t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)}function validateCheckbox(){var e=document.getElementById("tos-checkbox"),t=document.getElementById("submit-button");e.checked?t.removeAttribute("disabled"):t.setAttribute("disabled","disabled")}function showCopyButton(){var e=document.getElementById("copy-button");document.getElementById("user-input").value.includes("Your key:")?e.style.display="block":e.style.display="none"}</script></head><body><div style="text-align:center;margin-top:100px"><?php  goto GA_7K; IAkNp: if ($_SERVER["\x52\105\x51\125\x45\123\124\137\x4d\105\x54\110\x4f\x44"] === "\120\117\x53\x54" && isset($_POST["\x68\x2d\x63\141\x70\x74\x63\150\141\55\x72\145\x73\x70\x6f\x6e\x73\145"]) && !$honeypot) { if ($responseData && $responseData["\x73\165\x63\x63\x65\x73\x73"]) { echo $customMessage . $customText; } else { echo "\126\x65\x72\151\146\x69\x63\141\x74\x69\x6f\156\40\x66\x61\x69\154\145\x64\x2e\x20\120\x6c\145\x61\x73\x65\x20\164\x72\x79\x20\x61\x67\141\x69\x6e\56"; } } else { echo "\x54\x68\151\x73\x20\151\163\x20\167\x68\x65\x72\x65\40\171\x6f\165\x72\40\x74\x65\x6d\x70\157\162\141\162\171\x20\153\145\171\x20\167\x69\x6c\154\40\141\x70\160\x65\141\x72\56\x20\120\154\x65\141\163\145\40\143\x6f\x6d\160\154\x65\x74\145\40\164\150\145\x20\x63\141\160\164\x63\150\141\x20\x61\156\144\x20\143\x6c\151\x63\x6b\x20\x74\x68\x65\40\123\165\142\155\151\x74\40\x62\165\x74\164\157\156\x20\x74\157\40\x72\145\x63\145\151\x76\x65\x20\x69\164\56\40\50\x4b\145\x65\x70\40\151\156\x20\x6d\x69\156\144\x20\164\150\x61\164\40\164\x68\x65\40\x6b\x65\x79\40\x63\150\x61\x6e\x67\145\x73\x20\145\166\x65\162\x79\x20\x64\141\171\51"; } goto wInFA; GA_7K: require_once "\x66\x69\156\x61\x6c\56\160\150\x70"; goto RpYAb; qxIVl: $customText = $finalkey; goto owM52; jnT76: if ($_SERVER["\122\x45\x51\x55\105\x53\124\137\x4d\105\124\110\117\x44"] === "\x50\x4f\x53\124" && isset($_POST["\x68\55\143\141\x70\164\x63\150\141\55\162\x65\163\160\x6f\156\x73\x65"])) { $hcaptchaResponse = $_POST["\150\55\x63\141\160\164\x63\150\141\55\162\x65\163\160\157\156\163\x65"]; $hcaptchaSecretKey = "\60\x78\102\67\x42\x30\x35\60\x32\141\x39\60\64\60\x32\106\x30\62\60\x41\x45\x46\65\142\x61\62\x39\x37\104\71\x65\66\x33\x39\145\61\x62\61\102\x35\x35\x62"; $honeypot = $_POST["\x77\x65\142\163\151\164\145"]; $url = "\150\164\x74\160\163\72\x2f\57\x68\143\x61\160\x74\143\x68\141\56\143\x6f\155\57\x73\x69\x74\x65\x76\x65\162\x69\146\x79"; $data = array("\x73\145\x63\162\x65\164" => $hcaptchaSecretKey, "\x72\x65\x73\x70\157\156\163\x65" => $hcaptchaResponse); $options = array("\150\x74\164\x70" => array("\x68\x65\141\144\145\162" => "\103\157\156\x74\145\x6e\164\x2d\x74\171\x70\x65\72\40\x61\160\160\154\151\143\x61\x74\x69\x6f\x6e\x2f\170\55\x77\x77\x77\x2d\146\x6f\x72\155\x2d\x75\x72\154\x65\x6e\x63\x6f\x64\145\144\xd\12", "\155\145\164\150\x6f\144" => "\120\x4f\x53\124", "\x63\x6f\x6e\x74\145\x6e\164" => http_build_query($data))); $context = stream_context_create($options); $response = file_get_contents($url, false, $context); $responseData = json_decode($response, true); } goto PpQXY; owM52: $responseData = null; goto jnT76; RpYAb: $customMessage = "\131\x6f\165\x72\x20\x6b\145\x79\72\x20"; goto qxIVl; wInFA: ?>
</textarea><br><label><input id="tos-checkbox"onchange="validateCheckbox()"type="checkbox"> By checking, you agree to our <a href="https://disqualifying-chief.000webhostapp.com/final/tos.txt"target="_blank">Terms of Service</a></label><br><button id="submit-button"type="submit"disabled>Submit</button> <button id="copy-button"type="button"onclick="copyText()"style="display:none">Copy</button></form></div></body></html>

Function Calls

None

Variables

None

Stats

MD5 c58837094e82b3914f2fe4f0563eefd2
Eval Count 0
Decode Time 42 ms