jigsy18 Posted September 4, 2010 Report Posted September 4, 2010 Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/hosting/localhost/spam.php on line 20<?phpset_time_limit(0);$USER = 'yaaaaa';$PASS = 'faasxanaas!';$COMMENTS = array('cananm')//Login pe filelist.ro$ch = curl_init();curl_setopt($ch, CURLOPT_URL, "http://filelist.ro/takelogin.php");curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookies.txt');curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookies.txt');curl_setopt($ch, CURLOPT_POST, true);curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1");$date = array($username' = 'yaaaaa' ,$password' => 'faasxanaas');curl_setopt($ch, CURLOPT_POSTFIELDS, $date);$output = curl_exec($ch);curl_close($ch);//Ia sursa RSS$ch = curl_init();curl_setopt($ch, CURLOPT_URL, "http://filelist.ro/rss.php");curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookies.txt');curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookies.txt');curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1");$rss = curl_exec($ch);curl_close($ch);$rss = str_replace("<link>http://filelist.ro/</link>","",$rss);$ids = array();while (substr_count($rss, '<link>') > 0) {$link = substr($rss,strpos($rss,'<link>') + 6,strpos($rss,'</link>')-(strpos($rss,'<link>') + 6));$single = str_replace("http://filelist.ro/details.php?id=","",str_replace("&hit=1","",$l ink));array_push($ids,$single);$rss = str_replace('<link>' . $link . '</link>','',$rss);}foreach ($ids as $id) {$ch = curl_init();curl_setopt($ch, CURLOPT_URL, "http://filelist.ro/comment.php?action=add&tid=$id");curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookies.txt');curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookies.txt');curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1");$valsrc = curl_exec($ch);curl_close($ch);$pos1 = strpos($valsrc,'<input type="hidden" name="validator" value="') + 45;$pos2 = strpos($valsrc,'"/>',$pos1);$validator = substr($valsrc,$pos1,$pos2-$pos1);$rnd = rand(0,count($COMMENTS) - 1);$comtext = $COMMENTS[$rnd];//Posteaza comment-ul, random$ch = curl_init();curl_setopt($ch, CURLOPT_URL, "http://filelist.ro/comment.php?action=add");curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookies.txt');curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookies.txt');curl_setopt($ch, CURLOPT_POST, true);curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1");$date = array('tid' => $id,'text' => $comtext,'validator' => $validator);curl_setopt($ch, CURLOPT_POSTFIELDS, $date);$output = curl_exec($ch);curl_close($ch);}echo 'Sent.';?>Stie cineva ce problema este?Ps: mai exista Spammer Filelist?
Nytro Posted September 4, 2010 Report Posted September 4, 2010 Nu e problema HTML, e problema PHP.Probabil a fost uitata o paranteza e inchidere, sau poate niste ghilimele sau punctul si virgula.
cigraphics Posted September 4, 2010 Report Posted September 4, 2010 ce am vazut asa ca imi e lene sa bag codu in editor sa vad liniile o eroare e aici: $COMMENTS = array('cananm') trebuie asa $COMMENTS = array('cananm');
em Posted September 4, 2010 Report Posted September 4, 2010 Sunt deja la a 5-a eroare.Acum e una pe linia 39 (str_replace are doar 3 parametri). Nu pot corecta ca nu imi dau seama ce ai vrut sa faci.<?phpset_time_limit(0);$USER = 'yaaaaa';$PASS = 'faasxanaas!';$COMMENTS = array('cananm');//Login pe filelist.ro$ch = curl_init();curl_setopt($ch, CURLOPT_URL, "http://filelist.ro/takelogin.php");curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookies.txt');curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookies.txt');curl_setopt($ch, CURLOPT_POST, true);curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1");$date = array('username' => 'yaaaaa' ,'password' => 'faasxanaas');curl_setopt($ch, CURLOPT_POSTFIELDS, $date);$output = curl_exec($ch);curl_close($ch);//Ia sursa RSS$ch = curl_init();curl_setopt($ch, CURLOPT_URL, "http://filelist.ro/rss.php");curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookies.txt');curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookies.txt');curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1");$rss = curl_exec($ch);curl_close($ch);$rss = str_replace("<link>http://filelist.ro/</link>","",$rss);$ids = array();while (substr_count($rss, '<link>') > 0) {$link = substr($rss,strpos($rss,'<link>') + 6,strpos($rss,'</link>')-(strpos($rss,'<link>') + 6));$single = str_replace("http://filelist.ro/details.php?id=","",str_replace("&hit=1","",$l ink));array_push($ids,$single);$rss = str_replace('<link>' . $link . '</link>','',$rss);}foreach ($ids as $id) {$ch = curl_init();curl_setopt($ch, CURLOPT_URL, "http://filelist.ro/comment.php?action=add&tid=$id");curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookies.txt');curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookies.txt');curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1");$valsrc = curl_exec($ch);curl_close($ch);$pos1 = strpos($valsrc,'<input type="hidden" name="validator" value="') + 45;$pos2 = strpos($valsrc,'"/>',$pos1);$validator = substr($valsrc,$pos1,$pos2-$pos1);$rnd = rand(0,count($COMMENTS) - 1);$comtext = $COMMENTS[$rnd];//Posteaza comment-ul, random$ch = curl_init();curl_setopt($ch, CURLOPT_URL, "http://filelist.ro/comment.php?action=add");curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookies.txt');curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookies.txt');curl_setopt($ch, CURLOPT_POST, true);curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1");$date = array('tid' => $id,'text' => $comtext,'validator' => $validator);curl_setopt($ch, CURLOPT_POSTFIELDS, $date);$output = curl_exec($ch);curl_close($ch);}echo 'Sent.';?>
sado Posted September 4, 2010 Report Posted September 4, 2010 Lool ,cineva de pe rst a postat acest script si la facut special cu greseli anti booti? dece va apucai sa corectati greselile acum:))?wtf
begood Posted September 4, 2010 Report Posted September 4, 2010 Lool ,cineva de pe rst a postat acest script si la facut special cu greseli anti booti? dece va apucai sa corectati greselile acum:))?wtfde cacat, n-au obraz.banned