АРМАДА
Реф спамер на php. Даже два.
Новая тема Написать ответ Advanced Hosters - профессиональный хостинг

IseeDeadPeople
Объединенная Электрическая
Зарегистрирован: 06.12.2005
Сообщений: 21230
Обратиться по нику
# Добавлено:Сб Янв 20, 2024 4:25 pmДобавить в избранноеОтветить с цитатой
Код:
<?php

// fi.txt / fi.php


if (!function_exists('str_contains')) {
    function str_contains($haystack, $needle) {
        return $needle !== '' && strpos($haystack, $needle) !== false;
    }
}

//error_reporting(E_ALL);
error_reporting(0);

$rlinks = array(""); // not use in this version

clearstatcache();
function mcmx() { clearstatcache(); }


$d = "/f/";
// $d = ""; - такое d при отладке
// /usr/local/bin/php /home/hh067997/rss.sexyboyspros.ru/index2.php >/dev/null 2>&1
// setup d = /home/hh067997/rss.sexyboyspros.ru/


/*$sreport = 0;
if (file_exists($d."cdfi.txt")) {
$mcdrc = file_get_contents($d."cdfi.txt");
if (date("Ymd") == $mcdrc) { $sreport = 0; } else { $sreport = 1; }
} else {
$sreport = 1;
}
if ($sreport == 1) { file_put_contents($d."cdfi.txt", date("Ymd")); $none = file_get_contents("http://vds.sexyboyspros.ru/?skey=RUVDS-Q-2fi--".date("Y-m-d--H:i:s")); }
*/



if (function_exists('pcntl_fork')) {

file_put_contents($d."run.txt", date("Y m d - H:i:s")." - F: run-ok ");

for ($x = 1; $x < 5; $x++) { pcntl_fork(); }
} else {

file_put_contents($d."run.txt", date("Y m d - H:i:s")." - F: no fork function -- work in one process ");
//exit();
}


$log = "";
$logi = 1;

for ($i = 1; $i <= 30; $i++) {

// shuffle($rlinks);
// $setref = $rlinks[0];
//$setref = "https://tinyurl.com/VideoCamPleasure";
$setref = "https://clck.ru/372HCr";

$url = "http://".mt_rand(1, 255).".".mt_rand(1, 255).".".mt_rand(1, 255).".".mt_rand(1, 255)."/";

$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/5.0 (Connect; X) Firefox/7.X");
  curl_setopt($curl, CURLOPT_REFERER, $setref);
  curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt($curl, CURLOPT_TIMEOUT, 7);
  curl_setopt($curl, CURLOPT_FOLLOWLOCATION,true);

  $html = curl_exec($curl);
  curl_close($curl);

//echo "url: ".$logi." - requested: ".$url." (".$setref.") get ".strlen($html)." bytes\n";

$log = $log.date("Y m d - H:i:s")." - url: ".$logi." - requested: ".$url." (".$setref.") get ".strlen($html)." bytes\n"; $logi++;

}


file_put_contents($d."pony2.txt", date("Y m d - H:i:s")."\nLast url: ".$url."\n\nLog: \n".$log);


?>



Код:
<?php

$scriptstampname = "ruvds3";


if (!function_exists('str_contains')) {
    function str_contains($haystack, $needle) {
        return $needle !== '' && strpos($haystack, $needle) !== false;
    }
}

//error_reporting(E_ALL);
error_reporting(0);

$rlinks = array("https://secure.creampie-angels.com/gallery/MzAxODgyLjUuMzAuMzAuMC43OTg0NS4wLjAuMA", "http://tinyurl.com/4eszc8hm", "http://campros.ru", "https://t.me/itslivecam", "https://t.me/dddruw", "https://bit.ly/chatwgirls", "https://t.me/brunvideo", "https://vxcsh.com/1/52564/", "https://t.whalehunter.cash/track/ODQ5MC4xNzYwNS4yOS41NS4wLjAuMC4wLjAuMC4wLjA", "https://clck.ru/35sVb9", "http://cam4com.go2cloud.org/SH9J", "http://blogscollectx.ru", "https://clck.ru/372HCr");

