Advertisement
Guest User

EU SOU UM MERDA MERMAO

a guest
Dec 20th, 2017
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. PHP CADSUS HSPJ - By H4CK3RXBL
  2. $ch = curl_init();
  3. curl_setopt($ch, CURLOPT_HEADER, false);
  4. curl_setopt($ch, CURLOPT_NOBODY, false);
  5. curl_setopt($ch, CURLOPT_URL, "https://cadastro.saude.gov.br/cadsusweb/login/actionArmazenarXS.form");
  6. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
  7. curl_setopt($ch, CURLOPT_COOKIEJAR, $cookies.".txt");
  8. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  9. curl_setopt($ch, CURLOPT_HTTPHEADER, array("X-Requested-With: XMLHttpRequest"));
  10. curl_setopt($ch, CURLOPT_REFERER, "https://cadastro.saude.gov.br/cadsusweb/login/actionArmazenarXS.form");
  11. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
  12. curl_setopt($ch, CURLOPT_POST, 1);
  13. curl_setopt($ch, CURLOPT_POSTFIELDS, "cnes=$cnes&usuario=$login&senha=$senha");
  14. $neylog1 = curl_exec($ch);
  15. //echo $neylog1 = curl_exec($ch);
  16. curl_setopt($ch, CURLOPT_URL, "https://cadastro.saude.gov.br/cadsusweb/j_security_check");
  17. curl_setopt($ch, CURLOPT_COOKIEFILE, $cookies.".txt");
  18. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
  19. curl_setopt($ch, CURLOPT_ENCODING, 'gzip, deflate, br');
  20. curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 6.1; rv:50.0) Gecko/20100101 Firefox/50.0');
  21. curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
  22. curl_setopt($ch, CURLOPT_POST, 1);
  23. curl_setopt($ch, CURLOPT_POSTFIELDS, "j_username=$cnes.$login&cnes=$cnes&usuario=$login&j_password=$senha");
  24. $neylog2 = curl_exec($ch);
  25. //echo $neylog2 = curl_exec($ch);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement