1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-11-12 11:52:01 +01:00
metasploit-framework/data/sql/migrate/20100824151500_add_exploited_table.rb
Tod Beardsley 1db9d8eb01 Fixes #2444. Adds an ExploitedHost table, adds the db_exploited command, adds the report_exploit() function.
Tested with meterpreter, shell, and clientside exploit sessions. 


git-svn-id: file:///home/svn/framework3/trunk@10130 4d416f70-5f16-0410-b530-b9f4589650da
2010-08-24 21:57:04 +00:00

17 lines
371 B
Ruby

class AddExploitedTable < ActiveRecord::Migration
def self.up
create_table :exploited_hosts do |t|
t.integer :host_id, :null => false
t.integer :service_id
t.string :session_uuid, :limit => 8
t.string :name, :limit => 2048
t.string :payload, :limit => 2048
t.timestamps
end
end
def self.down
drop_table :exploited_hosts
end
end