- Beranda
- Komunitas
- Tech
- Computer Stuff
Bot social network devilzc0de.org
TS
kaskus_nova
Bot social network devilzc0de.org
link
http://devilzc0de.org/
botnya
edit dibagian ini
cara gunainnya :
buka cmd terus ketik
terus ketik
php C:\bot.php
save dengan type *.bat
masri kita jajah devilzc0de.org yang katanya forum hacker.
http://devilzc0de.org/
botnya
Quote:
<?php
/*
* Bot komen sonet dc
* Author: Poticous
* 29 Oktober 2012
*/
class dc{
var $curl_useragent = "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 $curl_cookies = "cookie.txt";
var $username;
var $password;
var $jangan;
var $komen;
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->curl_useragent);
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->curl_cookies);
curl_setopt ($ch, CURLOPT_COOKIEFILE, $this->curl_cookies);
$source = curl_exec($ch);
$this->status = curl_getinfo($ch,CURLINFO_HTTP_CODE);
$this->error = curl_error($ch);
curl_close($ch);
return $source;
}
function login(){
$url = "http://devilzc0de.org/login.dc";
$data = array('session_username'=>$this->username, 'session_password'=>$this->password);
$login = $this->curl($url,$data);
return $login;
}
function logout(){
$url = "http://devilzc0de.org/logout.dc";
return $this->curl($url);
}
function stringBetween($start, $end, $var){
return preg_match('{' . preg_quote($start) . '(.*?)' . preg_quote($end) . '}s', $var, $m)
? $m[1]
: '';
}
function get_uid($link){
$id = $this->stringBetween("id=\"member\" value=\"","\"",$link);
return $id;
}
function post_comment($html,$statusid){
$uid = $this->get_uid($html);
$data = array("member"=>$uid,"wall"=>$statusid,"comment_content"=>$this->komen,"get_emailmember"=>"fake@mail.org");
$post = $this->curl("http://devilzc0de.org/ajax/devilzAjaxRequest.php?module=post-comment",$data);
if($post){
return true;
}else{
return false;
}
}
function html2post($html){
$a = $this->stringBetween("<div id=\"dc_wall_text\">","<!-- end dc_wall_text div -->",$html);
$b = explode("<span>", $a);
$d = array();
foreach ($b as $c){
$id = $this->stringBetween("<a user=",">stringBetween("<span style='font-size:12px; padding:2px;'>", "</span><br />",$c);
$statusid = $this->stringBetween("<span style=\"float:right; display:none\" id=\"loaderstatus", "\">",$c);
$status = $this->stringBetween("<img ></span>", "<!--VIEW IMAGES IF YOU UPLOAD IMAGES IN WALL-->",$c);
if ($nama){
array_push($d, array("id" => $id, "nama" => $nama, "statusid" => $statusid, "status" => trim(strip_tags($status))));
}
}
return $d;
}
function more_wall($last){
$url = "http://devilzc0de.org/ajax/devilzAjaxRequest.php?module=more-home-wall";
$post = $this->curl($url,array('d2y'=>$last));
return $post;
}
function logs($file, $data){
$fp = fopen($file, "w");
fwrite($fp, $data);
fclose($fp);
}
function bot_komen(){
$login = $this->login();
if($login){
while(1){
$home = $this->curl("http://devilzc0de.org/home.dc");
$isi = $this->html2post($home);
$newpost = $this->more_wall($isi[0]['statusid']+1);
preg_match_all('{<div id="dc_wall_text">(.*?)<!-- end dc_wall_text div -->}s', $newpost, $hasil);
$sebelumnya = json_decode(file_get_contents('sebelumnya5.txt');
$d = array();
foreach($hasil[0] as $c){
$id = $this->stringBetween("<a user=",">stringBetween("<span style='font-size:12px; padding:2px;'>", "</span><br />",$c);
$statusid = $this->stringBetween("<span style=\"float:right; display:none\" id=\"loaderstatus", "\">",$c);
$status = $this->stringBetween("<img ></span>", "<!--VIEW IMAGES IF YOU UPLOAD IMAGES IN WALL-->",$c);
if ($nama){
array_push($d, array("id" => $id, "nama" => $nama, "statusid" => $statusid, "status" => trim(strip_tags($status))));
}
}
foreach($d as $l){
$statusid2[] = $l['statusid'];
$id2[] = $l['id'];
$nama2[] = $l['nama'];
$status2[] = $l['status'];
}
foreach($d as $e){
if((!in_array($e['statusid'],$sebelumnya->statusid)) && (!in_array($e['id'],$this->jangan))){
echo "[~] mencoba comment status \"".$e['nama'].": ".$e['status']."\"\n";
$komen = $this->post_comment($home,$e['statusid']);
if($komen){
echo "[+] Berhasil comment status \"".$e['nama'].": ".$e['status']."\"\n";
}else{
echo "[+] Gagal comment status \"".$e['nama'].": ".$e['status']."\"\n";
}
$this->logs('sebelumnya5.txt',json_encode(array("statusid"=>$statusid2,"uid"=>$id2,"nama"=>$nama2,"status"=>$status2)));
}
}
}
}else{
echo "Gagal Login.";
}
}
}
$bot = new dc();
$bot->username = "email@domain.com";
$bot->password = "password";
$bot->komen = "Hi, Salam Kenal\n\n-[bot comment poticous]-";
$bot->jangan = array("39869"); // list id yang jangan di komen
$bot->bot_komen();
?>
/*
* Bot komen sonet dc
* Author: Poticous
* 29 Oktober 2012
*/
class dc{
var $curl_useragent = "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 $curl_cookies = "cookie.txt";
var $username;
var $password;
var $jangan;
var $komen;
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->curl_useragent);
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->curl_cookies);
curl_setopt ($ch, CURLOPT_COOKIEFILE, $this->curl_cookies);
$source = curl_exec($ch);
$this->status = curl_getinfo($ch,CURLINFO_HTTP_CODE);
$this->error = curl_error($ch);
curl_close($ch);
return $source;
}
function login(){
$url = "http://devilzc0de.org/login.dc";
$data = array('session_username'=>$this->username, 'session_password'=>$this->password);
$login = $this->curl($url,$data);
return $login;
}
function logout(){
$url = "http://devilzc0de.org/logout.dc";
return $this->curl($url);
}
function stringBetween($start, $end, $var){
return preg_match('{' . preg_quote($start) . '(.*?)' . preg_quote($end) . '}s', $var, $m)
? $m[1]
: '';
}
function get_uid($link){
$id = $this->stringBetween("id=\"member\" value=\"","\"",$link);
return $id;
}
function post_comment($html,$statusid){
$uid = $this->get_uid($html);
$data = array("member"=>$uid,"wall"=>$statusid,"comment_content"=>$this->komen,"get_emailmember"=>"fake@mail.org");
$post = $this->curl("http://devilzc0de.org/ajax/devilzAjaxRequest.php?module=post-comment",$data);
if($post){
return true;
}else{
return false;
}
}
function html2post($html){
$a = $this->stringBetween("<div id=\"dc_wall_text\">","<!-- end dc_wall_text div -->",$html);
$b = explode("<span>", $a);
$d = array();
foreach ($b as $c){
$id = $this->stringBetween("<a user=",">stringBetween("<span style='font-size:12px; padding:2px;'>", "</span><br />",$c);
$statusid = $this->stringBetween("<span style=\"float:right; display:none\" id=\"loaderstatus", "\">",$c);
$status = $this->stringBetween("<img ></span>", "<!--VIEW IMAGES IF YOU UPLOAD IMAGES IN WALL-->",$c);
if ($nama){
array_push($d, array("id" => $id, "nama" => $nama, "statusid" => $statusid, "status" => trim(strip_tags($status))));
}
}
return $d;
}
function more_wall($last){
$url = "http://devilzc0de.org/ajax/devilzAjaxRequest.php?module=more-home-wall";
$post = $this->curl($url,array('d2y'=>$last));
return $post;
}
function logs($file, $data){
$fp = fopen($file, "w");
fwrite($fp, $data);
fclose($fp);
}
function bot_komen(){
$login = $this->login();
if($login){
while(1){
$home = $this->curl("http://devilzc0de.org/home.dc");
$isi = $this->html2post($home);
$newpost = $this->more_wall($isi[0]['statusid']+1);
preg_match_all('{<div id="dc_wall_text">(.*?)<!-- end dc_wall_text div -->}s', $newpost, $hasil);
$sebelumnya = json_decode(file_get_contents('sebelumnya5.txt');
$d = array();
foreach($hasil[0] as $c){
$id = $this->stringBetween("<a user=",">stringBetween("<span style='font-size:12px; padding:2px;'>", "</span><br />",$c);
$statusid = $this->stringBetween("<span style=\"float:right; display:none\" id=\"loaderstatus", "\">",$c);
$status = $this->stringBetween("<img ></span>", "<!--VIEW IMAGES IF YOU UPLOAD IMAGES IN WALL-->",$c);
if ($nama){
array_push($d, array("id" => $id, "nama" => $nama, "statusid" => $statusid, "status" => trim(strip_tags($status))));
}
}
foreach($d as $l){
$statusid2[] = $l['statusid'];
$id2[] = $l['id'];
$nama2[] = $l['nama'];
$status2[] = $l['status'];
}
foreach($d as $e){
if((!in_array($e['statusid'],$sebelumnya->statusid)) && (!in_array($e['id'],$this->jangan))){
echo "[~] mencoba comment status \"".$e['nama'].": ".$e['status']."\"\n";
$komen = $this->post_comment($home,$e['statusid']);
if($komen){
echo "[+] Berhasil comment status \"".$e['nama'].": ".$e['status']."\"\n";
}else{
echo "[+] Gagal comment status \"".$e['nama'].": ".$e['status']."\"\n";
}
$this->logs('sebelumnya5.txt',json_encode(array("statusid"=>$statusid2,"uid"=>$id2,"nama"=>$nama2,"status"=>$status2)));
}
}
}
}else{
echo "Gagal Login.";
}
}
}
$bot = new dc();
$bot->username = "email@domain.com";
$bot->password = "password";
$bot->komen = "Hi, Salam Kenal\n\n-[bot comment poticous]-";
$bot->jangan = array("39869"); // list id yang jangan di komen
$bot->bot_komen();
?>
edit dibagian ini
Quote:
$bot->username = "email@domain.com";
$bot->password = "password";
$bot->komen = "Hi, Salam Kenal\n\n-[bot comment poticous]-";
$bot->jangan = array("39869"); // list id yang jangan di komen
$bot->password = "password";
$bot->komen = "Hi, Salam Kenal\n\n-[bot comment poticous]-";
$bot->jangan = array("39869"); // list id yang jangan di komen
cara gunainnya :
buka cmd terus ketik
Quote:
cd C:\xampp\php
terus ketik
Quote:
Quote:
php C:\bot.php
php C:\bot.php
Quote:
@echo off
cls
C:\xampp\php\php.exe -C namascript.php
cmd
cls
C:\xampp\php\php.exe -C namascript.php
cmd
save dengan type *.bat
masri kita jajah devilzc0de.org yang katanya forum hacker.
0
2.8K
Kutip
17
Balasan
Komentar yang asik ya
Urutan
Terbaru
Terlama
Komentar yang asik ya
Komunitas Pilihan