chvancooten / NimPlant

A light-weight first-stage C2 implant written in Nim.
MIT License
779 stars 109 forks source link

Periodic screenshot feature #15

Open sl4cky opened 1 year ago

sl4cky commented 1 year ago

Feature Description Would be nice to add a feature that allows to issue the screenshot feature every second for a specific amount of time like in CS

chvancooten commented 1 year ago

Thanks, I like this suggestion! It shouldn't be too much work to implement repeat logic for the screenshot command (or any command, for that matter). I would generalize this a bit and maybe implement it as a repeat [time] [command] [args] syntax or similar.

I don't have too much time to work on Nimplant for now so I'll leave this open, but it's added to the list :). PRs also most welcome on this.

sl4cky commented 1 year ago

Okay understood, I can try to sit on it, would this require the screenwatch tool to be spawned in a new thread to not stop the client?

chvancooten commented 1 year ago

That's a good question, it could be implemented in its own thread but given the fact that Nimplant is mostly built for synchronous operations that could cause some issues. An alternative would be to have the server side silently issue the command periodically.