clearstatcache();
function mcmx() { clearstatcache(); }

function mfy() {
// тут только на тест взять первые 7 стр с яндекса
// https://yandex.ru/search/?text=%D0%BF%D0%BE%D0%BD%D0%B8&p=1

 $tmp = file_get_contents("https://yandex.ru/search/?text=%22Generated+by+Webalizer+Version+2.01%22&p=1").file_get_contents("https://yandex.ru/s­earch/?text=%22Generated+by+Webalizer+Version+2.01%22&p=2").file_get_contents("https://yandex.ru/search/?text=%22Generated+by+Webalizer+Version+2.01%­22&p=3").file_get_contents("https://yandex.ru/search/?text=%22Generated+by+Webalizer+Version+2.01%22&p=4").file_get_contents("h­ttps://yandex.ru/search/?text=%22Generated+by+Webalizer+Version+2.01%22&p=5").file_get_contents("https://yandex.ru/search/?text=%22Generated+by+W­ebalizer+Version+2.01%22&p=6").file_get_contents("https://yandex.ru/search/?text=%22Generated+by+Webalizer+Version+2.01%22&p=7");

// $tmp = file_get_contents("https://thehun.net/?page=5&date=2023-09-22");
// echo $tmp;

$save = "";
$regexp = "<a\s[^>]*href=(\"??)([^\" >]*?)\\1[^>]*>(.*)<\/a>";
if (preg_match_all("/$regexp/siU", $tmp, $y)) {
for ($i=0;$i<=500;$i++) {
$yes = $y[2][$i];
// echo "\n".$yes." to ";
if (strlen($yes) > 7) {
if (substr($yes, 0, 4) == "http") {

$ta = explode("/", $yes);
$yes = $ta[2];

$addorno = 1;

if (str_contains($yes, "blogger")) { $addorno = 0; }
if (str_contains($yes, "blogspot")) { $addorno = 0; }
if (str_contains($yes, "ya.")) { $addorno = 0; }
if (str_contains($yes, "yandex")) { $addorno = 0; } 
if (str_contains($yes, "google")) { $addorno = 0; } 
if (str_contains($yes, "dzen")) { $addorno = 0; } 
if (str_contains($yes, "bing")) { $addorno = 0; }
if (str_contains($yes, "tube")) { $addorno = 0; }
if (str_contains($yes, "webalizer.")) { $addorno = 0; }

if ($addorno == 1) {

$save = $save."http://".$yes."/,"."https://".$yes."/,";

}

}
}
}

} else { $none = "no yandex preg"; }

$save = substr($save,0,-1);
return $save;
}


$d = "/f/";
// $d = ""; - такое d при отладке
// /usr/local/bin/php /home/hh067997/rss.sexyboyspros.ru/index2.php >/dev/null 2>&1
// setup d = /home/hh067997/rss.sexyboyspros.ru/

// Generated by Webalizer Version 2.01
// https://www.google.com/search?q=%22Generated+by+Webalizer+Version+2.01%22&num=100
// https://www.google.ie/search?q=google+search+parameters&num=100&start=100
// &start=100
// &start=200
// &start=300
// &start=400
// &start=500
// &start=600
// &start=700

// пробуем получить 100 первых ссылок с гугля. Только одна попытка!

