CHips L MINI SHELL

CHips L pro

Current Path : /opt/zabbix_scripts/
Upload File :
Current File : //opt/zabbix_scripts/malicious.pastebinCronJobUsers.sh

#!/bin/bash
################################################################################################################
#                                                                                                              #
# !!!!!!!!! This file is automatically managed.  Do not edit directly.  Changes will be overwritten. !!!!!!!!! #
#                                                                                                              #
# Author:   William O.                                                                                         #
# Revision: 20201210.2253                                                                                      #
################################################################################################################


pastebinCronJobUsers=$(sudo grep -lr 'pastebin.com' /var/spool/cron/ | cut -d\/ -f5 | sort)
pastebinUsersOutput='/opt/zabbix_output/PastebinCronJobUsers.txt'

case $1 in
    "cron")
        for user in ${pastebinCronJobUsers[@]}
        do
            echo $user
        done | sort > $pastebinUsersOutput
        ;;
    "zabbix")
        cat $pastebinUsersOutput | wc -l
        ;;
    *)
        echo "Missing Argument"
        ;;
esac

Copyright 2K16 - 2K18 Indonesian Hacker Rulez