I use metasploit latest version. I know autoscripting with meterpreter payloads. But I need to know how to do it with a shell/bind_tcp payload.
I want to write a script for when exploit is completed and command shell is opened do this:
cd c:&mkdir pwned