HEX
Server: Apache
System: Linux server.futurextrade.com 4.18.0-553.74.1.el8_10.x86_64 #1 SMP Mon Sep 8 12:04:40 EDT 2025 x86_64
User: bangladeshwood (1009)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: //etc/webmin/logout.pl
#!/usr/bin/perl
open(CONF, "</etc/webmin/miniserv.conf") || die "Failed to open /etc/webmin/miniserv.conf : $!";
while(<CONF>) {
        $root = $1 if (/^root=(.*)/);
        }
close(CONF);
$root || die "No root= line found in /etc/webmin/miniserv.conf";
$ENV{'PERLLIB'} = "$root";
$ENV{'WEBMIN_CONFIG'} = "/etc/webmin";
$ENV{'WEBMIN_VAR'} = "/var/webmin";
delete($ENV{'MINISERV_CONFIG'});
chdir("$root");
exec("$root/record-logout.pl", @ARGV) || die "Failed to run $root/record-logout.pl : $!";