Skocz do zawartości

Dołącz do społeczności!

👋 Witaj na MPCForum!

Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

  • ✅ Pełny dostęp do działów i ukrytych treści
  • ✅ Możliwość pisania i odpowiadania w tematach
  • ✅ System prywatnych wiadomości
  • ✅ Zbieranie reputacji i rozwijanie swojego profilu
  • ✅ Członkostwo w jednej z największych społeczności graczy

👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

Zarejestruj się teraz

Prisonwars skrypt 24/7 za darmo + Poradnik jak ustawić

Featured Replies

Opublikowano

 

@Chrunchips0 dodaj skan. Czas do 21.

Nawet gdyby to był wirus to skanowanie nic nie da :) Jak jesteś modem to powinieneś wiedzieć, ewentualnie przeczytać temat. Każdy ma wgląd do kodu programu, więc widać czy wirus czy nie

 

Tak jest w regulaminie napisane. Skan ma być. ;)

Opublikowano

@Chrunchips0 dodaj skan. Czas do 21.

 

@TheNope każdy, kto wstawia jakikolwiek plik do pobrania, ma obowiązek załączenia skanu. Nie każdy użytkownik musi znać się na samodzielnym sprawdzaniu kodu.

 

 

 

 

@Chrunchips0 dodaj skan. Czas do 21.

Nawet gdyby to był wirus to skanowanie nic nie da :) Jak jesteś modem to powinieneś wiedzieć, ewentualnie przeczytać temat. Każdy ma wgląd do kodu programu, więc widać czy wirus czy nie

 

Tak jest w regulaminie napisane. Skan ma być. ;)

 

 

 

Aż specjalnie wszedłem do tego magicznego regulaminu i co odkryłem? A to:

 

2. Administrator nakazuje sprawdzenie każdego wysyłanego na Forum pliku wykonalnego internetowym skanerem antywirusowym znajdującym się pod adresem internetowym: http://virustotal.com/

 

Pytam jeszcze raz: moderatorze nie potrafisz odróżnić pliku wykonywalnego od tekstowego? Więc co robisz na tym stanowisku? Gość zrobił kupę dobrej roboty i usuwacie jeszcze jego linki BEZPODSTAWNIE :D

Opublikowano

 

@Chrunchips0 dodaj skan. Czas do 21.

 

@TheNope każdy, kto wstawia jakikolwiek plik do pobrania, ma obowiązek załączenia skanu. Nie każdy użytkownik musi znać się na samodzielnym sprawdzaniu kodu.

 

 

 

 

@Chrunchips0 dodaj skan. Czas do 21.

Nawet gdyby to był wirus to skanowanie nic nie da :) Jak jesteś modem to powinieneś wiedzieć, ewentualnie przeczytać temat. Każdy ma wgląd do kodu programu, więc widać czy wirus czy nie

 

Tak jest w regulaminie napisane. Skan ma być. ;)

 

 

 

Aż specjalnie wszedłem do tego magicznego regulaminu i co odkryłem? A to:

 

2. Administrator nakazuje sprawdzenie każdego wysyłanego na Forum pliku wykonalnego internetowym skanerem antywirusowym znajdującym się pod adresem internetowym: http://virustotal.com/

 

Pytam jeszcze raz: moderatorze nie potrafisz odróżnić pliku wykonywalnego od tekstowego? Więc co robisz na tym stanowisku? Gość zrobił kupę dobrej roboty i usuwacie jeszcze jego linki BEZPODSTAWNIE :D

 

W sumie tu masz racje. Zwracam honor 

Opublikowano
  • Autor

jakiś reupload? chętnie bym przejrzał kod.

 

 

 

<?php
//Spis id znajdziesz w temacie na mpcforum
$usercfg[crime] = 23;//ID przestspstwa, które ma być wykonywane
$usercfg[job] = 0;//ID fuchy, ktora ma być wykonywana.
$usercfg[dill] = 0;//ID dilerki, która ma być wykonywana
$usercfg[gym] = 1;//Siłka 1-tak 0-nie. Cwiczy gdy ma 100% energii