function mfg($start) {
if ($start == 0) { $grl = "https://www.google.com/search?q=%22Generated+by+Webalizer+Version+2.01%22&num=100"; } else { $grl = "https://www.google.com/search?q=%22Generated+by+Webalizer+Version+2.01%22&num=100&start=".$start; }
if (preg_match_all('#(?:https?)://[^\s\'\"\/]+#i', file_get_contents($grl), $matches)) {
$save = "";
for ($i=0;$i<=500;$i++) {
// echo $matches[0][$i]."\n";
$es = $matches[0][$i];
$find = 0;
if (str_contains($es, 'webalizer.') || str_contains($es, 'yandex') || str_contains($es, 'ya.') || str_contains($es, 'google') || str_contains($es, 'bing') || str_contains($es, 'tube')) { $find = 1; }
if (strlen($es) > 7 && $find == 0) {
// echo "g (start=".$start."): ".$es." - ".$i." - comment after debug\n";
$save = $save.$es."/,";
}
}
}
$save = substr($save,0,-1);
return $save;
}


function mfga() {
$grl = "https://www.google.com/search?q=%22Generated+by+Webalizer+Version+2.01%22&num=100";

if (preg_match_all('#(?:https?)://[^\s\'\"\/]+#i', file_get_contents($grl).file_get_contents("https://www.google.com/search?q=%22Generated+by+Webalizer+Version+2.01%22&num=100&start=100").­file_get_contents("https://www.google.com/search?q=%22Generated+by+Webalizer+Version+2.01%22&num=100&start=200").file_get_contents("http­s://www.google.com/search?q=%22Generated+by+Webalizer+Version+2.01%22&num=100&start=300").file_get_contents("https://www.google.com/search?q=­%22Generated+by+Webalizer+Version+2.01%22&num=100&start=400").file_get_contents("https://www.google.com/search?q=%22Generated+by+Webalizer+Versio­n+2.01%22&num=100&start=500"), $matches)) {
$save = "";
for ($i=0;$i<=15000;$i++) {
// echo $matches[0][$i]."\n";
$es = $matches[0][$i];
$find = 0;
if (str_contains($es, 'blogger') || str_contains($es, 'blogspot') || str_contains($es, 'webalizer.') || str_contains($es, 'yandex') || str_contains($es, 'ya.') || str_contains($es, 'google') || str_contains($es, 'bing') || str_contains($es, 'tube')) { $find = 1; }
if (strlen($es) > 7 && $find == 0) {
// echo "g (start=".$start."): ".$es." - ".$i." - comment after debug\n";
$save = $save.$es."/,";
}
}
}
$save = substr($save,0,-1);
return $save;
}




/*
$sreport = 0;
if (file_exists($d."cd.txt")) {
$mcdrc = file_get_contents($d."cd.txt");
if (date("Ymd") == $mcdrc) { $sreport = 0; } else { $sreport = 1; }
} else {
$sreport = 1;
}
if ($sreport == 1) { file_put_contents($d."cd.txt", date("Ymd")); $none = file_get_contents("http://vds.sexyboyspros.ru/?skey=".$scriptstampname."--".date("Y-m-d--H:i:s")); }
*/


$parseall = 0;
if (file_exists($d."b0.txt")) { $none = "none"; $b1t = filemtime($d."b0.txt"); } else { $parseall = 1; $b1t = 0; }
$b1t = 0;
if (file_exists($d."b0d10.txt")) { $b1t = file_get_contents($d."b0d10.txt"); }

$chtim = time() - $b1t;
if ($chtim > 864000) { $parseall = 1; }

if ($parseall == 1) {
file_put_contents($d."b0d10.txt", time());
$save = mfga();
$savey = mfy();
$savecheck = 0;
if (substr($save, 0, 4) == "http") { $savecheck = 1; }
if (substr($savey, 0, 4) == "http") { $savecheck = 1; }
if (strlen($save.$savey) > 35 && $savecheck == 1) {
if (file_exists($d."b0.txt")) { $lastbc = file_get_contents($d."b0.txt"); file_put_contents($d."b0.txt", $save.",".$savey.",".$lastbc); } else { file_put_contents($d."b0.txt", $save.",".$savey); }
}
}


