Current File : //root/panel/etc/apps/softaculous/softtest.php |
<?php
if(isset($_GET['rsid'])) {
$rsid_arr = explode("HRSOFT", $_GET['rsid']);
$rsid = $rsid_arr[0];
$user = base64_decode($rsid_arr[1]);
/*$url = 'http://45.113.136.119/index.php?'.
'api_key=fhJHtGxt3FkQ5G6S'.
'&api_pass=mVCByzzrLN71S5iFo3U6M4oeutqUc77b'.
'&act=home'.
'&api=serialize';*/
$salt = md5('sanIjuHr*260215');
$soft_hr_key = sha1($salt.md5($user));
//echo $soft_hr_key;
if($rsid == $soft_hr_key) {
$url = 'https://45.113.136.119/index.php?'.
'api_key=fhJHtGxt3FkQ5G6S'.
'&api_pass=mVCByzzrLN71S5iFo3U6M4oeutqUc77b'.
'&createSession='.$user.
'&owner=root&act=home&api=serialize';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $time);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
// Turn off the server and peer verification (TrustManager Concept).
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
// Get response from the server.
$resp = curl_exec($ch);
//print_r($resp);
// Unserialize data
$res = unserialize($resp);
} else {
echo "Invalid Key";exit;
}
} else {
echo "Invalid Tocken";exit;
}
?>
<html>
<head>
<title>HR-Softaculous</title>
</head>
<body>
<?php //if ($res['rsid'] == $rsid) { ?>
<iframe src="https://45.113.136.119/index.php?api_key=fhJHtGxt3FkQ5G6S&api_pass=mVCByzzrLN71S5iFo3U6M4oeutqUc77b&createSession=<?php echo $user; ?>&owner=root" width="100%" height="100%" id ="soft_frame" style="margin: -9px;"></iframe>
<?php //} else { ?>
<!--div class="token_err"> Error: 100058: Invalid Token! </div-->
<?php //} ?>
</body>
</html>