Silviu Posted July 27, 2013 Report Posted July 27, 2013 Salutare! Ma tot chinui pe aici sa fac un poster pentru ask.fm. Cu toate ca pare simplu nu ii dau de cap, nu am idee ce nu merge, ati incercat careva sa faceti asa ceva? Si daca da, care e smecheria? Quote
EAdrian Posted July 27, 2013 Report Posted July 27, 2013 Salutare! Ma tot chinui pe aici sa fac un poster pentru ask.fm. Cu toate ca pare simplu nu ii dau de cap, nu am idee ce nu merge, ati incercat careva sa faceti asa ceva? Si daca da, care e smecheria?D?-mi ce ai f?cut.. ?i m? uit ?i eu Quote
Zatarra Posted July 27, 2013 Report Posted July 27, 2013 (edited) <?php //Ask.FM spammer by Zatarra @ RSTforums.com $curli = curl_init(); curl_setopt($curli, CURLOPT_URL, "http://ask.fm/AnnaMariaL99"); curl_setopt($curli, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($curli, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:19.0) Gecko/20100101 Firefox/19.0"); curl_setopt($curli, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curli, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curli, CURLOPT_COOKIEJAR, "a.txt"); curl_setopt($curli, CURLOPT_COOKIEFILE, "a.txt"); curl_setopt($curli, CURLOPT_REFERER, "http://ask.fm/AnnaMariaL99"); $curlDatai = curl_exec($curli); @preg_match_all("/oken\" type=\"hidden\" value=\"(.*?)\" \/\>/",$curlDatai,$token); //echo $token[1][0]; $whatever="ask.fm Spammer By Zatarra @ RSTforums.com"; $data='authenticity_token='.urlencode($token[1][0]).'&question%5Bquestion_text%5D='.$whatever.'&authenticity_token='.urlencode($token[1][0]); $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, "http://ask.fm/AnnaMariaL99/questions/create"); curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:19.0) Gecko/20100101 Firefox/19.0"); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_POSTFIELDS, $data); curl_setopt($curl, CURLOPT_COOKIEFILE, "a.txt"); curl_setopt($curl, CURLOPT_REFERER, "http://ask.fm/AnnaMariaL99"); $curlData = curl_exec($curl);?>Folositi-l cu cap. Va pup pa pa Edited July 27, 2013 by Zatarra 1 Quote
7H3PRO Posted July 27, 2013 Report Posted July 27, 2013 Chiar ma saturasem de astia care cersesc intrebari pe ask.fm Quote
Zatarra Posted July 27, 2013 Report Posted July 27, 2013 Nu prea po?i face spam...La cate intrebari ti-a aparut? Quote
EAdrian Posted July 27, 2013 Report Posted July 27, 2013 La cate intrebari ti-a aparut?în jur de 20 de întreb?ri Quote
Zatarra Posted July 27, 2013 Report Posted July 27, 2013 Nasol, incearca sa adaugi o lista de proxy-uri si foloseste proxy la curl. Daca tot asa da (ceea ce nu cred) e naspa. Daca nu da inseamna ca poti sa faci doar 20 de requesturi / ip. Quote
EAdrian Posted July 27, 2013 Report Posted July 27, 2013 (edited) Nasol, incearca sa adaugi o lista de proxy-uri si foloseste proxy la curl. Daca tot asa da (ceea ce nu cred) e naspa. Daca nu da inseamna ca poti sa faci doar 20 de requesturi / ip.Am testat acum10 requests per IP indiferent de contul pe care vrei s? postezi întrebareaLE: cu proxy... Edited July 27, 2013 by EAdrian Quote
Zatarra Posted July 27, 2013 Report Posted July 27, 2013 Incercati un sleep de 61 de secunde intre requesturi daca nu merge 61 incercati 301 sau 601 Quote
Silviu Posted July 27, 2013 Author Report Posted July 27, 2013 Din ce am calculat eu, la aproximativ 5 minute se ridica timpul, adica 300 secunde, sau 301 pentru marja de eroare cum zice Zatarra! Quote
Zatarra Posted July 27, 2013 Report Posted July 27, 2013 Nu e marja de eroare, e protection bypass. Daca protectia este 300 de secunde si tu iti setezi sleep-ul la 300 de secunde ai sanse sa fi blocat la primul request, modiv pentru care setezi 301 secunde. Quote
EAdrian Posted July 27, 2013 Report Posted July 27, 2013 si in a.txt punem noi cookie?Nu, acolo se salveaz? ele...PS. Dar aici(pe ask.fm) nu este necesar Quote
Maximus Posted July 27, 2013 Report Posted July 27, 2013 si in a.txt punem noi cookie?acolo sunt stocate cookie-urile din curl. nu le pui tu, le stocheaza el Quote
alinh0 Posted July 27, 2013 Report Posted July 27, 2013 Mie nu-mi merge pe xampp si am curl activat.Nu vad niciun mesaj postat. Quote
Silviu Posted July 27, 2013 Author Report Posted July 27, 2013 <?phpif($_COOKIE["acum"]!="ok" && isset($url)){setcookie("urmatoarea", "ok", time()+320);}else{setcookie("acum", "ok", time()+10);}print_r($_COOKIE);?><title>ASK.fm PHP Spammer</title><center><form method="get">URL: <input type="text" name="url"></br>Mesaj: <input type="text" name="mesaj"></br><input type="submit" value="Trimite"></form><script>function maiHo() { window.history.back() }</script><input type="button" value="STOP" onclick="maiHo()"></center><?php//v1.0 Ask.FM spammer by Zatarra @ RSTforums.com//v1.1 - modified by silvian0$url=$_GET["url"];$mesaj=$_GET["mesaj"];$rand=rand(88343,9999999);$mesaj="$mesaj $rand ?";if(isset($url)){echo '<script type="text/JavaScript"><!--function AutoRefresh( t ) { setTimeout("location.reload(true);", t);}// --></script></head>';if($_COOKIE["acum"]=="ok" || $_COOKIE["urmatoarea"]!="ok")echo '<body onload="JavaScript:AutoRefresh(1000);">'; function curl($url) { $curli = curl_init(); curl_setopt($curli, CURLOPT_URL, "$url"); curl_setopt($curli, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($curli, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:19.0) Gecko/20100101 Firefox/19.0"); curl_setopt($curli, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curli, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curli, CURLOPT_COOKIEJAR, "cookies.txt"); curl_setopt($curli, CURLOPT_COOKIEFILE, "cookies.txt"); curl_setopt($curli, CURLOPT_REFERER, "$url"); $curlDatai = curl_exec($curli); return $curlDatai; } $raspuns=curl($url); @preg_match_all("/oken\" type=\"hidden\" value=\"(.*?)\" \/\>/",$raspuns,$token); $data='authenticity_token='.urlencode($token[1][0]).'&question%5Bquestion_text%5D='.$mesaj.'&authenticity_token='.urlencode($token[1][0]); $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, "$url/questions/create"); curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:19.0) Gecko/20100101 Firefox/19.0"); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_POSTFIELDS, $data); curl_setopt($curl, CURLOPT_COOKIEFILE, "cookies.txt"); curl_setopt($curl, CURLOPT_REFERER, "$url"); $curlData = curl_exec($curl);}?>Am incercat sa fac ca dupa 10 request-uri sa mai faca iarasi peste 310 secunde, cu cookies, dar nu prea am inspiratie la ora asta, jucati-va si postati aici daca v-a iesit. Quote