/*
if (file_exists($d."b0.txt")) { $none = "none"; } else {

// каждый раз спарсить базу в б1 и яндекс
$save = mfg(0); file_put_contents($d."b0-log.txt", $save);
$savey = mfy();
$savecheck = 0;
if (substr($save, 0, 4) == "http") { $savecheck = 1; }
if (substr($savey, 0, 4) == "http") { $savecheck = 1; }
if (strlen($save.$savey) > 35 && $savecheck == 1) {
file_put_contents($d."b0.txt", $save.",".$savey);
}

}
mcmx();

$currfilenof = 0;
if (file_exists($d."b0.txt")) { $currfilenof = 1; } mcmx();

if (file_exists($d."b0.txt")) { $b1t = filemtime($d."b0.txt"); } else { $b1t = 0; } mcmx();
if (date("j") == 1 && ((time() - $b1t > 864000) || ($currfilenof == 0))) {

// парсим гугль 100 строк (? и яндекс если б=1) и сохраняем бX
$save = mfg(0); file_put_contents($d."b0-log.txt", $save);
$savey = mfy();
$savecheck = 0;
if (substr($save, 0, 4) == "http") { $savecheck = 1; }
if (substr($savey, 0, 4) == "http") { $savecheck = 1; }
if (strlen($save.$savey) > 35 && $savecheck == 1) {
$lastbc = ""; if (file_exists($d."b0.txt")) { $lastbc = file_get_contents($d."b0.txt"); } mcmx();
file_put_contents($d."b0.txt", $save.",".$savey.",".$lastbc);
}

}

// теперь чисто гугль базу с i от 1 до 7
for ($i = 1; $i <= 7; $i++) {

$currfilenof = 0;
if (file_exists($d."b".$i.".txt")) { $currfilenof = 1; } mcmx();

if (file_exists($d."b".$i.".txt")) { $b1t = filemtime($d."b".$i.".txt"); } else { $b1t = 0; } mcmx();
$daytwo = $i+1;
if (date("j") == $daytwo && ((time() - $b1t > 864000) || ($currfilenof == 0))) {

// парсим гугль 100 строк (? и яндекс если б=1) и сохраняем бX
$save = mfg($i*100);
$savecheck = 0;
if (substr($save, 0, 4) == "http") { $savecheck = 1; }
if (strlen($save) > 35 && $savecheck == 1) {
$lastbc = ""; if (file_exists($d."b".$i.".txt")) { $lastbc = file_get_contents($d."b".$i.".txt"); } mcmx();
file_put_contents($d."b".$i.".txt", $save.",".$lastbc);
}
}
}
*/


$tryopenfile = $d."b0.txt";
$fc = file_get_contents($tryopenfile);

for ($i = 1; $i <= 7; $i++) {
if (file_exists($d."b".$i.".txt") && filesize($d."b".$i.".txt") > 7) { $fc = $fc.",".file_get_contents($d."b".$i.".txt"); } mcmx();
}

if (strlen($fc) < 35) { file_put_contents($d."pony2.txt", "no data in files (<<35 bytes) - script stop"); exit(); }

// echo "no errors with base file. Opened all, bytes ".strlen($fc)."\n";

$a = explode(",", $fc);


if (function_exists('pcntl_fork')) {

file_put_contents($d."run.txt", date("Y m d - H:i:s")." - F: run-ok ");

for ($x = 1; $x < 3; $x++) { pcntl_fork(); }
} else {

file_put_contents($d."run.txt", date("Y m d - H:i:s")." - F: no fork function -- work in one process ");
//exit();
}


$log = "";
$logi = 1;

