onycro

Perl Proxy Judge

Jul 12th, 2012
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.47 KB | None | 0 0
  1. #!/usr/bin/perl
  2.  
  3. ##############################################
  4. # Copyright (c) by Hell labs Team, 2001-2005 #
  5. ##############################################
  6.  
  7. print "Content-type: text/plain; charset=us-ascii\r\n\r\n";
  8. print "REMOTE_ADDR=$ENV{'REMOTE_ADDR'}\r\n";
  9. $nora=0;
  10. if($ENV{'HTTP_X_FORWARDED_FOR'} eq $ENV{'REMOTE_ADDR'})
  11. {
  12.  $nora=1;
  13. }
  14. foreach (sort keys %ENV)
  15. {
  16.     if(!($_ eq 'HTTP_X_FORWARDED_FOR')||($nora==0))
  17.     {
  18.         print "$_=$ENV{$_}\r\n";
  19.     }
  20. }
  21. exit;
Advertisement
Add Comment
Please, Sign In to add comment