Advertisement
Guest User

kembangin vroh

a guest
Oct 16th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.08 KB | None | 0 0
  1. <?php
  2.  
  3. function resourceWeb($url){
  4. $data = curl_init();
  5. curl_setopt($data, CURLOPT_URL, $url);
  6. curl_setopt($data, CURLOPT_RETURNTRANSFER, 1);
  7. $hasil = curl_exec($data);
  8. curl_close($data);
  9. return $hasil;
  10. }
  11. $sumber = resourceWeb('https://binusmaya.binus.ac.id/login/');
  12. $grabuser = explode('<input type="text" name=', $sumber);
  13. $grabuser1 = explode('class = "input text" placeholder="Username">', $grabuser[1]);
  14.  
  15. $grabpass = explode('<input type="password" name=', $sumber);
  16. $grabpass1 = explode('placeholder="Password">', $grabpass[1]);
  17.  
  18. $talk ='cURL respon success, session user[name] and password[name] grabbed<br>';
  19. $userid='User ID Name :<br>';
  20. $userpass='User pass Name :<br>';
  21. $line='<br>';
  22. echo $talk;
  23. echo $userid;
  24. echo $grabuser1[0];
  25. echo $line;
  26. echo $userpass;
  27. echo $grabpass1[0];
  28.  
  29. ?>
  30.  
  31. <!DOCTYPE HTML>
  32. <html lang="en">
  33. <head>
  34.  
  35. <title>Males Login</title>
  36. <h1><center> masih di kembangin, blm work <br>
  37. open source kita kembangin sama2 </center></h1>
  38.  
  39. <form class="custom-form" action="https://binusmaya.binus.ac.id/login/sys_login.php" method="post" style="padding: 20px 40px 10px;" autocomplete="off">
  40. <div class="user-input">
  41. <label class="suffix-wrapper show">
  42. <span class="icon-wrap">
  43. <i class="icon icon-user"></i>
  44. </span>
  45. <input type="text" name=<?php echo $grabuser1[0]; ?> class = "input text" placeholder="Username"> <span class="email-suffix suffix">@binus.ac.id</span>
  46.  
  47.  
  48. </label>
  49. </div>
  50. <p>
  51. <span class="custom-textbox">
  52. <span class="icon-wrap">
  53. <i class="icon icon-pass"></i>
  54. </span>
  55. <input type="password" name=<?php echo $grabpass1[0]; ?> placeholder="Password">
  56. </span>
  57. </p>
  58. <p>
  59. <div id="html_element"></div>
  60. </p>
  61. <p>
  62. <input type="submit" name="ctl00$ContentPlaceHolder1$SubmitButtonBM" value="Login" id="ctl00_ContentPlaceHolder1_SubmitButtonBM" class="button button-primary wide">
  63. </p>
  64. </form>
  65.  
  66.  
  67. </body>
  68. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement