Take the 2-minute tour ×
Information Security Stack Exchange is a question and answer site for Information security professionals. It's 100% free, no registration required.

I sometimes do reverse shells on metasploit but I'm not sure when my target will actually execute the payload. I would like an alarm of some sort to tell me when he does. this can easily be done in a script.

Is there a way for metasploit to execute a script once he connects to my terminal? I am using that "exploit/multi/handler" thing for the incoming connection.

share|improve this question

1 Answer 1

Yes it is possible have a look at http://www.digininja.org/metasploit/session_created.php it explains how to do it!

Also useful http://seclists.org/metasploit/2010/q1/87

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.