metasploit-framework

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

Ruby

Metasploit Framework

MetasploitModule#port=

when we need to read from the keylogger,
we first "knock" the process by sending a USR1 signal.
the keylogger opens a local tcp port (22899 by default) momentarily
that we can connect to and read from (using cmd_exec(telnet ...)).

Source | Google | Stack overflow

Edit

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

cd metasploit-framework

open modules/post/osx/capture/keylog_recorder.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-MetasploitModule-port--for-pr


# Commit to git

git add modules/post/osx/capture/keylog_recorder.rbgit commit -m "better docs for MetasploitModule#port="


# Open pull request

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

hub fork

git push <your name> -your-name--update-docs-MetasploitModule-port--for-pr

hub pull-request


# Celebrate!