metasploit-framework

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

Ruby

Metasploit Framework

ResponseDataHelper#to_ar

Converts a Hash or JSON string to an ActiveRecord object.
Importantly, this retains associated objects if they are in the JSON string.

Modified from https://github.com/swdyh/toar/
Credit to https://github.com/swdyh

Source | Google | Stack overflow

Edit

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

cd metasploit-framework

open lib/metasploit/framework/data_service/remote/http/response_data_helper.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-ResponseDataHelper-to_ar-for-pr


# Commit to git

git add lib/metasploit/framework/data_service/remote/http/response_data_helper.rbgit commit -m "better docs for ResponseDataHelper#to_ar"


# Open pull request

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

hub fork

git push <your name> -your-name--update-docs-ResponseDataHelper-to_ar-for-pr

hub pull-request


# Celebrate!