Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $numero = "4198499547";
- $msg = "O alarme foi acionado. Protected House! (Xp3)";
- $link1 = "numero=$numero&submit=Avan%E7ar";
- $link2 = "mensagem=$msg&submit=Enviar+mensagem";
- $ch = curl_init ();
- curl_setopt ($ch, CURLOPT_POST, 1);
- curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt ($ch, CURLOPT_REFERER, 'http://torpedo.wiki.br/');
- curl_setopt ($ch, CURLOPT_URL, 'http://torpedo.wiki.br/escrever-mensagem/');
- curl_setopt ($ch, CURLOPT_COOKIEJAR, '/cookie.txt');
- curl_setopt ($ch, CURLOPT_COOKIEFILE, '/cookie.txt');
- curl_setopt ($ch, CURLOPT_POSTFIELDS, $link1);
- $resultado1 = curl_exec ($ch);
- curl_setopt ($ch, CURLOPT_REFERER, 'http://torpedo.wiki.br/escrever-mensagem/');
- curl_setopt ($ch, CURLOPT_URL, 'http://torpedo.wiki.br/enviar-torpedo-sms-gratis/');
- curl_setopt ($ch, CURLOPT_COOKIEJAR, '/cookie.txt');
- curl_setopt ($ch, CURLOPT_COOKIEFILE, '/cookie.txt');
- curl_setopt ($ch, CURLOPT_POSTFIELDS, $link2);
- $resultado2 = curl_exec ($ch);
- curl_close ($ch);
- if(preg_match("#\Mensagem enviada(.*?)\/#", $resultado2, $res1)){
- echo "Enviada com sucesso!<br />";
- }elseif(preg_match("#\Desculpe(.*?)\/#", $resultado2, $res2)){
- echo "Falha ao enviar!<br />";
- }
- //print_r($res1);
- //echo "<br>";
- //print_r($res2);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment