SRG Posted March 22, 2017 Share Posted March 22, 2017 Items such cleaning the MRU list in Windows is such a common act, would it be good to add to a common library so it's not duplicated across payloads? There could be several common functions that are frequently used that could be called easily. win_ClearMRU() would be a simple call. payloads\library\common\*.sh Just source all sh files in that folder since Bash functions don't really add much overhead. Maybe have them included manually if you're concerned about expanding the namespace too much. Just a suggestion. Quote Link to comment Share on other sites More sharing options...
Darren Kitchen Posted March 23, 2017 Share Posted March 23, 2017 Exactly the purpose of bunny_helpers.sh and something I'll be covering here soon. Quote Link to comment Share on other sites More sharing options...
bg-wa Posted March 23, 2017 Share Posted March 23, 2017 I've started to compile a cross-platform cleanup script here: https://github.com/bg-wa/bashbunny-payloads/tree/master/payloads/library/ghost_cleanup It currently works on windows, mac and unity, and uses code from various recent episodes. I'll also be adding code I find in these forums soon. (Unmounting USB Storage, Network Device cleanup, etc.) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.