$login = 'login';
$password = 'haslo';
$api = '1234';//Captcha KEY ze tej strony - https://2captcha.com/setting




//@@@@@@@@@@@
if (!file_exists(dirname(__FILE__)."/userData/".$login)) {
    mkdir(dirname(__FILE__)."/userData/".$login, 0777, true);
}

$userAgent = "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6";
$cookie = dirname(__FILE__)."/userData/".$login."/cookies.txt";



$ch = curl_init();
curl_setopt ($ch, CURLOPT_URL, "https://prisonwarsonline.com/");
curl_setopt ($ch, CURLOPT_USERAGENT, $userAgent); 
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_COOKIEFILE, $cookie);
curl_setopt ($ch, CURLOPT_COOKIEJAR, $cookie);

$firstLoad = curl_exec ($ch);
$loadHTML = $firstLoad;

if (strpos($firstLoad, 'flashTitle ("CAPTCHA') !== false) {
	
	
	curl_setopt ($ch, CURLOPT_URL, "https://prisonwarsonline.com/");
	captcha("main",$firstLoad,$login,$ch);
	$firstLoad = curl_exec ($ch);
$loadHTML = $firstLoad;
}
if (strpos($firstLoad, "_LOGIN='".$login."';") !== true) {
	$hslk = getBetween($firstLoad,"<input type='hidden' name='hslk' value='","'>");
	$secl = getBetween($firstLoad,'<input type="hidden" name="secl" value="','">');
	curl_setopt ($ch, CURLOPT_REFERER, "https://prisonwarsonline.com/");
	
$values = array(
    'login' => $login,
    'passwordw' => $password,
     'secl' => $secl,
	 'hslk' => $hslk,
	 'log_in' => '1',
    );
 $params = http_build_query($values);

$data = 'login='.$login.'&passwordw='.$password.'&secl='.$secl.'&hslk='.$hslk.'&log_in=1';
$dataLength = strlen($data);
curl_setopt ($ch, CURLOPT_HTTPHEADER,array('Content-Type: application/x-www-form-urlencoded'));
curl_setopt ($ch, CURLOPT_POSTFIELDS, $params); 
curl_setopt ($ch, CURLOPT_POST, 1); 
$LogIn = curl_exec ($ch);
curl_setopt ($ch, CURLOPT_POST, 0);
$loadHTML = $LogIn;
}


$player = array(
	"level" => getBetween($firstLoad,"data-level='","'"),
	"energy" => getBetween($firstLoad,"data-energy='","'"),
	"energy_max" => getBetween($firstLoad,"data-energy_max='","'"),
	"nerve" => getBetween($firstLoad,"data-nerve='","'"),
	"nerve_max" => getBetween($firstLoad,"data-nerve_max='","'"),
	"awake" => getBetween($firstLoad,"data-awake='","'"),
	"awake_max" => getBetween($firstLoad,"data-awake_max='","'"),
	"points_sum" => getBetween($firstLoad,"data-points_sum='","'"),
	"free_points" => getBetween($firstLoad,"data-free_points='","'"),
	"points" => getBetween($firstLoad,"data-points='","'"),
	"cash" => getBetween($firstLoad,"data-cash='","'"),
	"hp" => getBetween($firstLoad,"data-hp='","'"),
	"strength" => getBetween($firstLoad,"data-strength='","'"),
	"speed" => getBetween($firstLoad,"data-speed='","'"),
	"defense" => getBetween($firstLoad,"data-defense='","'"),
	"block" => getBetween($firstLoad,"data-block='","'"),
	"block_id" => getBetween($firstLoad,"data-block_id='","'"),
	"fp" => getBetween($firstLoad,"data-fp='","'"),
);
 

if (intval($player[strength]) <= intval($player[defense]) AND intval($player[strength]) <= intval($player[speed])) {
	$trainType = "strength";
}
if (intval($player[speed]) <= intval($player[defense]) AND intval($player[speed]) <= intval($player[strength])) {
	$trainType = "speed";
}
if (intval($player[defense]) <= intval($player[strength]) AND intval($player[defense]) <= intval($player[speed])) {
	$trainType = "defense";
}

if($usercfg[gym] == 1){
if(intval($player[energy]) == intval($player[energy_max]) ){
cwicz($trainType,$player[energy],$ch,$login);
}
}
if($usercfg[job] > 0){
fucha($usercfg[job],$ch);
}
if($usercfg[dill] > 0){
dilerka($usercfg[dill],$ch);
}

if($usercfg[crime] > 0){
przestepstwa($usercfg[crime],$ch,$player[nerve]);
}
bank($ch);
 
 
curl_close($ch);

function bank($ch){
curl_setopt ($ch, CURLOPT_POST, 0); 
curl_setopt ($ch, CURLOPT_REFERER, "https://prisonwarsonline.com/");
curl_setopt ($ch, CURLOPT_URL, "https://prisonwarsonline.com/bank/");
curl_setopt ($ch, CURLOPT_HTTPHEADER,array('Upgrade-Insecure-Requests: 1'));
$loadHTML = curl_exec ($ch);

$hslk = getBetween($loadHTML,"indexOf|hidden|each|remove|","|this|append|body|value");
$hslk = base64_decode($hslk."=");
$values = array(
    'cash_on_hand' => '0',
    'hslk' => $hslk,
    'fromXHR' => '1',
    );
$params = http_build_query($values);
curl_setopt ($ch, CURLOPT_URL, "https://prisonwarsonline.com/bank/");
curl_setopt ($ch, CURLOPT_REFERER, "https://prisonwarsonline.com/bank/");
curl_setopt ($ch, CURLOPT_HTTPHEADER,array('Content-Type: application/x-www-form-urlencoded; charset=UTF-8'));
curl_setopt ($ch, CURLOPT_POSTFIELDS, $params); 
curl_setopt ($ch, CURLOPT_POST, 1); 
$bank = curl_exec ($ch);
curl_setopt ($ch, CURLOPT_REFERER, "https://prisonwarsonline.com/");
}


function przestepstwa($crimeID, $ch,$nerve){

curl_setopt ($ch, CURLOPT_POST, 0); 
curl_setopt ($ch, CURLOPT_REFERER, "https://prisonwarsonline.com/");
curl_setopt ($ch, CURLOPT_URL, "https://prisonwarsonline.com/crimes/");
curl_setopt ($ch, CURLOPT_HTTPHEADER,array('Upgrade-Insecure-Requests: 1'));
$loadHTML = curl_exec ($ch);

$hslk = getBetween($loadHTML,"indexOf|hidden|each|remove|","|this|append|body|value");
$hslk = base64_decode($hslk."=");
$nerveMin = getBetween($loadHTML,"<input type='hidden' name='crime' value='3",'data-percent');
$nerveMin = getBetween($nerveMin,'data-nerve=\"','\"');
if($nerve >= $nerveMin){


$values = array(
    'crime' => $crimeID,
    'hslk' => $hslk,
    'fromXHR' => '1',
    );
$params = http_build_query($values);
curl_setopt ($ch, CURLOPT_HTTPHEADER,array('Content-Type: application/x-www-form-urlencoded; charset=UTF-8'));
curl_setopt ($ch, CURLOPT_POSTFIELDS, $params); 
curl_setopt ($ch, CURLOPT_POST, 1); 
$crime = curl_exec ($ch);
}
}



function dilerka($dilerID,$ch){

curl_setopt ($ch, CURLOPT_POST, 0); 
curl_setopt ($ch, CURLOPT_REFERER, "https://prisonwarsonline.com/");
curl_setopt ($ch, CURLOPT_URL, "https://prisonwarsonline.com/diler/");
curl_setopt ($ch, CURLOPT_HTTPHEADER,array('Upgrade-Insecure-Requests: 1'));
$loadHTML = curl_exec ($ch);

$hslk = getBetween($loadHTML,"indexOf|hidden|each|remove|","|this|append|body|value");
$hslk = base64_decode($hslk."=");

	
if (strpos($loadHTML, "Aktualna dilerka:") == false) {
$values = array(
    'dil_id' => $dilerID,
    'hslk' => $hslk,
    'fromXHR' => '1',
    );
$params = http_build_query($values);
curl_setopt ($ch, CURLOPT_HTTPHEADER,array('Content-Type: application/x-www-form-urlencoded; charset=UTF-8'));
curl_setopt ($ch, CURLOPT_POSTFIELDS, $params); 
curl_setopt ($ch, CURLOPT_POST, 1); 
$fucha = curl_exec ($ch);
}
	
}

function fucha($jobID,$ch){

curl_setopt ($ch, CURLOPT_POST, 0); 
curl_setopt ($ch, CURLOPT_REFERER, "https://prisonwarsonline.com/");
curl_setopt ($ch, CURLOPT_URL, "https://prisonwarsonline.com/jobs/");
curl_setopt ($ch, CURLOPT_HTTPHEADER,array('Upgrade-Insecure-Requests: 1'));
$loadHTML = curl_exec ($ch);

$hslk = getBetween($loadHTML,"indexOf|hidden|each|remove|","|this|append|body|value");
$hslk = base64_decode($hslk."=");


	
if (strpos($loadHTML, "Aktualna fucha:") == false) {
$values = array(
    'job_id' => $jobID,
    'hslk' => $hslk,
    'fromXHR' => '1',
    );
$params = http_build_query($values);
curl_setopt ($ch, CURLOPT_HTTPHEADER,array('Content-Type: application/x-www-form-urlencoded; charset=UTF-8'));
curl_setopt ($ch, CURLOPT_POSTFIELDS, $params); 
curl_setopt ($ch, CURLOPT_POST, 1); 
$fucha = curl_exec ($ch);
}

}

function cwicz($type, $value,$ch,$login){

curl_setopt ($ch, CURLOPT_POST, 0); 
curl_setopt ($ch, CURLOPT_REFERER, "https://prisonwarsonline.com/");
curl_setopt ($ch, CURLOPT_URL, "https://prisonwarsonline.com/gym/");
curl_setopt ($ch, CURLOPT_HTTPHEADER,array('Upgrade-Insecure-Requests: 1'));
$loadHTML = curl_exec ($ch);
if (strpos($loadHTML, 'flashTitle ("CAPTCHA') !== false) {
	captcha("gym",$loadHTML,$login,$ch);
curl_setopt ($ch, CURLOPT_POST, 0); 
curl_setopt ($ch, CURLOPT_REFERER, "https://prisonwarsonline.com/");
curl_setopt ($ch, CURLOPT_URL, "https://prisonwarsonline.com/gym/");
curl_setopt ($ch, CURLOPT_HTTPHEADER,array('Upgrade-Insecure-Requests: 1'));
$loadHTML = curl_exec ($ch);
}


$hslk = getBetween($loadHTML,"indexOf|hidden|each|remove|","|this|append|body|value");
$hslk = base64_decode($hslk."=");
$values2 = array(
    'train' => $type,
    'valuee' => $value,
     'hslk' => $hslk,
	 'fromXHR' => '1',
    );
$params = http_build_query($values2);
curl_setopt ($ch, CURLOPT_HTTPHEADER,array('Content-Type: application/x-www-form-urlencoded; charset=UTF-8'));
curl_setopt ($ch, CURLOPT_POSTFIELDS, $params); 
curl_setopt ($ch, CURLOPT_POST, 1); 
$trenuj = curl_exec ($ch);
}



function captcha($dest,$source,$login,$ch){
	$captchaKEY = '8e468da08654be455deaf64968961558';
	$filename = dirname(__FILE__)."/userData/".$login."/".$dest."Captcha.txt";
	if (file_exists($filename)) {
		$myfile = fopen($filename, "r");
		$fread = fread($myfile,filesize($filename));
		fclose($myfile);
		if (strpos($fread, 'id') !== false) {
			$captchaID = getBetween($fread,"id:(",")");
			curl_setopt ($ch, CURLOPT_POST, 0); 
			curl_setopt ($ch, CURLOPT_URL, "http://2captcha.com/res.php?key=".$captchaKEY."&action=get&id=".$captchaID);
			$getCaptcha = curl_exec($ch);
			$responsData = explode("|", $getCaptcha);
			
			if (strpos($getCaptcha, 'RROR') == false) {
			if($responsData[0] === "OK"){
				$crackedCaptcha = $responsData[1];
				curl_setopt ($ch, CURLOPT_POST, 1); 
				curl_setopt ($ch, CURLOPT_URL, "https://prisonwarsonline.com/");
				if ($dest === "gym"){
				curl_setopt ($ch, CURLOPT_URL, "https://prisonwarsonline.com/gym/");
				
				}
				
				$captchaHash = getBetween($fread,'hash'.$crackedCaptcha.':(',')');
				$values2 = array(
					'vcaptcha-hash' => $captchaHash,
					);
				$params = http_build_query($values2);
				curl_setopt ($ch, CURLOPT_POSTFIELDS, $params);

				if (strpos($source, $captchaHash) !== false) {
					$antycaptcha = curl_exec ($ch);
				}
				
				unlink('userData/'.$login.'/'.$dest.'Captcha.txt');
				unlink('userData/'.$login.'/'.$dest.'Captcha.png');
				unlink('userData/'.$login.'/hash1.png');
				unlink('userData/'.$login.'/hash2.png');
				unlink('userData/'.$login.'/hash3.png');
				unlink('userData/'.$login.'/hash4.png');
				unlink('userData/'.$login.'/hash5.png');
				unlink('userData/'.$login.'/hash6.png');
				unlink('userData/'.$login.'/hash7.png');
				unlink('userData/'.$login.'/hash8.png');
				

			}
		}else{

				unlink('userData/'.$login.'/'.$dest.'Captcha.txt');
				unlink('userData/'.$login.'/'.$dest.'Captcha.png');
				unlink('userData/'.$login.'/hash1.png');
				unlink('userData/'.$login.'/hash2.png');
				unlink('userData/'.$login.'/hash3.png');
				unlink('userData/'.$login.'/hash4.png');
				unlink('userData/'.$login.'/hash5.png');
				unlink('userData/'.$login.'/hash6.png');
				unlink('userData/'.$login.'/hash7.png');
				unlink('userData/'.$login.'/hash8.png');
		}
			
			
		}
		
	}else{
	$hash = getContents($source,'<img class="vcaptcha-img" data-vcaptcha-hash="','" style="height:');
	$file = fopen($filename, "w");
	$hashTXT = "hash1:(".$hash[0].")"."hash2:(".$hash[1].")"."hash3:(".$hash[2].")"."hash4:(".$hash[3].")"."hash5:(".$hash[4].")"."hash6:(".$hash[5].")"."hash7:(".$hash[6].")"."hash8:(".$hash[7].")";
	fwrite($file, $hashTXT);
	fclose($file);
	
	curl_setopt ($ch, CURLOPT_POST, 0); 
	
	
	curl_setopt ($ch, CURLOPT_URL, "https://prisonwarsonline.com/vcaptcha/img.php?hash=".$hash[0]);
	$img = curl_exec ($ch);
	$fp = fopen("userData/".$login."/hash1.png",'w');
    fwrite($fp, $img);
    fclose($fp);
	curl_setopt ($ch, CURLOPT_URL, "https://prisonwarsonline.com/vcaptcha/img.php?hash=".$hash[1]);
	$img = curl_exec ($ch);
	$fp = fopen("userData/".$login."/hash2.png",'w');
    fwrite($fp, $img);
    fclose($fp);
	
	curl_setopt ($ch, CURLOPT_URL, "https://prisonwarsonline.com/vcaptcha/img.php?hash=".$hash[2]);
	$img = curl_exec ($ch);
	$fp = fopen("userData/".$login."/hash3.png",'w');
    fwrite($fp, $img);
    fclose($fp);
	
	curl_setopt ($ch, CURLOPT_URL, "https://prisonwarsonline.com/vcaptcha/img.php?hash=".$hash[3]);
	$img = curl_exec ($ch);
	$fp = fopen("userData/".$login."/hash4.png",'w');
    fwrite($fp, $img);
    fclose($fp);
	
	curl_setopt ($ch, CURLOPT_URL, "https://prisonwarsonline.com/vcaptcha/img.php?hash=".$hash[4]);
	$img = curl_exec ($ch);
	$fp = fopen("userData/".$login."/hash5.png",'w');
    fwrite($fp, $img);
    fclose($fp);
	
	curl_setopt ($ch, CURLOPT_URL, "https://prisonwarsonline.com/vcaptcha/img.php?hash=".$hash[5]);
	$img = curl_exec ($ch);
	$fp = fopen("userData/".$login."/hash6.png",'w');
    fwrite($fp, $img);
    fclose($fp);
	
	curl_setopt ($ch, CURLOPT_URL, "https://prisonwarsonline.com/vcaptcha/img.php?hash=".$hash[6]);
	$img = curl_exec ($ch);
	$fp = fopen("userData/".$login."/hash7.png",'w');
    fwrite($fp, $img);
    fclose($fp);
	
	curl_setopt ($ch, CURLOPT_URL, "https://prisonwarsonline.com/vcaptcha/img.php?hash=".$hash[7]);
	$img = curl_exec ($ch);
	$fp = fopen("userData/".$login."/hash8.png",'w');
    fwrite($fp, $img);
    fclose($fp);

	
	$itemToGive = getBetween($source,"<span style='color:red'>","</span>");
	
	$itemToGive = strtolower($itemToGive);
	$itemFile = '0';
	if (strpos($itemToGive, 'bomb') !== false) {
	$itemFile = 'userData/bomba.png';
	}
	if (strpos($itemToGive, 'aparat') !== false) {
	$itemFile = 'userData/aparat.png';
	}
	if (strpos($itemToGive, 'camer') !== false) {
	$itemFile = 'userData/aparat.png';
	}
	if (strpos($itemToGive, 'extasy') !== false) {
	$itemFile = 'userData/extasy.png';
	}
	if (strpos($itemToGive, 'ecstasy') !== false) {
	$itemFile = 'userData/extasy.png';
	}
	if (strpos($itemToGive, 'fajki') !== false) {
	$itemFile = 'userData/fajki.png';
	}
	if (strpos($itemToGive, 'smoke') !== false) {
	$itemFile = 'userData/fajki.png';
	}
	if (strpos($itemToGive, 'granat') !== false) {
	$itemFile = 'userData/granat.png';
	}
	if (strpos($itemToGive, 'grenade') !== false) {
	$itemFile = 'userData/granat.png';
	}
	if (strpos($itemToGive, 'shroo') !== false) {
	$itemFile = 'userData/grzyby.png';
	}
	if (strpos($itemToGive, 'grzybki') !== false) {
	$itemFile = 'userData/grzyby.png';
	}
	if (strpos($itemToGive, 'hamburger') !== false) {
	$itemFile = 'userData/hamburger.png';
	}
	if (strpos($itemToGive, 'burger') !== false) {
	$itemFile = 'userData/hamburger.png';
	}
	if (strpos($itemToGive, 'kamizelk') !== false) {
	$itemFile = 'userData/kamizelka.png';
	}
	if (strpos($itemToGive, 'vest') !== false) {
	$itemFile = 'userData/kamizelka.png';
	}
	if (strpos($itemToGive, 'klucz') !== false) {
	$itemFile = 'userData/klucz.png';
	}
	if (strpos($itemToGive, 'key') !== false) {
	$itemFile = 'userData/klucz.png';
	}
	if (strpos($itemToGive, 'latark') !== false) {
	$itemFile = 'userData/latarka.png';
	}
	if (strpos($itemToGive, 'ligh') !== false) {
	$itemFile = 'userData/latarka.png';
	}
	if (strpos($itemToGive, 'łom') !== false) {
	$itemFile = 'userData/lom.png';
	}
	if (strpos($itemToGive, 'crow') !== false) {
	$itemFile = 'userData/lom.png';
	}
	if (strpos($itemToGive, 'lsd') !== false) {
	$itemFile = 'userData/lsd.png';
	}
	if (strpos($itemToGive, 'mary') !== false) {
	$itemFile = 'userData/maryska.png';
	}
	if (strpos($itemToGive, 'marij') !== false) {
	$itemFile = 'userData/maryska.png';
	}
	if (strpos($itemToGive, 'opium') !== false) {
	$itemFile = 'userData/opium.png';
	}
	if (strpos($itemToGive, 'plecak') !== false) {
	$itemFile = 'userData/plecak.png';
	}
	if (strpos($itemToGive, 'back') !== false) {
	$itemFile = 'userData/plecak.png';
	}
	if (strpos($itemToGive, 'bag') !== false) {
	$itemFile = 'userData/plecak.png';
	}
	
	if (strpos($itemToGive, 'spirytus') !== false) {
	$itemFile = 'userData/spirytus.png';
	}
	if (strpos($itemToGive, 'moon') !== false) {
	$itemFile = 'userData/spirytus.png';
	}
	if (strpos($itemToGive, 'salv') !== false) {
	$itemFile = 'userData/szalvia.png';
	}
	if (strpos($itemToGive, 'salv') !== false) {
	$itemFile = 'userData/szalvia.png';
	}
	if (strpos($itemToGive, 'amfe') !== false) {
	$itemFile = 'userData/amfa.png';
	}
	if (strpos($itemToGive, 'amph') !== false) {
	$itemFile = 'userData/amfa.png';
	}
	if (strpos($itemToGive, 'strzyk') !== false) {
	$itemFile = 'userData/strzykawka.png';
	}
	if (strpos($itemToGive, 'syrin') !== false) {
	$itemFile = 'userData/strzykawka.png';
	}
	if (strpos($itemToGive, 'sniper') !== false) {
	$itemFile = 'userData/strzelba.png';
	}
	if (strpos($itemToGive, 'karabin') !== false) {
	$itemFile = 'userData/strzelba.png';
	}
	
	if($itemFile === '0'){
		$file = 'userData/help.txt';
		$current = file_get_contents($file);
		$current .= "|".$itemToGive."|";
		file_put_contents($file, $current);
		unlink('userData/'.$login.'/'.$dest.'Captcha.txt');
		exit();
	}else{
	merge('userData/core.png', $itemFile, 'userData/'.$login.'/'.$dest.'Captcha.png',$login);
	
	$captchaIMG = 'userData/'.$login.'/'.$dest.'Captcha.png';
	$image = base64_encode( $captchaIMG );
	
	
		$path = 'userData/'.$login.'/'.$dest.'Captcha.png';
$type = pathinfo($path, PATHINFO_EXTENSION);
$data = file_get_contents($path);
$base64 = 'data:image/' . $type . ';base64,' . base64_encode($data);


	$values = array(
    'method' => 'base64',
    'key' => $captchaKEY,
    'body' => $base64,
	'numeric' => '1',
	'min_len' => '1',
	'max_len' => '1',
    );
	$values = http_build_query($values);
	curl_setopt ($ch, CURLOPT_URL, "http://2captcha.com/in.php");
	curl_setopt($ch, CURLOPT_POST, true);
	curl_setopt($ch, CURLOPT_POSTFIELDS, $values);
	$sendCaptcha = curl_exec ($ch);
	curl_setopt($ch, CURLOPT_POST, false);
	
	$responsData = explode("|", $sendCaptcha);
	if($responsData[0] === "OK"){
		$file = 'userData/'.$login.'/'.$dest.'Captcha.txt';
		$current = file_get_contents($file);
		$current .= "id:(".$responsData[1].")";
		file_put_contents($file, $current);
		exit();
	}else{
		unlink('userData/'.$login.'/'.$dest.'Captcha.txt');
		unlink('userData/'.$login.'/'.$dest.'Captcha.png');
		unlink('userData/'.$login.'/hash1.png');
		unlink('userData/'.$login.'/hash2.png');
		unlink('userData/'.$login.'/hash3.png');
		unlink('userData/'.$login.'/hash4.png');
		unlink('userData/'.$login.'/hash5.png');
		unlink('userData/'.$login.'/hash6.png');
		unlink('userData/'.$login.'/hash7.png');
		unlink('userData/'.$login.'/hash8.png');
		exit();
	}
	
	}
	
	
	}
	
	
}

function merge($filename_x, $filename_y, $filename_result,$login) {

 list($width_x, $height_x) = getimagesize($filename_x);
 list($width_y, $height_y) = getimagesize($filename_y);


 $image = imagecreatetruecolor($width_x, $height_x);


 $image_x = imagecreatefrompng($filename_x);
 $image_y = imagecreatefrompng($filename_y);
 
$hash1 = imagecreatefrompng('userData/'.$login.'/hash1.png');
$hash2 = imagecreatefrompng('userData/'.$login.'/hash2.png');
$hash3 = imagecreatefrompng('userData/'.$login.'/hash3.png');
$hash4 = imagecreatefrompng('userData/'.$login.'/hash4.png');
$hash5 = imagecreatefrompng('userData/'.$login.'/hash5.png');
$hash6 = imagecreatefrompng('userData/'.$login.'/hash6.png');
$hash7 = imagecreatefrompng('userData/'.$login.'/hash7.png');
$hash8 = imagecreatefrompng('userData/'.$login.'/hash8.png');

 imagecopy($image, $image_x, 0, 0, 0, 0, $width_x, $height_x);
 imagecopy($image, $image_y, 135, 3, 0, 0, $width_y, $height_y);
 
$xcount = 0;
imagecopy($image, $hash1, 0, 95, 0, 0, imagesx($hash1), imagesy($hash1));
imagecopy($image, $hash2, 70, 95, 0, 0, imagesx($hash2), imagesy($hash2));
imagecopy($image, $hash3, 130, 95, 0, 0, imagesx($hash3), imagesy($hash3));
imagecopy($image, $hash4, 190, 95, 0, 0, imagesx($hash4), imagesy($hash4));
imagecopy($image, $hash5, 250, 95, 0, 0, imagesx($hash5), imagesy($hash5));
imagecopy($image, $hash6, 313, 95, 0, 0, imagesx($hash6), imagesy($hash6));
imagecopy($image, $hash7, 373, 95, 0, 0, imagesx($hash7), imagesy($hash7));
imagecopy($image, $hash8, 435, 95, 0, 0, imagesx($hash8), imagesy($hash8));
 
 


 imagepng($image, $filename_result);


 imagedestroy($image);
 imagedestroy($image_x);
 imagedestroy($image_y);

}


