Sometimes meterpreter crashes unintendedly due to some not yet discovered bugs :(
In many pentest siturations we'd like the meterpreter session to be automatically restarted if crashed.(e.g. Lots of exploit works only in first-time run)
I'm thinking of creating a new watchdog process, keeping watching the main process detecting if it's zombied or crashed, and then forking a new main process to recover.
All persistence scripts I found are targeting windows and assuming SYSTEM privilege :(
Sometimes meterpreter crashes unintendedly due to some not yet discovered bugs :( In many pentest siturations we'd like the meterpreter session to be automatically restarted if crashed.(e.g. Lots of exploit works only in first-time run) I'm thinking of creating a new watchdog process, keeping watching the main process detecting if it's zombied or crashed, and then forking a new main process to recover. All persistence scripts I found are targeting windows and assuming SYSTEM privilege :(