So, I have been working on a project for class, and I have half of it down, but the second half I have been googling and am unsure how to go about it. Here is the question: You suspect that there is a "bad" program (called “badprog” that launches at odd times on your server and does nefarious things such as logging onto a remote machine via ssh/sftp and copying files off of your server. A) Write a script that does this (you need not schedule it, just run it in the background). B) Next, write a script to detect “badprog", and shut it down.
I have finished part A (pretty much just using the scp command), but I am unsure how to do part B. any help would be appreciated! (I am using Linux Mint)