function getBetween($content,$start,$end){
    $r = explode($start, $content);
    if (isset($r[1])){
        $r = explode($end, $r[1]);
        return $r[0];
    }
    return '';
}

function getContents($str, $startDelimiter, $endDelimiter) {
  $contents = array();
  $startDelimiterLength = strlen($startDelimiter);
  $endDelimiterLength = strlen($endDelimiter);
  $startFrom = $contentStart = $contentEnd = 0;
  while (false !== ($contentStart = strpos($str, $startDelimiter, $startFrom))) {
    $contentStart += $startDelimiterLength;
    $contentEnd = strpos($str, $endDelimiter, $contentStart);
    if (false === $contentEnd) {
      break;
    }
    $contents[] = substr($str, $contentStart, $contentEnd - $contentStart);
    $startFrom = $contentEnd + $endDelimiterLength;
  }

  return $contents;
}

?> 

 

 

 

Jak chcesz tylko przejrzeć to masz. Sam skrypt nie będzie działać po potrzebne są jeszcze obrazki żeby captche rozwiązywało. Jak chcesz to pisz to wrzucę gdzieś

Edytowane przez Chrunchips0

  • 7 miesięcy temu...
  • 4 lata później...

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Ostatnio przeglądający 0

  • Brak zarejestrowanych użytkowników przeglądających tę stronę.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.