Guest User

Untitled

a guest
Apr 19th, 2011
139
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. if ( !isset( $_GET['pid'] ) )
  4. {
  5.     die('Invalid request.');
  6. }
  7.  
  8. if ( isset( $_GET['data'] ) )
  9. {
  10.     $result = "\x01\x00";
  11.     die( $result.sha1("HZEdGCzcGGLvguqUEKQN".base64_url_encode($result)."HZEdGCzcGGLvguqUEKQN") );
  12. }
  13.  
  14. $result = md5( uniqid() );
  15. die( $result );
  16.  
  17. function base64_url_encode($input) {
  18.     return strtr(base64_encode($input), '+/', '-_');
  19. }
  20. ?>
RAW Paste Data