Jump to content
Dra3Q

Help php

Recommended Posts

Posted

<?php

set_time_limit(0);

//Filelist comment spammer by Fitty@RST

//Date login si textul comentariului

$USER = 'xxx';

$PASS = 'xxx';

$COMMENTS = array('SEFU TAU');

//Login pe filelist.ro

$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, "http://localhost/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' => $USER,

'password' => $PASS

);

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://localhost/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);

//Prelucreaza sursa RSS

$rss = str_replace("<link>http://localhost</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://localhost/details.php?id=","",str_replace("&hit=1","",$link));

array_push($ids,$single);

$rss = str_replace('<link>' . $link . '</link>','',$rss);

}

//Trimite comment random la fiecare

foreach ($ids as $id) {

//Ia validatorul

$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, "http://localhost/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://localhost/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.';

?>

cum pot face sa-l modific sa posteze la mai mult de 15 torrente?

Dau 1 cont orange

Posted (edited)

A fost mult ca a spus unul, acum incepeti toti.

Stai ma cuminte, mai ales daca nu te pricepi si vezi-ti de treaba ta - acum hai sa inceapa fiecare sa puna malware pe filelist...

Edited by ROFL
Posted
A fost mult ca a spus unu', acum incepeti toti.

Stai ma cuminte, mai ales daca nu te pricepi si vezi-ti de treaba ta - acum hai sa inceapa fiecare sa puna malware pe filelist...

Eu am postat daca vrea careva sa ma ajute bine daca nu iarasi bine fara suparare.

1. Eu nu sunt toti

2. De unde sti ca punem toti malware si nu altceva?

3. Omu e bun dar cand va da si nu va cere

4. Multa bafta in continuare

5. Rog un admin sa stearga postul pt ca gasesc frustrati pe aici

Posted

5. Rog un admin sa stearga postul pt ca gasesc frustrati pe aici

Wish granted!

Dar asta numai din cauza ca ai postat de-aiurea la offtopic cat timp exista sectiunile "ajutor" si "cereri"!

Posted (edited)

Ala e scriptul facut de mine, de unde il ai? :))

Torrentele la care posteaza sunt luate din RSS-ul Filelist (ultimele 15 postate).

Edited by Fitty

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...