One Hat Cyber Team
Your IP :
3.147.42.3
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 :
~
/
opt
/
sharedrads
/
Edit File:
dcpumon.pl
#!/usr/bin/perl eval 'exec /usr/bin/perl -S $0 ${1+"$@"}' if $running_under_some_shell; # this emulates #! processing on NIH machines. # (remove #! line above if indigestible) eval '$'.$1.'$2;' while $ARGV[0] =~ /^([A-Za-z_0-9]+=)(.*)/ && shift; # process any FOO=bar switches $, = ' '; # set output field separator $\ = "\n"; # set output record separator my $DCPUMONVIEW="/usr/local/cpanel/bin/dcpumonview"; #if ( ! -f $DCPUMONVIEW ) { # print "Can't find $DCPUMONVIEW!"; # exit 1; #} my @DCPUMONDATA=`$DCPUMONVIEW`; #while (<@DCPUMONDATA>) { foreach (@DCPUMONDATA) { chomp; # strip record separator s/<[\/]t.>|<t.>|<t. bgcolor=#......>|<t. colspan=.>/ /g; #if (s/(root|mailnull|mailman|mysql|nobody)/$1 [system]/; #s/([a-z]) /$1 /; if (! /Top( |\t)+Process/ && ! /^$/ && ! /^( |\t)+$/ ) { s/(root|mailnull|mailman|mysql|nobody|jabber|daemon)/$1 [system]/; #if (! /[a-z]+[0-9]+/) { s/([a-z]+ )/$1 [system]/; } s/(32[0-9][0-9][0-9])/$1 [unknown]/; #print $_; #my ($count)=$_=~y/\s/ /; #print $count+1; my ($user, $site, $cpu,$mem,$mysql) = split(' ',$_,-1); #if ($site =~ / +/){ $site="[unknown]"; } #$site="foo"; printf("%25s %35s %10s %10s %10s \n", $user, $site, $cpu,$mem,$mysql ); } }
Simpan