Sha256: 02f74876a39f40e0e611bb48a870ae914c67e4f48102674ed833fff351de00c2

Contents?: true

Size: 1.21 KB

Versions: 22

Compression:

Stored size: 1.21 KB

Contents

class AddWebTables < ActiveRecord::Migration[4.2]

	def self.up
		create_table :web_sites do |t|
			t.integer   :service_id, :null => false
			t.timestamps null: false
			t.string    :vhost, :limit => 2048
			t.text      :comments
			t.text      :options
		end

		create_table :web_pages do |t|
			t.integer   :web_site_id, :null => false
			t.timestamps null: false
			t.text      :path
			t.text      :query
			t.integer   :code, :null => false
			t.text      :cookie
			t.text      :auth
			t.text      :ctype
			t.timestamp :mtime
			t.text      :location
			t.text      :body
			t.text      :headers
		end

		create_table :web_forms do |t|
			t.integer   :web_site_id, :null => false
			t.timestamps null: false
			t.text      :path
			t.string    :method, :limit => 1024
			t.text      :params
		end

		create_table :web_vulns do |t|
			t.integer   :web_site_id, :null => false
			t.timestamps null: false
			t.text      :path
			t.string    :method, :limit => 1024
			t.text      :params
			t.text      :pname
			t.text      :proof
			t.integer   :risk
			t.string    :name,    :limit => 1024
		end

	end

	def self.down
		drop_table :web_sites
		drop_table :web_pages
		drop_table :web_forms
		drop_table :web_vulns
	end
end


Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
wg-metasploit_data_models-4.1.4.02 db/migrate/20101001000000_add_web_tables.rb
metasploit_data_models-6.0.5 db/migrate/20101001000000_add_web_tables.rb
metasploit_data_models-6.0.4 db/migrate/20101001000000_add_web_tables.rb
metasploit_data_models-6.0.3 db/migrate/20101001000000_add_web_tables.rb
metasploit_data_models-6.0.2 db/migrate/20101001000000_add_web_tables.rb
metasploit_data_models-6.0.1 db/migrate/20101001000000_add_web_tables.rb
metasploit_data_models-6.0.0 db/migrate/20101001000000_add_web_tables.rb
metasploit_data_models-5.0.6 db/migrate/20101001000000_add_web_tables.rb
metasploit_data_models-5.0.5 db/migrate/20101001000000_add_web_tables.rb
metasploit_data_models-5.0.4 db/migrate/20101001000000_add_web_tables.rb
metasploit_data_models-5.0.3 db/migrate/20101001000000_add_web_tables.rb
metasploit_data_models-5.0.2 db/migrate/20101001000000_add_web_tables.rb
metasploit_data_models-5.0.1 db/migrate/20101001000000_add_web_tables.rb
metasploit_data_models-5.0.0 db/migrate/20101001000000_add_web_tables.rb
metasploit_data_models-4.1.4 db/migrate/20101001000000_add_web_tables.rb
metasploit_data_models-4.1.3 db/migrate/20101001000000_add_web_tables.rb
metasploit_data_models-4.1.2 db/migrate/20101001000000_add_web_tables.rb
metasploit_data_models-4.1.1 db/migrate/20101001000000_add_web_tables.rb
metasploit_data_models-4.1.0 db/migrate/20101001000000_add_web_tables.rb
metasploit_data_models-4.0.2 db/migrate/20101001000000_add_web_tables.rb