metasploit-framework

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

Ruby

Metasploit Framework

Msf::DBManager::SessionEvent#report_session_event

Record a session event in the database

opts MUST contain one of:
+:session+:: the Msf::Session OR the ::Mdm::Session we are reporting
+:etype+::   event type, enum: command, output, upload, download, filedelete

opts may contain
+:output+::      the data for an output event
+:command+::     the data for an command event
+:remote_path+:: path to the associated file for upload, download, and filedelete events
+:local_path+::  path to the associated file for upload, and download

Source | Google | Stack overflow

Edit

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

cd metasploit-framework

open lib/msf/core/db_manager/session_event.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Msf--DBManager--SessionEvent-report_session_event-for-pr


# Commit to git

git add lib/msf/core/db_manager/session_event.rbgit commit -m "better docs for Msf::DBManager::SessionEvent#report_session_event"


# Open pull request

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

hub fork

git push <your name> -your-name--update-docs-Msf--DBManager--SessionEvent-report_session_event-for-pr

hub pull-request


# Celebrate!