Permalink
Browse files

playing with sqlmap

  • Loading branch information...
1 parent 6e0f0ea commit 41df279d9b0f19f27ae41a8a6565158307a67554 @omgitsads committed Feb 8, 2012
@@ -0,0 +1,5 @@
+class SqlmapController < ApplicationController
+ def index
+ Insecure.where("name = #{params[:search]}")
+ end
+end
View
@@ -0,0 +1,2 @@
+class Insecure < ActiveRecord::Base
+end
View
@@ -1,3 +1,4 @@
Blank::Application.routes.draw do
match '/test', :to => "NginxLocationTest#show"
+ match '/insecure', :to => "Sqlmap#index"
end
@@ -0,0 +1,9 @@
+class CreateInsecures < ActiveRecord::Migration
+ def change
+ create_table :insecures do |t|
+ t.string :name
+
+ t.timestamps
+ end
+ end
+end

0 comments on commit 41df279

Please sign in to comment.