rapid7/metasploit-framework — pull request #2981 by BorjaMerino (2014-02-12 03:38:46+00:00)
Title: added ACL Bind Shell payload

Single tcp bind shell with ACL support (only the IP you set will get the shell). It's just an alternative to the classic bind shell. I think it could be useful if you do not want someone else to steal your shell with a simple netcat. I used the shell_bind_tcp of Stephen Fewer and I modified the accept() call to check the client IP ( this is an increase of 22 bytes.). If the IP is not the one defined in AHOST (Allowed IP) the descriptor is closed and the socket waits for another connection.

I add .asm files, the payload and the respective handler (I used the bind shell handler with a couple of modifications). Let me know other changes needed.