Advertisement
Guest User

bot

a guest
Apr 18th, 2016
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.90 KB | None | 0 0
  1. <html>
  2. <head>
  3. <title>BOT</title>
  4. <meta name="name" content="content" charset="utf-8">
  5. </head>
  6. <body>
  7.  
  8. <form method="post" action="" name="form1"><div class="bg" style="position: absolute; left:0px; top:0px; width:420px; height:260px; overflow: hidden; border: 0px blue solid; "><img src="uni_kart.jpg" width="420" height="260" style="border: 0px black solid;"></div><div class="bg" style="position: absolute; left:18px; top:58px; width:105px; height:140px; overflow: hidden; border: 0px cyan solid; "><img src="uka0.jpg" width="105" height="140" style="border: 0px black solid;"></div><div class="content" style="position: absolute; left:140px; top:145px; width:250px; height:22px; overflow: visible; border: 0px red solid; ">
  9. <strong>E-posta kullanıcı adınız </strong><input autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" type="text" name="uid" maxlength="25" size="13" onkeyup="usercheck(this);" onblur="usercheck(this);" style="color: black; font-family: Tahoma; font-size: 13px; width: 112px; height: 22px;">
  10. </div><div class="content" style="position: absolute; left:183px; top:180px; width:210px; height:22px; overflow: visible; border: 0px green solid; ">
  11. <strong>E-posta şifreniz </strong><input autocapitalize="off" type="password" name="pass" maxlength="25" size="14" style="color: black; font-family: Tahoma; font-size: 13px; width: 112px; height: 22px;">
  12. </div><div class="content" style="position: absolute; left:15px; top:220px; width:380px; height:30px; overflow: visible; border: 0px black solid; ">
  13. <input type="submit" name="giris" id="giris" value="Kart Bilgilerini Görüntüle" style="color: black; font-family: Tahoma; font-weight: bold; font-size: 13px; width: 380px; height: 30px;">
  14. </div></form>
  15.  
  16. <?php
  17.  
  18. $username = $_POST["uid"];
  19. $password = $_POST["pass"];
  20. $giris = $_POST["giris"];
  21.  
  22. function httpPost($url,$params)
  23. {
  24. $postData = '';
  25. //create name value pairs seperated by &
  26. foreach($params as $k => $v)
  27. {
  28. $postData .= $k . '='.$v.'&';
  29. }
  30. $postData = rtrim($postData, '&');
  31.  
  32. $ch = curl_init();
  33.  
  34. curl_setopt($ch,CURLOPT_URL,$url);
  35. curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
  36. curl_setopt($ch,CURLOPT_HEADER, false);
  37. curl_setopt($ch, CURLOPT_POST, count($postData));
  38. curl_setopt($ch, CURLOPT_POSTFIELDS, $postData);
  39.  
  40. $output=curl_exec($ch);
  41.  
  42. curl_close($ch);
  43. return $output;
  44.  
  45. }
  46.  
  47. $params = array(
  48. "uid" => $username,
  49. "pass" => $password,
  50. "giris" => $giris
  51. );
  52.  
  53. echo httpPost("http://sistem.pau.edu.tr/bakiye_goster.php",$params);
  54.  
  55. ?>
  56.  
  57. </body>
  58. <script language="javascript">
  59.  
  60. function usercheck(f)
  61. {
  62. !(/^[A-zÑñ0-9-_.]*$/i).test(f.value)?f.value = f.value.replace(/[^A-zÑñ0-9-_.]/ig,''):null;
  63. }
  64. </script>
  65. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement