Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //
- // Código do parar gerar mcxBux
- // Por Bruno da Silva.
- // Down2Money.Net MixMusicas.Com.Br
- // email@brunodasilva.com brunodasilva.com facebook.com/ipsBruno
- //
- // Código emulado no Centos!
- //
- // Não deixar script rodando muito tempo
- set_time_limit(180);
- // Colocar endereço de includes corretamente
- set_include_path(get_include_path() . PATH_SEPARATOR . 'secphp');
- // Carregar a biblioteca SSH, baixe ela na internet
- include('Net/SSH2.php');
- // Conectar o servidor SSH
- $ssh = new Net_SSH2('127.0.0.1:22');
- // Logar com minha senha ao vps
- if ($ssh->login('root', 'senha')) {
- // Fazer outro ip
- //outroip:
- // Digitar comando para verificar tor
- $rodando = $ssh->exec('service tor status');
- // Verificar se a rede está online
- if(strpos($rodando, "pid")) {
- // Caso estiver online, finalizar
- $ssh->exec('service tor stop');
- }
- // Reiniciar rede tor
- $ssh->exec('service tor start');
- }
- // Função para fazer request na mcxNow
- mcxNow_Hack( 'USUARIOMCX', 'localhost:9050', 'http://google.com', 0, 40);
- function pegarTORIP() {
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL,"http://checkip.dyndns.org/");
- curl_setopt($ch, CURLOPT_PROXY, "localhost:9050");
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, 1);
- curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);
- $buffer = curl_exec($ch);
- curl_close($ch);
- $retorno = explode('Address: ', strip_tags($buffer));
- return trim($retorno[1]);
- }
- /*
- Função para manipular mcxNow
- */
- function mcxNow_Hack( $usuario, $proxy, $referer , $noquiet = 0, $timeout = 20) {
- $url = "https://mcxnow.com/";
- $timeout /= 4;
- // Iniciar requisição para registrar indicação
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $url . "?r=" . $usuario);
- curl_setopt($ch, CURLOPT_PROXY, $proxy);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
- curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, 1);
- curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);
- curl_setopt($ch, CURLOPT_REFERER, $referer);
- curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36');
- curl_setopt($ch, CURLOPT_HEADER, 1);
- curl_setopt($ch, CURLOPT_CONNECTTIMEOUT ,$timeout);
- curl_setopt($ch, CURLOPT_TIMEOUT, $timeout);
- $buffer = curl_exec($ch);
- curl_close($ch);
- // Iniciar requisicao para finalizar indicação
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $url);
- curl_setopt($ch, CURLOPT_PROXY, $proxy);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, 1);
- curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);
- curl_setopt($ch, CURLOPT_REFERER, $url . '?r=' . $usuario);
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
- curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36');
- curl_setopt($ch, CURLOPT_HEADER, 1);
- curl_setopt($ch, CURLOPT_CONNECTTIMEOUT ,$timeout);
- curl_setopt($ch, CURLOPT_TIMEOUT, $timeout);
- $buffer = curl_exec($ch);
- curl_close($ch);
- if($noquiet) echo $buffer;
- return (strlen($buffer)) ? true : false;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement