Script PHP Auto Submit Social Bookmark Lokal


script php auto submit social bookmark lokal

saya akan memberikan sedikit sebuah script php untuk auto submit social bookmark lokal indonesia (sample script ini hanya untuk social bookmark http://debuk.com/).
Namun perlu diketahui juga bahwa script ini di khususkan untuk newbie seperti saya, alasannya karna script ini sangat sederhana dan sangat jauh bila dibanding dengan software submit-submitan yang lainnya…

tanpa panjang lebar lagi,,  mari kita coba script ini..

  • pertama anda mendaftar terlebih dahulu ke http://debuk.com/
  • install xampp, pastikan curl enable.
  • copy script dibawah ini..

<?
#########VB CURL AUTO COMMENT POSTER###########################
# comments , questions or help email: ted – xop32@hotmail.com #
###############################################################

# Initialization
include(“LIB_parse.php”); // parse library
include(‘phpSEO.php’);//auto keyword, deskripsi

$post_site = “”; //site social bookmark local
$feed=””; //xml site anda

$post_name = “”; //username
$post_pass = “”; //password

$proxy=””;//proxy

#start get feed xml
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $feed);

curl_setopt($ch, CURLOPT_PROXY, $proxy);
curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 1);

curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_USERAGENT, $useragent);

$rss = curl_exec($ch);

// Manipulate string into object
$doc = simplexml_load_string($rss);

if(isset($doc->channel))
{
$url = $doc->channel->item[0]->link;
$title = $doc->channel->item[0]->title;
$desc = $doc->channel->item[0]->description;
}
if(isset($doc->entry))
{
$urlAtt = $doc->entry->link[0]->attributes();
$url = $urlAtt[‘href’];
$title = $doc->entry->title;
$desc = strip_tags($doc->entry->content);
}

$url = $url;
$title = $title;

$seo = new phpSEO($desc);
$keywords = $seo->getKeyWords(3);
$desc = $seo->getMetaDescription(150);

$body = $desc.” [read more]”;

$taxonomy_1 = “7”;
$taxonomy_2 = $keywords;

$target1 = $post_site . “/user/login”;
$Ch1 = curl_init();
curl_setopt ($Ch1, CURLOPT_COOKIEJAR, ‘C:\Program Files\xampp\htdocs\autosocial\cookies.txt’); //cookies.txt
curl_setopt ($Ch1, CURLOPT_COOKIEFILE, ‘C:\Program Files\xampp\htdocs\autosocial\cookies.txt’); //cookies.txt
curl_setopt ($Ch1, CURLOPT_URL, $target1);

curl_setopt($Ch1, CURLOPT_PROXY, $proxy);
curl_setopt($Ch1, CURLOPT_HTTPPROXYTUNNEL, 1);
curl_setopt($Ch1, CURLOPT_CONNECTTIMEOUT, 1);

curl_setopt ($Ch1, CURLOPT_HEADER, 0);
curl_setopt ($Ch1, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($Ch1, CURLOPT_FOLLOWLOCATION, 1);
//curl_close($Ch);
//$result= curl_exec ($Ch);
//curl_close ($Ch);
//print $result;
$gotPage1 = curl_exec ($Ch1);

#parse the hidden tags form download page

$form_id_tag1 = return_between ( $string = $gotPage1 , $start =”<input type=\”hidden\” name=\”form_id\””, $end = ” />”, $type = EXCL );
$form_id1 = str_replace(“\””, “”, $form_id_tag1);
$form_id1 = str_replace(“value=”, “”, $form_id1);
$form_id1=explode(” “,$form_id1);

$form_build_id_tag1 = return_between ( $string = $gotPage1 , $start =”<input type=\”hidden\” name=\”form_build_id\””, $end = ” />”, $type = EXCL );
$form_build_id1 = str_replace(“\””, “”, $form_build_id_tag1);
$form_build_id1 = str_replace(“value=”, “”, $form_build_id1);
$form_build_id1=explode(” “,$form_build_id1);

$targetlogin = $post_site.”/user/login”;

$action1=’name=’.$post_name.’&pass=’.$post_pass.’&form_build_id=’.$form_build_id1[2].’&form_id=’.$form_id1[2];

$ch = curl_init();

curl_setopt($ch, CURLOPT_COOKIEJAR, ‘C:\Program Files\xampp\htdocs\autosocial\cookies.txt’); //cookies.txt
curl_setopt($ch, CURLOPT_COOKIEFILE, ‘C:\Program Files\xampp\htdocs\autosocial\cookies.txt’); //cookies.txt
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, 1);

// Hit the login page to authenticate
curl_setopt($ch, CURLOPT_URL,$targetlogin);

curl_setopt($ch, CURLOPT_PROXY, $proxy);
curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 1);

curl_setopt($ch, CURLOPT_POSTFIELDS, $action1);

curl_exec($ch);

$target2 = $post_site . “/submit”;
$Ch2 = curl_init();
curl_setopt ($Ch2, CURLOPT_COOKIEJAR, ‘C:\Program Files\xampp\htdocs\autosocial\cookies.txt’); //cookies.txt
curl_setopt ($Ch2, CURLOPT_COOKIEFILE, ‘C:\Program Files\xampp\htdocs\autosocial\cookies.txt’); //cookies.txt
curl_setopt ($Ch2, CURLOPT_URL, $target2);

curl_setopt($Ch2, CURLOPT_PROXY, $proxy);
curl_setopt($Ch2, CURLOPT_HTTPPROXYTUNNEL, 1);
curl_setopt($Ch2, CURLOPT_CONNECTTIMEOUT, 1);

curl_setopt ($Ch2, CURLOPT_HEADER, 0);
curl_setopt ($Ch2, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($Ch2, CURLOPT_FOLLOWLOCATION, 1);
//curl_close($Ch);
//$result= curl_exec ($Ch);
//curl_close ($Ch);
//print $result;
$gotPage2 = curl_exec ($Ch2);

#parse the hidden tags form download page

$changed_tag2 = return_between ( $string = $gotPage2 , $start =”<input type=\”hidden\” name=\”changed\””, $end = ” />”, $type = EXCL );
$changed2 = str_replace(“\””, “”, $changed_tag2);
$changed2 = str_replace(“value=”, “”, $changed2);
$changed2 = explode(” “,$changed2);

$form_token_tag2 = return_between ( $string = $gotPage2 , $start =”<input type=\”hidden\” name=\”form_token\””, $end = ” />”, $type = EXCL );
$form_token2 = str_replace(“\””, “”, $form_token_tag2);
$form_token2 = str_replace(“value=”, “”, $form_token2);
$form_token2 = explode(” “,$form_token2);

$form_id_tag2 = return_between ( $string = $gotPage2 , $start =”<input type=\”hidden\” name=\”form_id\””, $end = ” />”, $type = EXCL );
$form_id2 = str_replace(“\””, “”, $form_id_tag2);
$form_id2 = str_replace(“value=”, “”, $form_id2);
$form_id2 = explode(” “,$form_id2);

$form_build_id_tag2 = return_between ( $string = $gotPage2 , $start =”<input type=\”hidden\” name=\”form_build_id\””, $end = ” />”, $type = EXCL );
$form_build_id2 = str_replace(“\””, “”, $form_build_id_tag2);
$form_build_id2 = str_replace(“value=”, “”, $form_build_id2);
$form_build_id2 = explode(” “,$form_build_id2);
/*
preg_match(‘/name=\’changed\’ value=\'(.+?)\’/’, $gotPage, $changed);
preg_match(‘/name=\’form_token\’ value=\'(.+?)\’/’, $gotPage, $form_token);
preg_match(‘/name=\’form_build_id\’ value=\'(.+?)\’/’, $gotPage, $form_build_id);
preg_match(‘/name=\’form_id\’ value=\'(.+?)\’/’, $gotPage, $form_id);
*/
$action2=’url=’.$url.’&title=’.$title.’&body=’.$body.’&taxonomy[1]=’.$taxonomy_1.’&taxonomy[tags][2]=’.$taxonomy_2.’&changed=’.$changed2[2].’&form_token=’.$form_token2[2].’&form_build_id=’.$form_build_id2[2].’&form_id=’.$form_id2[2].’&op=Kirim!’;

// Now hit the posting page to post the event
$ptarget = $post_site . “/submit”;
$ch = curl_init();
curl_setopt ($ch, CURLOPT_COOKIEJAR, ‘C:\Program Files\xampp\htdocs\autosocial\cookies.txt’); //cookies.txt
curl_setopt ($ch, CURLOPT_COOKIEFILE, ‘C:\Program Files\xampp\htdocs\autosocial\cookies.txt’); //cookies.txt
curl_setopt ($ch, CURLOPT_URL, $ptarget);

curl_setopt($ch, CURLOPT_PROXY, $proxy);
curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 1);

curl_setopt ($ch, CURLOPT_POSTFIELDS, $action2);
curl_setopt ($ch, CURLOPT_HEADER, 0);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, 1);
//curl_exec($ch);
$result= curl_exec ($ch);
$error=curl_error($ch);

?>

source code sumber: http://www.blackhatworld.com/blackhat-seo/black-hat-seo-tools/32706-random-vbulltien-php-curl-auto-poster.html

Bagaimana, gampang bukan?

Anda dapat  buat sendiri auto submit ke social bookmark yang lainnya,,
seperti:

Lakukan cara ini dengan benar, jika tidak akan dianggap SPAM  oleh si mbah GOOGLE. Selamat mencoba.

salam,

surya wijaya
newbie programmer

Iklan

Satu pemikiran pada “Script PHP Auto Submit Social Bookmark Lokal

Tinggalkan Balasan

Please log in using one of these methods to post your comment:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s