metasploit-framework

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

Ruby

Metasploit Framework

RbMysql#quote

Escape special character in MySQL.
=== Note
In Ruby 1.8, this is not safe for multibyte charset such as 'SJIS'.
You should use place-holder in prepared-statement.

Source | Google | Stack overflow

Edit

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

cd metasploit-framework

open lib/rbmysql.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-RbMysql-quote-for-pr


# Commit to git

git add lib/rbmysql.rbgit commit -m "better docs for RbMysql#quote"


# Open pull request

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

hub fork

git push <your name> -your-name--update-docs-RbMysql-quote-for-pr

hub pull-request


# Celebrate!