Sha256: a7e0eb373f40cf0dacfcaff8cd8601d6524b30149ae40783814ef8061fbd2c48

Contents?: true

Size: 1.21 KB

Versions: 22

Compression:

Stored size: 1.21 KB

Contents

class AddExploitAttempts < ActiveRecord::Migration[4.2]

	def self.up
		create_table :exploit_attempts do |t|
			t.integer		:host_id       # Host table reference (primary)
			t.integer		:service_id    # Service table reference (optional)
			t.integer		:vuln_id       # Vuln table reference (optional)
			t.timestamp		:attempted_at  # Timestamp of when the session was opened or the module exited
			t.boolean		:exploited     # Whether or not the attempt succeeded
			t.string		:fail_reason   # Short string corresponding to a Msf::Exploit::Failure constant
			t.string		:username      # The user that tested this vulnerability
			t.text			:module        # The specific module name that was used
			t.integer		:session_id    # Database identifier of any opened session
			t.integer		:loot_id       # Database identifier of any 'proof' loot (for non-session exploits)
			t.integer       :port          # Port     -> Services are created/destroyed frequently and failed
			t.string        :proto         # Protocol |  attempts may be against closed ports.
		end

		add_column :hosts, :exploit_attempt_count, :integer, :default => 0
	end

	def self.down
		drop_table :exploit_attempts
		remove_column :hosts, :exploit_attempt_count
	end
end

Version data entries

22 entries across 22 versions & 2 rubygems

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