byt3bl33d3r/SILENTTRINITY
View on GitHubIf running more than one module at the same time, output gets mixed up
Open
#93 opened on Sep 10, 2019
bugenhancementhelp wanted
Repository metrics
- Stars
- (2,340 stars)
- PR merge metrics
- (No merged PRs in 30d)
Description
Sessions run modules/tasks asynchronously, the way this is currently implemented (threads) has the unfortunate consequence of mixing up module's output if more than one is running at the same time because we're just hooking STDout using Console.SetOutput(). (https://github.com/byt3bl33d3r/SILENTTRINITY/blob/master/core/teamserver/data/stage.boo#L359-L379)
We really have only two options (unless i'm missing something obvious) to fix this:
- We run each module in it's own separate process instead of a thread (which would allow us to keep using the
printstatement for a modules output but would complicate the code considerably ) - Pass a new
StringBuilder()object to each module and append the output to it (this would allow us to keep using threads but we won't be able to use theprintstatement anymore to handle output which is really pretty)