Class: AddVulnAttempts
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- AddVulnAttempts
- Defined in:
- db/migrate/20120625000004_add_vuln_attempts.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
16 17 18 |
# File 'db/migrate/20120625000004_add_vuln_attempts.rb', line 16 def self.down drop_table :vuln_attempts end |
.up ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'db/migrate/20120625000004_add_vuln_attempts.rb', line 3 def self.up create_table :vuln_attempts do |t| t.integer :vuln_id # Vuln table reference t. :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) end end |