1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-10-29 18:07:27 +01:00
metasploit-framework/data/sql/postgres.sql
HD Moore f5298f5a94 The postgres plugin is updated and now works with autopwn/load/etc
git-svn-id: file:///home/svn/framework3/trunk@3904 4d416f70-5f16-0410-b530-b9f4589650da
2006-09-17 07:17:27 +00:00

47 lines
671 B
SQL

drop table hosts;
create table hosts (
id SERIAL PRIMARY KEY,
address VARCHAR(16) UNIQUE,
comm VARCHAR(255),
name VARCHAR(255),
state VARCHAR(255),
info VARCHAR(1024)
);
drop table services;
create table services (
id SERIAL PRIMARY KEY,
host_id INTEGER,
port INTEGER NOT NULL,
proto VARCHAR(16) NOT NULL,
state VARCHAR(255),
name VARCHAR(255),
info VARCHAR(1024)
);
drop table vulns;
create table vulns (
id SERIAL PRIMARY KEY,
service_id INTEGER,
name VARCHAR(255),
data TEXT
);
drop table refs;
create table refs (
id SERIAL PRIMARY KEY,
ref_id INTEGER,
name VARCHAR(512)
);
drop table vulns_refs;
create table vulns_refs (
ref_id INTEGER,
vuln_id INTEGER
);