Avacostn - Moslem
Choose File
DIR :
Home
/
proc
/
3061873
/
..
/
411
/
..
/
136
/
..
/
..
/
scripts
/
puthuppa@68.178.173.116: ~ $
Edit File: 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 <<EOM; spamboxdisable command line options: -f : force, bypass 5 second sleep -q : quiet, do not provide any output on STDOUT -h : display this message and exit options 'f' and 'q' are useful when running this script as a part of an automated process (e.g. cron). EOM exit; } unless ( defined( $options{'q'} ) ) { print "??????????????????????????????????????????????????????????????????\n"; print "This will disable SpamAssassin's spambox delivery for all accounts\n"; print "on the server. If you do not wish to do this, then hit Ctrl-C now.\n"; print "??????????????????????????????????????????????????????????????????\n\n"; print "Sleeping for 5 seconds ... (Ctrl-C to abort) "; } unless ( defined( $options{'f'} ) ) { sleep(5); } unless ( defined( $options{'q'} ) ) { print "continuing.\n"; } if ( !-e '/etc/passwd' ) { die "/etc/passwd does not exist!"; } my @homedirs; my $passwdlock = Cpanel::SafeFile::safeopen( \*PASS, '/etc/passwd' ) || die "Unable to open /etc/passwd: $!"; while (<PASS>) { 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"; } }
Filemanager
Name
Size
Permission
Actions
None Directory
Close
Server Info
Hostname: 116.173.178.68.host.secureserver.net
IP Address: 68.178.173.116
PHP Version: 8.1.34
Server Software: Apache
HDD Total Space: 99.99 GB
HDD Free Space: 32.06 GB
Safe Mode: Disabled
Disable Functions: exec,passthru,shell_exec,system
Total Domains in Server: 1
System: Linux 116.173.178.68.host.secureserver.net 4.18.0-553.109.1.el8_10.x86_64 #1 SMP Mon Mar 2 09:33:18 EST 2026 x86_64
User Info
Username: puthuppa
User ID: 1102
Group ID: 1104