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.186
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 /
quota /
[ HOME SHELL ]
Name
Size
Permission
Action
images
[ DIR ]
drwxr-xr-x
lang
[ DIR ]
drwxr-xr-x
ulang
[ DIR ]
drwxr-xr-x
CHANGELOG
289
B
-rw-r--r--
config-ALL-linux
838
B
-rw-r--r--
config-freebsd
747
B
-rw-r--r--
config-hpux
488
B
-rw-r--r--
config-macos
747
B
-rw-r--r--
config-netbsd
747
B
-rw-r--r--
config-openbsd
747
B
-rw-r--r--
config-solaris
488
B
-rw-r--r--
config-unixware
488
B
-rw-r--r--
config.info
991
B
-rw-r--r--
config.info.ca
1.17
KB
-rwxr-xr-x
config.info.nl
1.09
KB
-rwxr-xr-x
config.info.no
1.11
KB
-rw-r--r--
freebsd-lib.pl
10.71
KB
-rwxr-xr-x
hpux-lib.pl
6.26
KB
-rwxr-xr-x
index.cgi
2.22
KB
-rwxr-xr-x
index.cgi.old
2.02
KB
-rwxr-xr-x
linux-lib.pl
27
KB
-rwxr-xr-x
macos-lib.pl
9
KB
-rwxr-xr-x
module.info
446
B
-rw-r--r--
module.info.af
0
B
-rw-r--r--
module.info.af.auto
135
B
-rw-r--r--
module.info.ar
0
B
-rw-r--r--
module.info.ar.auto
195
B
-rw-r--r--
module.info.be
0
B
-rw-r--r--
module.info.be.auto
225
B
-rw-r--r--
module.info.bg
0
B
-rw-r--r--
module.info.bg.auto
240
B
-rw-r--r--
module.info.ca
23
B
-rw-r--r--
module.info.ca.auto
142
B
-rw-r--r--
module.info.cs
35
B
-rw-r--r--
module.info.cs.auto
132
B
-rw-r--r--
module.info.da
0
B
-rw-r--r--
module.info.da.auto
130
B
-rw-r--r--
module.info.de
147
B
-rw-r--r--
module.info.el
0
B
-rw-r--r--
module.info.el.auto
295
B
-rw-r--r--
module.info.es
0
B
-rw-r--r--
module.info.es.auto
153
B
-rw-r--r--
module.info.eu
0
B
-rw-r--r--
module.info.eu.auto
129
B
-rw-r--r--
module.info.fa
0
B
-rw-r--r--
module.info.fa.auto
230
B
-rw-r--r--
module.info.fi
0
B
-rw-r--r--
module.info.fi.auto
166
B
-rw-r--r--
module.info.fr
27
B
-rw-r--r--
module.info.he
0
B
-rw-r--r--
module.info.he.auto
192
B
-rw-r--r--
module.info.hr
0
B
-rw-r--r--
module.info.hr.auto
142
B
-rw-r--r--
module.info.hu
30
B
-rw-r--r--
module.info.hu.auto
134
B
-rw-r--r--
module.info.it
0
B
-rw-r--r--
module.info.it.auto
141
B
-rw-r--r--
module.info.ja
0
B
-rw-r--r--
module.info.ja.auto
211
B
-rw-r--r--
module.info.ko
0
B
-rw-r--r--
module.info.ko.auto
146
B
-rw-r--r--
module.info.lt
0
B
-rw-r--r--
module.info.lt.auto
141
B
-rw-r--r--
module.info.lv
0
B
-rw-r--r--
module.info.lv.auto
136
B
-rw-r--r--
module.info.ms
0
B
-rw-r--r--
module.info.ms.auto
130
B
-rw-r--r--
module.info.mt
0
B
-rw-r--r--
module.info.mt.auto
157
B
-rw-r--r--
module.info.nl
23
B
-rw-r--r--
module.info.no
20
B
-rw-r--r--
module.info.no.auto
106
B
-rw-r--r--
module.info.pl
34
B
-rw-r--r--
module.info.pl.auto
137
B
-rw-r--r--
module.info.pt
0
B
-rw-r--r--
module.info.pt.auto
155
B
-rw-r--r--
module.info.pt_BR
0
B
-rw-r--r--
module.info.pt_BR.auto
164
B
-rw-r--r--
module.info.ro
0
B
-rw-r--r--
module.info.ro.auto
152
B
-rw-r--r--
module.info.ru
36
B
-rw-r--r--
module.info.ru.auto
212
B
-rw-r--r--
module.info.sk
0
B
-rw-r--r--
module.info.sk.auto
163
B
-rw-r--r--
module.info.sl
0
B
-rw-r--r--
module.info.sl.auto
140
B
-rw-r--r--
module.info.sv
0
B
-rw-r--r--
module.info.sv.auto
132
B
-rw-r--r--
module.info.th
0
B
-rw-r--r--
module.info.th.auto
229
B
-rw-r--r--
module.info.tr
0
B
-rw-r--r--
module.info.tr.auto
165
B
-rw-r--r--
module.info.uk
0
B
-rw-r--r--
module.info.uk.auto
234
B
-rw-r--r--
module.info.ur
0
B
-rw-r--r--
module.info.ur.auto
195
B
-rw-r--r--
module.info.vi
0
B
-rw-r--r--
module.info.vi.auto
193
B
-rw-r--r--
module.info.zh
0
B
-rw-r--r--
module.info.zh.auto
130
B
-rw-r--r--
module.info.zh_TW
0
B
-rw-r--r--
module.info.zh_TW.auto
139
B
-rw-r--r--
netbsd-lib.pl
10.71
KB
-rwxr-xr-x
old-quota-lib.pl
550
B
-rwxr-xr-x
openbsd-lib.pl
10.71
KB
-rwxr-xr-x
quota-lib.pl
14.96
KB
-rwxr-xr-x
solaris-lib.pl
7.85
KB
-rwxr-xr-x
system_info.pl
820
B
-rw-r--r--
unixware-lib.pl
6.4
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : solaris-lib.pl
# solaris-lib.pl # Quota functions for solaris 2.5+ # quotas_init() sub quotas_init { return undef; } # quotas_supported() # Returns 1 for user quotas, 2 for group quotas or 3 for both sub quotas_supported { return 1; } # free_space(filesystem) # Returns an array containing btotal, bfree, ftotal, ffree sub free_space { local($out); $out = `df -t $_[0]`; $out =~ /(\d+) blocks\s+(\d+) files\n.*\s+(\d+) blocks\s+(\d+) files/; return ($3, $1, $4, $2); } # quota_can(&mnttab, &fstab) # Can this filesystem type support quotas? # 0 = No quota support (or not turned on in /etc/fstab) # 1 = User quotas only # 2 = Group quotas only # 3 = User and group quotas sub quota_can { return $_[0]->[2] eq "ufs" && $_[0]->[1] ne $_[0]->[0] ? 1 : 0; } # quota_now(&mnttab, &fstab) # Are quotas currently active? # 0 = Not active # 1 = User quotas active # 2 = Group quotas active # 3 = Both active sub quota_now { return $_[0]->[3] =~ /,quota/ || $_[0]->[3] =~ /^quota/ ? 1 : 0; } # filesystem_users(filesystem) # Fills the array %user with information about all users with quotas # on this filesystem. This may not be all users on the system.. sub filesystem_users { local($rep, @rep, $n, %hasu, @hasu, $u); $rep = `$config{'user_repquota_command'} $_[0] 2>&1`; if ($?) { return -1; } setpwent(); while(@uinfo = getpwent()) { $hasu{$uinfo[0]} = $uinfo[2]; push(@hasu, $uinfo[0]); } endpwent(); @hasu = sort { $hasu{$a} <=> $hasu{$b} } @hasu; @rep = split(/\n/, $rep); @rep = @rep[3..$#rep]; for($n=0; $n<@rep; $n++) { if ($rep[$n] =~ /(\S+)\s+[\-\+]{2}\s+(\d+)\s+(\d+)\s+(\d+)\s+(.{0,15})\s+(\d+)\s+(\d+)\s+(\d+)(.*)/ || $rep[$n] =~ /(\S+)\s+[\-\+]{2}(.{7})(.{7})(.{7})(.{13})(.{7})(.{7})(.{7})(.*)/) { $user{$n,'user'} = $1; $user{$n,'ublocks'} = int($2); $user{$n,'sblocks'} = int($3); $user{$n,'hblocks'} = int($4); $user{$n,'gblocks'} = $5; $user{$n,'ufiles'} = int($6); $user{$n,'sfiles'} = int($7); $user{$n,'hfiles'} = int($8); $user{$n,'gfiles'} = $9; $user{$n,'user'} =~ s/^#//g; if ($user{$n,'user'} !~ /^\d+$/ && !defined($hasu{$user{$n,'user'}})) { # Username was truncated! Try to find him.. foreach $u (@hasu) { if (substr($u, 0, length($user{$n,'user'})) eq $user{$n,'user'}) { # found him.. $user{$n,'user'} = $u; @hasu = grep { $_ ne $u } @hasu; last; } } } $user{$nn,'gblocks'} = &trunc_space($user{$nn,'gblocks'}); $user{$nn,'gfiles'} = &trunc_space($user{$nn,'gfiles'}); } } return $n; } # edit_quota_file(data, filesys, sblocks, hblocks, sfiles, hfiles) sub edit_quota_file { local($rv, $line); foreach $line (split(/\n/, $_[0])) { if ($line =~ /^fs (\S+) blocks \(soft = (\d+), hard = (\d+)\) inodes \(soft = (\d+), hard = (\d+)\)$/ && $1 eq $_[1]) { # found line to change $line = "fs $_[1] blocks (soft = $_[2], hard = $_[3]) inodes (soft = $_[4], hard = $_[5])"; } $rv .= "$line\n"; } return $rv; } # quotaon(filesystem, mode) # Activate quotas and create quota file for some filesystem. The mode can # be 1 for user only, 2 for group only or 3 for user and group sub quotaon { return if (&is_readonly_mode()); local($qf, $out); $qf = "$_[0]/quotas"; if (!(-r $qf)) { &open_tempfile(QUOTAFILE, ">$qf", 0, 1); &close_tempfile(QUOTAFILE); &set_ownership_permissions(undef, undef, 0600, $qf); } $out = &backquote_logged("$config{'user_quotaon_command'} $_[0] 2>&1"); if ($?) { return $out; } return undef; } # quotaoff(filesystem, mode) # Turn off quotas for some filesystem sub quotaoff { return if (&is_readonly_mode()); local($out); $out = &backquote_logged("$config{'user_quotaoff_command'} $_[0] 2>&1"); if ($?) { return $out; } return undef; } # quotacheck(filesystem, mode) # Runs quotacheck on some filesystem sub quotacheck { $out = &backquote_logged("$config{'quotacheck_command'} $_[0] 2>&1"); if ($?) { return $out; } return undef; } # copy_user_quota(user, [user]+) # Copy the quotas for some user to many others sub copy_user_quota { for($i=1; $i<@_; $i++) { $out = &backquote_logged("$config{'user_copy_command'} ". quotemeta($_[0])." ".quotemeta($_[$i])." 2>&1"); if ($?) { return $out; } } return undef; } # user_filesystems(user) # Fills the array %filesys with details of all filesystems some user has # quotas on sub user_filesystems { local($n, $_); open(QUOTA, "$config{'user_quota_command'} ".quotemeta($_[0])." |"); $n=0; while(<QUOTA>) { chop; if (/^(Disk|Filesystem)/i) { next; } if (/^(\S+)$/) { # Bogus wrapped line! $filesys{$n,'filesys'} = $1; local $nl = <QUOTA>; if ($nl =~ /^\s+(\d+)\s+(\d+)\s+(\d+)\s(.{0,15})\s+(\d+)\s+(\d+)\s+(\d+)(.*)/ || $nl =~ /^.{13}(.{7})(.{7})(.{7})(.{12})(.{7})(.{7})(.{7})(.*)/) { $filesys{$n,'ublocks'} = int($1); $filesys{$n,'sblocks'} = int($2); $filesys{$n,'hblocks'} = int($3); $filesys{$n,'gblocks'} = $4; $filesys{$n,'ufiles'} = int($5); $filesys{$n,'sfiles'} = int($6); $filesys{$n,'hfiles'} = int($7); $filesys{$n,'gfiles'} = $8; $filesys{$n,'gblocks'} = &trunc_space($filesys{$n,'gblocks'}); $filesys{$n,'gfiles'} = &trunc_space($filesys{$n,'gfiles'}); $n++; } } elsif (/^(\S+)\s+(\d+)\s+(\d+)\s+(\d+)\s(.{0,15})\s+(\d+)\s+(\d+)\s+(\d+)(.*)/ || /^(.{13})(.{7})(.{7})(.{7})(.{12})(.{7})(.{7})(.{7})(.*)/) { $filesys{$n,'filesys'} = $1; $filesys{$n,'ublocks'} = int($2); $filesys{$n,'sblocks'} = int($3); $filesys{$n,'hblocks'} = int($4); $filesys{$n,'gblocks'} = $5; $filesys{$n,'ufiles'} = int($6); $filesys{$n,'sfiles'} = int($7); $filesys{$n,'hfiles'} = int($8); $filesys{$n,'gfiles'} = $9; $filesys{$n,'filesys'} =~ s/\s+$//g; $filesys{$n,'gblocks'} = &trunc_space($filesys{$n,'gblocks'}); $filesys{$n,'gfiles'} = &trunc_space($filesys{$n,'gfiles'}); $n++; } } close(QUOTA); return $n; } # get_user_grace(filesystem) # Returns an array containing btime, bunits, ftime, funits # The units can be 0=sec, 1=min, 2=hour, 3=day, 4=week, 5=month sub get_user_grace { local(@rv); $ENV{'EDITOR'} = $ENV{'VISUAL'} = "cat"; open(GRACE, "$config{'user_grace_command'} |"); while(<GRACE>) { if (/^fs (\S+) blocks time limit = ([0-9\.]+) (\S+), files time limit = ([0-9\.]+) (\S+)/ && $1 eq $_[0]) { if ($2 == 0) { push(@rv, 0, 0); } else { push(@rv, $2, $name_to_unit{$3}); } if ($4 == 0) { push(@rv, 0, 0); } else { push(@rv, $4, $name_to_unit{$5}); } } } close(GRACE); return @rv; } # default_grace() # Returns 0 if grace time can be 0, 1 if zero grace means default sub default_grace { return 1; } # edit_grace_file(data, filesystem, btime, bunits, ftime, funits) sub edit_grace_file { local($rv, $line); foreach $line (split(/\n/, $_[0])) { if ($line =~ /^fs (\S+) blocks time limit = ([0-9\.]+) (\S+), files time limit = ([0-9\.]+) (\S+)/ && $1 eq $_[1]) { # replace this line $line = "fs $_[1] blocks time limit = $_[2] $unit_to_name{$_[3]}, files time limit = $_[4] $unit_to_name{$_[5]}"; } $rv .= "$line\n"; } return $rv; } # grace_units() # Returns an array of possible units for grace periods sub grace_units { return ($text{'grace_seconds'}, $text{'grace_minutes'}, $text{'grace_hours'}, $text{'grace_days'}, $text{'grace_weeks'}, $text{'grace_months'}); } # quota_block_size(dir, device, filesystem) # Returns the size of quota blocks on some filesystem, or undef if unknown. # Always 1024, even though *filesystem* blocks are not! sub quota_block_size { return 1024; } # fs_block_size(dir, device, filesystem) # Returns the size of blocks on some filesystem, or undef if unknown. sub fs_block_size { if ($_[2] eq "ufs") { local $kout = `df -k $_[0]`; local $bout = `df -t $_[0]`; if ($kout =~ /\n\Q$_[1]\E\s+(\d+)/) { local $ks = $1; if ($bout =~ /total\s*:\s*(\d+)\s+blocks/) { local $bs = $1; return ($ks*1024) / $bs; } } } return 1024; } %name_to_unit = ( "sec", 0, "secs", 0, "min", 1, "mins", 1, "hour", 2, "hours", 2, "day", 3, "days", 3, "week", 4, "weeks", 4, "month", 5, "months", 5 ); foreach $k (keys %name_to_unit) { $unit_to_name{$name_to_unit{$k}} = $k; } 1;
Close