OXIESEC PANEL
- Current Dir:
/
/
home
/
cubot
/
bin
/
utils
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
02/03/2023 08:06:37 AM
rwxr-xr-x
📄
.auditreport.sh.swp
12 KB
02/03/2023 07:34:08 AM
rw-r--r--
📄
CollectReportData.sh
2.17 KB
02/03/2023 07:34:08 AM
rwxr-xr-x
📄
ComapreCubotTableData.sh
1.06 KB
02/03/2023 07:34:08 AM
rwxr-xr-x
📄
VBox.sh
1.59 KB
02/03/2023 07:34:08 AM
rw-r--r--
📄
auditreport.sh
1.35 KB
02/03/2023 07:34:08 AM
rwxr-xr-x
📄
cleanSRCid.sql
386 bytes
02/03/2023 07:34:08 AM
rw-r--r--
📄
cleancache.sh
8.89 KB
02/03/2023 07:34:08 AM
rwxr-xr-x
📄
compare_database.sh
148 bytes
02/03/2023 07:34:08 AM
rwxr-xr-x
📄
compressCSS.sh
262 bytes
02/03/2023 07:34:08 AM
rwxr-xr-x
📄
compressJS.sh
251 bytes
02/03/2023 07:34:08 AM
rwxr-xr-x
📄
cubbackup.sh
1.43 KB
02/03/2023 07:34:08 AM
rwxr-xr-x
📄
cubbackup_sync.sh
314 bytes
02/03/2023 07:34:08 AM
rwxr-xr-x
📄
cubmonitor.sh
3.77 KB
02/03/2023 07:34:08 AM
rwxr-xr-x
📄
cubotmail
29.64 KB
02/03/2023 07:34:08 AM
rwxr-xr-x
📄
esalesforce.pl
1.87 KB
02/03/2023 07:34:08 AM
rw-r--r--
📄
etl_xform_template.sh
543 bytes
02/03/2023 07:34:08 AM
rwxr-xr-x
📄
killrunaway.sh
609 bytes
02/03/2023 07:34:08 AM
rwxr-xr-x
📄
migrateSharedreports.sh
1.14 KB
02/03/2023 07:34:08 AM
rw-r--r--
📄
mysql2pgsql.perl
40.98 KB
02/03/2023 07:34:08 AM
rwxr-xr-x
📄
removenewlinechar.awk
292 bytes
02/03/2023 07:34:08 AM
rw-r--r--
📄
removenewlinechar.pl
534 bytes
02/03/2023 07:34:08 AM
rw-r--r--
📄
removenewlinechar2.awk
82 bytes
02/03/2023 07:34:08 AM
rw-r--r--
📄
renameCubUser.sh
2.38 KB
02/03/2023 07:34:08 AM
rw-r--r--
📄
sendmail.pl
2.13 KB
02/03/2023 07:34:08 AM
rwxr-xr-x
📄
updatealldb.sh
1.08 KB
02/03/2023 07:34:08 AM
rw-r--r--
📄
yuicompressor-2.4.6.jar
832.85 KB
02/03/2023 07:34:08 AM
rwxr-xr-x
📄
zap
1.86 KB
02/03/2023 07:34:08 AM
rwxr-xr-x
Editing: sendmail.pl
Close
#!/usr/bin/perl #Who is sending mail to RD'ns $from="cubot.bangalore\@robustdesigns.com"; #Whom to send $sendto="support\@robustdesigns.com"; #What shld be subject line $subject="!! Bangalore Server CUBOT Is Not Running !!"; #What message in body $message="Dear Sir,\n\nCUBOT is not running on Bangalore Server.\n\nIP : XXX.XXX.XXX.XXX\n"; $CUBLOGDIR="/home/cubot/logs/"; #Where is cubot log file to refer $cubotlog="$CUBLOGDIR/cubot.log"; #Disk to chk $disk{'/dev/hda1'}=25; ######################################################### ## Do Not Change After This ## ######################################################### $cubot = 0; $rdcubot=`/etc/init.d/rdcubot status` ; if($rdcubot =~ /running/){ $cubot = 1;# print "Working \n"; } else{ $rdcubot = "rdcubot service is not running"; } $http = 0; $cubhttpd=`/etc/init.d/cubhttpd status` ; if($cubhttpd =~ /running/){ $http = 1;# print "Working \n"; } else{ $cubhttpd = "cubhttpd service is not running"; } if(!($cubot & $http)){ open (MAIL, "|/usr/sbin/sendmail -t support\@robustdesigns.com "); print MAIL "From: $from\n"; print MAIL "To: $sendto \n"; print MAIL "Content-Type: text/plain\n"; print MAIL "Subject: $subject\n\n"; print MAIL "$message\n"; print MAIL "\n------------ Cubot Service Status ----------------\n"; print MAIL "\nStatus:\n"; print MAIL "$rdcubot\n$cubhttpd\n"; print MAIL "-------------- MySQL Status -------------- \n"; print MAIL `mysqladmin status -u cubot`; print MAIL "\n"; print MAIL "-------------- Disk Usage Status -------------- \n"; print MAIL `df -h`; print MAIL "\n"; print MAIL "-------------- IPCS Status -------------- \n"; print MAIL `ipcs -q`; print MAIL "\n"; print MAIL "-------------- Log File Size -------------- \n"; print MAIL `cd $CUBLOGDIR; ls -lh cubot.log; ls -lh access_log; ls -lh error_log; ls -lh etllogs/etl.log;`; print MAIL "\n"; print MAIL "\nPlease Do Not Reply.\n\nThanks.\n\n Regards,\nCUBOT Support, Robust Designs.\n"; print MAIL "\n--------------------------- C U B O T - L O G --------------------------------------\n\n"; print MAIL `tail -n100 $cubotlog`; close (MAIL); }