Ne0nd0g / merlin

Merlin is a cross-platform post-exploitation HTTP/2 Command & Control server and agent written in golang.
GNU General Public License v3.0
5.07k stars 801 forks source link

Add Linux Shell History Manipulation and Persistence Modules #73

Closed ForensicITGuy closed 5 years ago

ForensicITGuy commented 5 years ago

Pull Request (PR) Checklist

Change Type

Description

Adding modules to clear and prevent saving shell history in Linux.

Also adding modules to set crontab and shell profile persistence in Linux.

Would love a second set of eyes to look at these modules, I'm having trouble with them. Some of them don't seem to like the JSON variables. I've executed the commands manually wrapped in a sh -c and they work but translating into JSON set down some stumbling blocks.