mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-11-12 11:52:01 +01:00
7fc40e4734
git-svn-id: file:///home/svn/framework3/trunk@3902 4d416f70-5f16-0410-b530-b9f4589650da
42 lines
751 B
SQL
42 lines
751 B
SQL
drop table hosts;
|
|
create table hosts (
|
|
'id' INTEGER PRIMARY KEY NOT NULL,
|
|
'address' VARCHAR(16) UNIQUE,
|
|
'comm' VARCHAR(255),
|
|
'name' VARCHAR(255),
|
|
'state' VARCHAR(255),
|
|
'desc' VARCHAR(1024)
|
|
);
|
|
|
|
drop table services;
|
|
create table services (
|
|
'id' INTEGER PRIMARY KEY NOT NULL,
|
|
'host_id' INTEGER,
|
|
'port' INTEGER NOT NULL,
|
|
'proto' VARCHAR(16) NOT NULL,
|
|
'state' VARCHAR(255),
|
|
'name' VARCHAR(255),
|
|
'desc' VARCHAR(1024)
|
|
);
|
|
|
|
drop table vulns;
|
|
create table vulns (
|
|
'id' INTEGER PRIMARY KEY NOT NULL,
|
|
'service_id' INTEGER,
|
|
'name' VARCHAR(1024),
|
|
'data' TEXT
|
|
);
|
|
|
|
drop table refs;
|
|
create table refs (
|
|
'id' INTEGER PRIMARY KEY NOT NULL,
|
|
'ref_id' INTEGER,
|
|
'name' VARCHAR(512)
|
|
);
|
|
|
|
drop table vulns_refs;
|
|
create table vulns_refs (
|
|
'ref_id' INTEGER,
|
|
'vuln_id' INTEGER
|
|
);
|