Back
Type Name Operations
__pycache__ Open
account_review Open
autosuspend Open
check_software_mods Open
cms_tools Open
domainchecker Open
etc Open
extras Open
failsuspend Open
guds_modules Open
mailers Open
mitigatord Open
mysql Open
nlp_scripts Open
oldrads Open
ops Open
perl Open
python Open
suspended Open
temporary Open
README
account-review
alp.py
autossl_runner.sh
autosusprunner.sh
backup_scan.sh
blockip
check_apache
check_autossl
check_bandwidth
check_boxtrapper
check_cpu
check_crons
check_darkmailer.py
check_dcpumon
check_dns
check_domcount.sh
check_exim
check_hacks
check_imap
check_io
check_lve
check_mailchannels_dns
check_max_children
check_mem
check_misc
check_mysql
check_pacct
check_pop3
check_raid
check_server
check_size
check_software
check_spamd
check_traffic
check_user
check_zoneh
clean_exim.py
clean_moveuser
cms_counter.py
cms_creds
cms_dumpdb
cms_pw
cmspass.py
cpanel-api
cpumon
ctrl_alt_del
dcpumon.pl
disk_cleanup.py
dns-sync
docroot.py
du-tree
envinfo.py
exclude_rbl.py
exclude_sender
extract-vhost
find_warez
findbadscripts
fixwpcron.py
forensic.py
fraudhunter.py
generate_cpmove_tix
hostsfilemods
imap_io
killall911
lastcommcache.sh
legal_lock_down.sh
lil-cpanel
limit_bots
listacct
mail_sources.py
mailscan
mass_arp_fixer.py
mass_mysql_recover.py
megaclisas-status
modify-account
modsec_disable.py
move_generator.py
msp.pl
mysql_dstat
nlp
packandgo
pastebin
postmortem
procscrape
quarantine
quick_post
radsfunctions.sh
reap_fpm_orphans.sh
recent-cp
reclaim_suspensions
remote_dump
rescp.sh
reset_cpanel
reset_email
rotate_ip_addresses.py
rrdtooldisable.sh
rrdtoolenable.sh
sadatarunner.sh
send_customer_str
send_pp_email
server-load
setmaxemails
show-conns
software_report.py
sqltop
strmailer
suspend_domain
suspend_user
temp_apache_fix
unsuspend_user
unsusprunner.sh
update_spf
upgrade-check
vhost_data.py

File Transfer

Upload files to current directory

File Editor: check_crons

#!/bin/bash #load functions + banners if [ -f /opt/sharedrads/radsfunctions.sh ]; then source /opt/sharedrads/radsfunctions.sh else source /opt/dedrads/radsfunctions.sh fi CHECKUSER=$1 SESSIONID=$2 function pusage(){ echo echo "Usage:" echo " check_crons [username] - displays the crontab file for a user" echo " check_crons --recent - count frequency of recent cron executions" echo " check_crons --full - print last 50000 lines of cron log sorted by user" echo } if [ -z $1 ]; then pusage exit; fi if [ "$1" == "--help" ];then pusage exit; fi if [ "$1" == "--full" ];then echo "Displaying the last 50000 lines of /var/log/cron sorted by user:" echo sudo tail -50000 /var/log/cron | sort -k6 exit; fi if [ "$1" == "--recent" ];then echo "Displaying users with the most cronjob executions as found in /var/log/cron:" echo sudo cat /var/log/cron | awk '{print $6}' | sort | uniq -c | sort -nk1 exit; fi if [ -z $2 ]; then SESSIONID=`date +%s` DETAILED=YES fi EMPTY=NO cat /var/spool/cron/$CHECKUSER 1> /tmp/.$SESSIONID 2> /dev/null || EMPTY=TRU if [ "$EMPTY" == "NO" ]; then echo echo -e "\033[40;37;2m RADS has detected these custom cron jobs currently enabled for this account \033[0m" if [ "$RADSCOLORS" == "off" ]; then echo -en "\033[0m" else echo -en "\033[29;30;1m" fi #displays crons cat /tmp/.$SESSIONID echo #clear colors echo -en "\033[0m" fi #no session ID was received earlier, we were invoked directly, lets display add'l history: if [ "$DETAILED" == "YES" ]; then echo -e "\033[40;37;2m Displaying cron execution history for user's scheduled jobs \033[0m" if [ "$RADSCOLORS" == "off" ]; then echo -e "\033[0m" else echo -e "\033[34;1m" fi grep $CHECKUSER /var/log/cron echo -ne "\033[0m" rm -f /tmp/.$SESSIONID fi