metasploit-framework
https://github.com/rapid7/metasploit-framework
Ruby
Metasploit Framework
Msf::Handler::ReverseTcpDoubleSSL::TcpReverseDoubleSSLSessionChannel#monitor_shell_stdout
Funnel data from the shell's stdout to +rsock+ +StreamAbstraction#monitor_rsock+ will deal with getting data from the client (user input). From there, it calls our write() below, funneling the data to the shell's stdin on the other side.
Edit
git clone [email protected]:rapid7/metasploit-framework.git
cd metasploit-framework
open lib/msf/core/handler/reverse_tcp_double_ssl.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Msf--Handler--ReverseTcpDoubleSSL--TcpReverseDoubleSSLSessionChannel-monitor_shell_stdout-for-pr
# Commit to gitgit add lib/msf/core/handler/reverse_tcp_double_ssl.rbgit commit -m "better docs for Msf::Handler::ReverseTcpDoubleSSL::TcpReverseDoubleSSLSessionChannel#monitor_shell_stdout"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Msf--Handler--ReverseTcpDoubleSSL--TcpReverseDoubleSSLSessionChannel-monitor_shell_stdout-for-pr
hub pull-request
# Celebrate!