public
Description: Ronin SQL is a Ruby library for Ronin that provids support for SQL related security tasks.
Homepage: http://ronin.rubyforge.org/sql/
Clone URL: git://github.com/postmodern/ronin-sql.git
name age message
file .gitignore Sat Sep 12 23:04:42 -0700 2009 Added the YARD documentation generation task. [postmodern]
file COPYING.txt Mon Dec 24 02:30:45 -0800 2007 * Refactoring continues, added Hoe build enviro... [postmodern]
file History.txt Thu Sep 24 22:18:48 -0700 2009 Added a note about requiring YARD >= 0.2.3.5. [postmodern]
file Manifest.txt Wed Nov 04 03:06:31 -0800 2009 Added a SQL Injection scanner test to Ronin::Sc... [postmodern]
file README.txt Tue Oct 20 21:42:13 -0700 2009 Updated the list of URLs in the README file. [postmodern]
file Rakefile Wed Nov 25 02:00:41 -0800 2009 Require yard >= 0.4.0. [postmodern]
directory bin/ Sun Sep 20 15:22:35 -0700 2009 Added a ronin-sql utility. [postmodern]
directory lib/ Wed Nov 04 04:17:25 -0800 2009 Version bump. [postmodern]
directory spec/ Wed Nov 04 04:24:16 -0800 2009 Made sure specs require 'spec_helper' and 'code... [postmodern]
directory tasks/ Wed Nov 25 02:00:41 -0800 2009 Require yard >= 0.4.0. [postmodern]
README.txt
= Ronin SQL

* http://ronin.rubyforge.org/sql/
* http://github.com/postmodern/ronin-sql
* http://github.com/postmodern/ronin-sql/issues
* http://groups.google.com/group/ronin-ruby
* irc.freenode.net #ronin

== DESCRIPTION:

Ronin SQL is a Ruby library for Ronin that provids support for SQL related
security tasks.

Ronin is a Ruby platform for exploit development and security research.
Ronin allows for the rapid development and distribution of code, exploits
or payloads over many common Source-Code-Management (SCM) systems.

=== Ruby

Ronin's Ruby environment allows security researchers to leverage Ruby with
ease. The Ruby environment contains a multitude of convenience methods
for working with data in Ruby, a Ruby Object Database, a customized Ruby
Console and an extendable command-line interface.

=== Extend

Ronin's more specialized features are provided by additional Ronin
libraries, which users can choose to install. These libraries can allow
one to write and run Exploits and Payloads, scan for PHP vulnerabilities,
perform Google Dorks  or run 3rd party scanners.

=== Publish

Ronin allows users to publish and share code, exploits, payloads or other
data via Overlays. Overlays are directories of code and data that can be
hosted on any SVN, Hg, Git or Rsync server. Ronin makes it easy to create,
install or update Overlays.

== FEATURES:

* Provides an Domain Specific Language (DSL) for crafting normal SQL and
  SQL injections.
* Provides tests for finding SQL injections.

== SYNOPSIS:

* Start the Ronin Console with Ronin SQL preloaded:

    $ ronin-sql

== EXAMPLES:

* Generate valid SQL using the Ronin SQL DSL:

    Code.sql {
      select(:from => :users, :where => (name == 'bob'))
    }.to_s
    # => "SELECT * FROM users WHERE name = 'bob'"

* Generate valid SQL injections using the Ronin SQL injection DSL:

    Code.sql_injection {
      escape_string { has_table?(:users) }
    }.to_s
    # => "' AND (SELECT count(*) FROM users) = 1 --"

* Test a URL for SQL Injection (SQLi):

    require 'ronin/sql'

    url = URI('http://redteatrosalternativos.com/_05enlaces/links/phpHoo3.php?viewCat=1')
    url.has_sqli?
    # => true

* Get the first viable SQLi vulnerability:

    url.first_sqli
    # => #<Ronin::SQL::Injection:0x67d6d38cba60 @http_method=:get, @url=#<URI::HTTP:0x67d6d8697190 
    URL:http://redteatrosalternativos.com/_05enlaces/links/phpHoo3.php?viewCat=1>, @params={:http_method=>:get}, 
    @sql_options={:escape=>"1"}, @param="viewCat">

* Scan a URL for SQLi vulnerabilities:

    url.sqli_scan
    # => [#<Ronin::SQL::Injection:0x67d6d38792d8 @http_method=:get, @url=#<URI::HTTP:0x67d6d8697190 
    URL:http://redteatrosalternativos.com/_05enlaces/links/phpHoo3.php?viewCat=1>, @params={:http_method=>:get}, 
    @sql_options={:escape=>"1"}, @param="viewCat">]

== REQUIREMENTS:

* {ronin}[http://ronin.rubyforge.org/] >= 0.3.0
* {ronin-web}[http://ronin.rubyforge.org/web/] >= 0.2.0

== INSTALL:

  $ sudo gem install ronin-sql

== LICENSE:

Ronin SQL - A Ruby library for Ronin that provids support for SQL related
security tasks.

Copyright (c) 2006-2009 Hal Brodigan (postmodern.mod3 at gmail.com)

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA