peaceful.b
Новичок
- Статус
- offline
- Регистрация
- 05.10.2017
- Сообщения
- 7
- Репутация
- 1
Я уже пытался продать этот скрипт, но из-за того, что когда я скрипт за отзыв я попал в больницу и забыл поставить скрипт на крон.
Вот код:
Вот код:
PHP:
<?php # Ты питар <3
$token = 'ТВОИ ТАКИН';
/* Дополнительный контэнт */
/* Вешнай онлайн */ $online = file_get_contents('https://api.vk.com/method/account.setOnline?access_token='.$token);
/* Автоприём заявак */
for ($a = 0; $a <= 10; $a++) {
$get = json_decode(file_get_contents('https://api.vk.com/method/friends.getRequests?access_token='.$token), 1);
$id = $get['response']['1'];
$add = file_get_contents('https://api.vk.com/method/friends.add?user_id='.$id.'&access_token='.$token);
}
/* Отпеска от уродав */
/* Спрепт пеара пашол*/
$groups_id = array('78634634','52025607','53946539','56638180','76862936','77404716','101043305','102483013','10190856','20115002','76327903',
'57929163','42584387','32391312','62340709','33704965','69815411','26734396','65233201','103721540','67004847','85307712' ,'25850386',
'53242527','3399995','260','77819881','45432243','14446726','60042211','58435717','55262798','35359693','32538224','94766517','382634',
'96955309','52641008','59833666','50061797','114675475','24370682','18924208','43524240','48260982','94512931','74806465','75441946',
'54658026','115090946','41328473','59067700','70146464','49938046','48627440','13672693','58980886','71334356','54305980','35296726',
'102777394','49098642','71480694','72690157','33769416','23990493','77778520','88444026','81768293','29273548','50016775','55888808',
'79765857','65861336','72544603','9436169','57079423','76887857','47901577','57893500','16526901','44723042','58281865','94946045',
'92537219','76949162','48177500','54614892','98801189','55778655','70079183','55149458','76331265','95019548','55734302','47828674',
'73690371','20215278','54224042','51155922','111745449','62630460','47550982','46087024','82335096','32244683','36697600','79289982',
'24375763','20138186','36689965','11266048','50619935','68324713','55367092','67823806','51231761','75390995','28772209','50608558',
'92294735','63966396','62927970','75408673','89406281','108550518','28995074','23905651','55986158','85300923','15336495','30739877',
'79626196','39281112','75460958','55214888','74131389','99867602','60576408','68345935','20295050','73739402','21918698','55530464',
'31443054','47688706','69586153','50125055','63975038','55161898','50346332','1222773','76980623','53425205','43879666','67049463',
'61421329','64872649','56666142','77305491','42397088','85008553','93549274','69398403','67083952','22597419','84216460','33277274',
'33602050','62499266','52995017','34471334','10196095','81864155','61413825','39978131','36539410','82400487','50189240','34245360',
'83103331','53486528','41306027','82235375','49479753','105824160','62919013','17886','50243775','72774496','52805991','101933932',
'29738750','89108626','77208800','64105315','52629688','52199211','82918460','73372981','82014283','96870719','83193541','49871683',
'37765841','52172891','48558818','62923579','58547989','66184500','56638180','83521634','58640337','83521634','28805901','56173695',
'76524131','58641452','67721865','78891808','62177611','112059554','77713352','50704665' ,'74738426','53194143','52160189','27508536',
'28950811','56104852','46034006','92688551','30563999','111886597','39673900','63331273','47160067','27508536','47160067','27508536',
'46258034','101920693','17164406','8337923','41294653', '59721672','42297612', '67816144', '47160067','27508536','30127198','42059861',
'36352266','36231266','42416529','62584051','72686157','52669455','53966216','39130136','30127198','42059861','53249195','68101640',
'66939974','41356567','28361911','41760883','51609737','58794015','69596891','60682774','44267115','53249195','68101640','54830915');
$text = random(array("Дoбaвлю вcex C:","Дoбaвлю Вcex, 0 пoдпucчикoв!!!"));
$key = "bf21615a2bccfcd832c1e4b8d4c55fa12";
for ($i = 0; $i < count($groups_id); $i++) {
$wallPost = by("wall.post?owner_id=-".$groups_id[$i]."&message=".urlencode($text)."&access_token=".$token);
if($wallPost["error_code"] == 14) {
$captcha_sid = $wallPost["captcha_sid"];
download($wallPost["captcha_img"]);
$recognize = recognize(dirname(__FILE__)."/captcha.png", $key, true, "rucaptcha.com");
by("wall.post?captcha_sid=".$captcha_sid."&captcha_key=".$recognize."&owner_id=-".$groups_id[$i]."&message=".urlencode($text)."&access_token=".$token);
}
}
function download($picture) {
if ($picture) {
$pic = curl_init($picture);
$file = fopen("captcha.png", "wb");
curl_setopt($pic, CURLOPT_FILE, $file);
curl_setopt($pic, CURLOPT_HEADER, 0);
curl_exec($pic);
curl_close($pic);
fclose($file);
}
}
function random($text) {
$random = mt_rand(0,count($text)-1);
return $text[$random];
}
function by($method) {
$response = curl("https://api.vk.com/method/".$method);
$json = json_decode($response, true);
if($json["error"]["error_msg"]) {
return $json["error"];
} else {
return $json["response"];
}
}
function recognize($filename, $apikey, $is_verbose = true, $domain = "rucaptcha.com", $rtimeout = 5, $mtimeout = 120, $is_phrase = 0, $is_regsense = 0, $is_numeric = 0, $min_len = 0, $max_len = 0, $language = 0) {
if (!file_exists($filename))
{
if ($is_verbose)
return false;
}
$postdata = array(
'method' => 'post',
'key' => $apikey,
'file' => '@'.$filename,
'phrase' => $is_phrase,
'regsense' => $is_regsense,
'numeric' => $is_numeric,
'min_len' => $min_len,
'max_len' => $max_len,
'language' => $language
);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://$domain/in.php");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 60);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postdata);
$result = curl_exec($ch);
if (curl_errno($ch))
{
if ($is_verbose)
return false;
}
curl_close($ch);
if (strpos($result, "ERROR")!==false)
{
if ($is_verbose)
return false;
}
else
{
$ex = explode("|", $result);
$captcha_id = $ex[1];
if ($is_verbose)
$waittime = 0;
if ($is_verbose)
sleep($rtimeout);
while(true)
{
$result = file_get_contents("http://$domain/res.php?key=".$apikey.'&action=get&id='.$captcha_id);
if (strpos($result, 'ERROR')!==false)
{
if ($is_verbose)
return false;
}
if ($result=="CAPCHA_NOT_READY")
{
if ($is_verbose)
$waittime += $rtimeout;
if ($waittime>$mtimeout)
{
if ($is_verbose)
break;
}
if ($is_verbose)
sleep($rtimeout);
}
else
{
$ex = explode('|', $result);
if (trim($ex[0])=='OK') return trim($ex[1]);
}
}
return false;
}
}
function curl($url) {
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
$response = curl_exec($ch);
curl_close($ch);
return $response;
}
# Создатель - /kali6p
# Удалишь копирайт - пидор
?>