for ($i = 1; $i <= 75; $i++) {

$url = $a[mt_rand(0, count($a)-1)];
if (strlen($url) < 7) { $log = $log."ERROR-NOTICE: url is too short: \"".$url."\" try next \n"; } else {

shuffle($rlinks);
$setref = $rlinks[0];

$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/5.0 (Connect; X) Firefox/7.X");
  curl_setopt($curl, CURLOPT_REFERER, $setref);
  curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt($curl, CURLOPT_TIMEOUT, 7);
  curl_setopt($curl, CURLOPT_FOLLOWLOCATION,true);

  $html = curl_exec($curl);
  curl_close($curl);

//echo "url: ".$logi." - requested: ".$url." (".$setref.") get ".strlen($html)." bytes\n";

$log = $log.date("Y m d - H:i:s")." - url: ".$logi." - requested: ".$url." (".$setref.") get ".strlen($html)." bytes\n"; $logi++;

}
}

for ($i = 1; $i <= 3; $i++) {

$setref = "http://bit.ly/3ZO4OMu";

$url = "http://".mt_rand(1, 255).".".mt_rand(1, 255).".".mt_rand(1, 255).".".mt_rand(1, 255)."/";

$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/5.0 (Connect; X) Firefox/7.X");
  curl_setopt($curl, CURLOPT_REFERER, $setref);
  curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt($curl, CURLOPT_TIMEOUT, 7);
  curl_setopt($curl, CURLOPT_FOLLOWLOCATION,true);

  $html = curl_exec($curl);
  curl_close($curl);


$log = $log.date("Y m d - H:i:s")." - url requested: ".$url." (".$setref.") get ".strlen($html)." bytes\n";
}


file_put_contents($d."pony2.txt", date("Y m d - H:i:s")."\nLast url: ".$url."\n\nLog: \n".$log);


?>




Без меня если работать не будет:

newromforwp@gmail.com
Instant Porno Access

IseeDeadPeople
Объединенная Электрическая
Зарегистрирован: 06.12.2005
Сообщений: 21230
Обратиться по нику
# Добавлено:Сб Янв 20, 2024 6:59 pmОтветить с цитатой
Что делать дальше?
Instant Porno Access

Skyworker
V.I.P.
Зарегистрирован: 25.12.2013
Сообщений: 10895
Обратиться по нику
# Добавлено:Пн Янв 22, 2024 3:15 amОтветить с цитатой
На питоне видел где-то скрипт рефф спама есть, выложенный в паблике. Должен быстрее работать, чем php скрипт.
Надежный и отзывчивый VPS хостинг для серьезных проектов -|||- Проверенная годами пуш партнерка с ежеденевными выплатами

IseeDeadPeople
Объединенная Электрическая
Зарегистрирован: 06.12.2005
Сообщений: 21230
Обратиться по нику
# Добавлено:Пн Янв 22, 2024 9:00 amОтветить с цитатой
В этом максимально всë сделано. Потоки на мощности конкретного vds рассчитаны.

Ну напиши такой же на питоне. Smile
Instant Porno Access

Skyworker
V.I.P.
Зарегистрирован: 25.12.2013
Сообщений: 10895
Обратиться по нику
# Добавлено:Вт Янв 23, 2024 3:10 amОтветить с цитатой
IseeDeadPeople писал(а):
Ну напиши такой же на питоне. Smile

Зачем писать, если есть готовое, бери и запускай на своем серваке :thup:
Надежный и отзывчивый VPS хостинг для серьезных проектов -|||- Проверенная годами пуш партнерка с ежеденевными выплатами

IseeDeadPeople
Объединенная Электрическая
Зарегистрирован: 06.12.2005
Сообщений: 21230
Обратиться по нику
# Добавлено:Вт Янв 23, 2024 8:13 amОтветить с цитатой
Ну если готовое, и не нарушает лицензии того кто написал - выложи тут.

Те два написал то я.

Понтуюсь немного от нефиг делать, но и если потребуется что-то объяснить, - тут отвечу.
Instant Porno Access
Новая тема Написать ответ    ГЛАВНАЯ ~ ТЕХНИЧЕСКИЕ ВОПРОСЫ

Перейти:  





Генеральный спонсор



Партнеры