metasploit-framework

https://github.com/rapid7/metasploit-framework

Ruby

Metasploit Framework

Rex::Post::Meterpreter::Extensions::Stdapi::Net::SocketSubsystem::TcpServerChannel.request_handler

This is the request handler which is registered to the respective meterpreter instance via
Rex::Post::Meterpreter::Extensions::Stdapi::Net::Socket. All incoming requests from the meterpreter
for a 'tcp_channel_open' will be processed here. We create a new TcpClientChannel for each request
received and store it in the respective tcp server channels list of new pending client channels.
These new tcp client channels are passed off via a call the the tcp server channels accept() method.

Source | Google | Stack overflow

Edit

git clone [email protected]:rapid7/metasploit-framework.git

cd metasploit-framework

open lib/rex/post/meterpreter/extensions/stdapi/net/socket_subsystem/tcp_server_channel.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Rex--Post--Meterpreter--Extensions--Stdapi--Net--SocketSubsystem--TcpServerChannel-request_handler-for-pr


# Commit to git

git add lib/rex/post/meterpreter/extensions/stdapi/net/socket_subsystem/tcp_server_channel.rbgit commit -m "better docs for Rex::Post::Meterpreter::Extensions::Stdapi::Net::SocketSubsystem::TcpServerChannel.request_handler"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Rex--Post--Meterpreter--Extensions--Stdapi--Net--SocketSubsystem--TcpServerChannel-request_handler-for-pr

hub pull-request


# Celebrate!