luishenriique

Protected House

Apr 17th, 2013
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.25 KB | None | 0 0
  1. <?php
  2.  
  3. $numero = "4198499547";
  4. $msg = "O alarme foi acionado. Protected House! (Xp3)";
  5. $link1 = "numero=$numero&submit=Avan%E7ar";
  6. $link2 = "mensagem=$msg&submit=Enviar+mensagem";
  7.  
  8. $ch = curl_init ();
  9.     curl_setopt ($ch, CURLOPT_POST, 1);
  10.     curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
  11.  
  12.     curl_setopt ($ch, CURLOPT_REFERER, 'http://torpedo.wiki.br/');
  13.     curl_setopt ($ch, CURLOPT_URL, 'http://torpedo.wiki.br/escrever-mensagem/');
  14.     curl_setopt ($ch, CURLOPT_COOKIEJAR, '/cookie.txt');
  15.     curl_setopt ($ch, CURLOPT_COOKIEFILE, '/cookie.txt');
  16.     curl_setopt ($ch, CURLOPT_POSTFIELDS, $link1);
  17.     $resultado1 = curl_exec ($ch);
  18.  
  19.     curl_setopt ($ch, CURLOPT_REFERER, 'http://torpedo.wiki.br/escrever-mensagem/');
  20.     curl_setopt ($ch, CURLOPT_URL, 'http://torpedo.wiki.br/enviar-torpedo-sms-gratis/');
  21.     curl_setopt ($ch, CURLOPT_COOKIEJAR, '/cookie.txt');
  22.     curl_setopt ($ch, CURLOPT_COOKIEFILE, '/cookie.txt');
  23.     curl_setopt ($ch, CURLOPT_POSTFIELDS, $link2);
  24.     $resultado2 = curl_exec ($ch);
  25.  
  26. curl_close ($ch);
  27.  
  28. if(preg_match("#\Mensagem enviada(.*?)\/#", $resultado2, $res1)){
  29.     echo "Enviada com sucesso!<br />";
  30. }elseif(preg_match("#\Desculpe(.*?)\/#", $resultado2, $res2)){
  31.     echo "Falha ao enviar!<br />";
  32. }
  33. //print_r($res1);
  34. //echo "<br>";
  35. //print_r($res2);
  36.  
  37. ?>
Advertisement
Add Comment
Please, Sign In to add comment