Skip to content

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Zapotek committed Feb 14, 2012
1 parent 9da9181 commit 550403c
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,52 @@
Extracts input (link, form, cookie, header) vectors/params from HTTP requests
and exports them in a suitable format for use with [Arachni](http://arachni-scanner.com)'s VectorFeed plug-in
in order to perform extremely focused audits or unit-tests.

## Installation

### Gemfile

```ruby
gem 'rack-arachni-vectorfeed', :git => 'git://github.com/Arachni/rack-arachni-vectorfeed.git'
```

### Source

```
git clone git://github.com/Arachni/rack-arachni-vectorfeed.git
cd rack-arachni-vectorfeed
rake install
```

## Example

You can use it in any Rack-based app like so:

```ruby
require 'rubygems'
require 'sinatra'
require 'sinatra/contrib'

require 'rack/arachni_vectorfeed'

use Rack::ArachniVectorFeed, outfile: 'vectors.yml'

get "/" do
cookies[:cookie_input] ||= 'cookie_blah'
'hello'
end

get "/example" do
<<EOHTML
<form method='post' action='?get_input=ha!'>
<input name='test' />
<input type='submit' />
</form>
EOHTML
end

post '/example' do
p params
end

```

0 comments on commit 550403c

Please sign in to comment.