Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //coded by s0cket of incursus security group
- if(isset($_POST['submit']) && !empty($_POST['adminpass'])){
- //grab info
- $ipaddr = getenv('REMOTE_ADDR');
- //declare password
- $realpass = "6?xeDknx";
- $comparepass = htmlentities($_POST['adminpass'], ENT_QUOTES, "UTF-8");
- if ($comparepass != $realpass) {
- $totalmsg = "The IP address " . $ip . " tried to use this password: " . $comparepass . "\n";
- $fp = fopen('adminlogs.txt', 'a');
- fwrite($fp, $totalmsg);
- fclose($fp);
- } else {
- ?>
- <html>
- <head>
- <title>Admin Panel</title>
- </head>
- <body bgcolor="black">
- <font color="white">
- <center>
- <pre>
- ____ ____ ____ ____ ____
- ||a |||d |||m |||i |||n ||
- ||__|||__|||__|||__|||__||
- |/__\|/__\|/__\|/__\|/__\|
- </pre>
- <form action="" method="POST">
- <input type="submit" value="clear logs" name="clreglogs">
- <br><br>
- <input type="submit" value="clear admin logs" name="clradmnlg">
- </form>
- </html>
- <?php
- }
- } else {
- ?>
- <html>
- <title>Admin Login</title>
- <center>
- <body bgcolor="black">
- <font color="red">
- <pre>
- ____ ____ ____ ____ ____
- ||a |||d |||m |||i |||n ||
- ||__|||__|||__|||__|||__||
- |/__\|/__\|/__\|/__\|/__\|
- </pre>
- </font>
- <font color="white">
- <br><br>
- <form action="" method="POST">
- <input type="password" name="adminpass">
- <br>
- <input type="submit" value="<login>" name="submit">
- </form>
- <br><p>attempts are logged pals</p>
- </center>
- </font>
- </html>
- <?php
- }
- ?>
Add Comment
Please, Sign In to add comment