Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

playing with sqlmap

  • Loading branch information...
commit 41df279d9b0f19f27ae41a8a6565158307a67554 1 parent 6e0f0ea
Adam Holt authored
5 app/controllers/sqlmap_controller.rb
... ... @@ -0,0 +1,5 @@
  1 +class SqlmapController < ApplicationController
  2 + def index
  3 + Insecure.where("name = #{params[:search]}")
  4 + end
  5 +end
2  app/models/insecure.rb
... ... @@ -0,0 +1,2 @@
  1 +class Insecure < ActiveRecord::Base
  2 +end
1  config/routes.rb
... ... @@ -1,3 +1,4 @@
1 1 Blank::Application.routes.draw do
2 2 match '/test', :to => "NginxLocationTest#show"
  3 + match '/insecure', :to => "Sqlmap#index"
3 4 end
9 db/migrate/20120208134759_create_insecures.rb
... ... @@ -0,0 +1,9 @@
  1 +class CreateInsecures < ActiveRecord::Migration
  2 + def change
  3 + create_table :insecures do |t|
  4 + t.string :name
  5 +
  6 + t.timestamps
  7 + end
  8 + end
  9 +end

0 comments on commit 41df279

Please sign in to comment.
Something went wrong with that request. Please try again.