Advertisement
Guest User

Untitled

a guest
Sep 28th, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. <?php
  2. $loginInfo=array("user"=>$_POST["User"], "pass"=>$_POST["Pass"]);
  3. $userfields=array("pass"=>$_POST["Pass"], "user"=>$_POST["User"], "uuid"=>"0xACA021");
  4.  
  5. $urlBack="https://web.njit.edu/~ejh7/backEnd.php";
  6. $urlNJIT="https://cp4.njit.edu/cp/home/login";
  7.  
  8. //BACK END REQUESRT
  9.  
  10. $ch = curl_init();
  11. curl_setopt ($ch, CURLOPT_URL, $urlBack);
  12. curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true);
  13. curl_setopt ($ch, CURLOPT_POST, 1);
  14. curl_setopt ($ch, CURLOPT_POSTFIELDS, $loginInfo);
  15.  
  16. $curlResult = curl_exec($ch);
  17. curl_close($ch);
  18. echo $curlResult;
  19.  
  20. //NJIT REQUEST
  21.  
  22. $ch=curl_init();
  23. curl_setopt($ch, CURLOPT_URL, $urlNJIT);
  24. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  25. curl_setopt($ch, CURLOPT_POST, 1);
  26. curl_setopt($ch, CURLOPT_POSTFIELDS, $userfields);
  27. $response = curl_exec($ch);
  28. curl_close($ch);
  29.  
  30. echo "$response";
  31.  
  32.  
  33. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement