Berbagi Artikel-Artikel Unik Dan Bermutu

Blog Archive

Copyright © 2015 Artikel TopNews | . Powered by Blogger.

Labels

ads3

tag

Top Artikel

ads2

ads

iklan

Script Refresh Cookie Simsimi untuk Bot Comment


Cookie simsimi bisa diambil di web resminya. tpi gak selamanya aktif. jdi hrus ambil cookie lgi di webnya :p. Biar gak susah2 ambil manual, mending pke script aja untuk refresh cookie-nya.

<?php
function curl($url){
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (X11; Linux i686) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.52 Safari/536.5");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$exec = curl_exec($ch);
curl_close($ch);
return $exec;
}
function ambil($start, $end, $var){
return preg_match("{".preg_quote($start)."(.*?)".preg_quote($end)."}is", $var, $m) ? $m[1] : null;

}
$url="http://www.simsimi.com/func/register";
$exec=curl($url);
$cookie=trim(ambil("Set-Cookie:", "Path=/; HttpOnly", $exec));
$uid=ambil("{"uid":", ","result"", $exec);
$gay=$cookie." simsimi_uid={$uid}; simsimi_uid={$uid};";
$fp = fopen("cookie_simi.txt", 'w') or die ("gay");
fwrite($fp, $gay);
fclose($fp);
echo $gay;
?>
ntar cookienya otomatis kesimpen di file cookie_simi.txt. nih script bot comment/like pke respon simsimi
0 Komentar untuk "Script Refresh Cookie Simsimi untuk Bot Comment "
Back To Top