-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adjusted some supporting documentation around DB usage
adjusted build file to work with db libs adjusted version to 3.0
- Loading branch information
cseifert
committed
Oct 24, 2009
1 parent
b82e914
commit 1736ddc
Showing
6 changed files
with
272 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,12 +5,16 @@ public class Server | |
public Server(String[] args) | ||
{ | ||
System.out.println("PROJECT: Capture-HPC\n" + | ||
"VERSION: 2.5\n" + | ||
"DATE: Apr 25, 2008\n" + | ||
"VERSION: 3.0\n" + | ||
"DATE: Oct 24, 2009\n" + | ||
"COPYRIGHT HOLDER: Victoria University of Wellington, NZ\n" + | ||
"AUTHORS:\n" + | ||
"\tChristian Seifert ([email protected])\n" + | ||
"\tRamon Steenson([email protected])\n" + | ||
"\tVan Lam Le ([email protected])\n" + | ||
"\n" + | ||
"For help, please refer to Capture-HPC mailing list at:\n" + | ||
"\thttps://public.honeynet.org/mailman/listinfo/capture-hpc" + | ||
"\n" + | ||
"Capture-HPC is free software; you can redistribute it and/or modify\n" + | ||
"it under the terms of the GNU General Public License, V2 as published by\n" + | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
create table clientprogram ( | ||
clientprogram_id serial, | ||
name varchar(100), | ||
PRIMARY KEY(clientprogram_id) | ||
); | ||
|
||
create table os ( | ||
os_id serial, | ||
name varchar(100), | ||
PRIMARY KEY(os_id) | ||
); | ||
|
||
create table browser ( | ||
browser_id serial, | ||
name varchar(100), | ||
PRIMARY KEY(browser_id) | ||
); | ||
|
||
create table status ( | ||
status_id char(1), | ||
name varchar(100), | ||
PRIMARY KEY(status_id) | ||
); | ||
|
||
create table honeypot ( | ||
honeypot_id serial, | ||
ipaddress char(15), | ||
port integer, | ||
status char(1), | ||
Description varchar(500), | ||
PRIMARY KEY(honeypot_id) | ||
); | ||
|
||
create table vmserver ( | ||
vmserver_id serial, | ||
ipaddress char(15), | ||
port integer, | ||
username varchar(50), | ||
password varchar(50), | ||
honeypot_id integer references honeypot(honeypot_id), | ||
PRIMARY KEY(vmserver_id) | ||
); | ||
|
||
create table vmachine ( | ||
vmachine_id serial, | ||
path varchar(500), | ||
username varchar(50), | ||
password varchar(50), | ||
vmserver_id integer references vmserver(vmserver_id), | ||
os_id integer references os(os_id), | ||
browser_id integer references browser(browser_id), | ||
PRIMARY KEY(vmachine_id) | ||
); | ||
|
||
create table operation ( | ||
operation_id serial, | ||
description varchar(500), | ||
visitstarttime char(23), | ||
visitfinishtime char(23), | ||
honeypot_id integer references honeypot(honeypot_id), | ||
PRIMARY KEY(operation_id) | ||
); | ||
|
||
|
||
create table url (url_id serial, | ||
url varchar(500) not null, | ||
currentstatus char(1) references status(status_id), | ||
lastvisittime char(23), | ||
operation_id integer references operation(operation_id), | ||
PRIMARY KEY(url_id) | ||
); | ||
|
||
create table url_operation ( | ||
url_id integer references url(url_id), | ||
operation_id integer references operation(operation_id), | ||
clientprogram_id integer references clientprogram(clientprogram_id), | ||
visitstarttime char(23), | ||
visitfinishtime char(23), | ||
status_id char(1) references status(status_id), | ||
webserverip char(15), | ||
PRIMARY KEY(url_id, operation_id) | ||
); | ||
|
||
create table file ( | ||
url_id integer references url(url_id), | ||
operation_id integer references operation(operation_id), | ||
filename varchar(500), | ||
content mediumblob, | ||
PRIMARY KEY(url_id, operation_id, filename) | ||
); | ||
|
||
create table event ( | ||
event_id serial, | ||
url_id integer references url(url_id), | ||
operation_id integer references operation(operation_id), | ||
type varchar(50), | ||
time varchar(23), | ||
process varchar(500), | ||
action varchar(50), | ||
object1 varchar(500), | ||
object2 varchar(500), | ||
PRIMARY KEY(event_id) | ||
); | ||
|
||
|
||
create table error ( | ||
url_id integer references url(url_id), | ||
operation_id integer references operation(operation_id), | ||
majorerror varchar(50), | ||
minorerror varchar(50), | ||
PRIMARY KEY(url_id, operation_id) | ||
); | ||
|
||
insert into status(status_id,name) values('B', 'benign'); | ||
insert into status(status_id, name) values('M', 'malicious'); | ||
insert into status(status_id, name) values('E', 'error'); | ||
insert into clientprogram(name) values('iexplorebulk'); | ||
insert into clientprogram(name) values('iexplore'); | ||
insert into clientprogram(name) values('safari'); | ||
insert into clientprogram(name) values('firefox'); | ||
insert into clientprogram(name) values('opera'); | ||
insert into clientprogram(name) values('oowriter'); | ||
insert into clientprogram(name) values('acrobatreader'); | ||
insert into clientprogram(name) values('word'); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
create table clientprogram ( | ||
clientprogram_id serial, | ||
name varchar(100), | ||
CONSTRAINT clientprogram_pk PRIMARY KEY(clientprogram_id) | ||
); | ||
|
||
create table os ( | ||
os_id serial, | ||
name varchar(100), | ||
CONSTRAINT os_pk PRIMARY KEY(os_id) | ||
); | ||
|
||
create table browser ( | ||
browser_id serial, | ||
name varchar(100), | ||
CONSTRAINT browser_pk PRIMARY KEY(browser_id) | ||
); | ||
|
||
create table status ( | ||
status_id char(1), | ||
name varchar(100), | ||
CONSTRAINT status_pk PRIMARY KEY(status_id) | ||
); | ||
|
||
create table honeypot ( | ||
honeypot_id serial, | ||
ipaddress inet, | ||
port integer, | ||
status char(1), | ||
Description varchar, | ||
CONSTRAINT honeypot_pk PRIMARY KEY(honeypot_id) | ||
); | ||
|
||
create table vmserver ( | ||
vmserver_id serial, | ||
ipaddress inet, | ||
port integer, | ||
username varchar(50), | ||
password varchar(50), | ||
honeypot_id integer references honeypot(honeypot_id), | ||
CONSTRAINT vmserver_pk PRIMARY KEY(vmserver_id) | ||
); | ||
|
||
create table vmachine ( | ||
vmachine_id serial, | ||
path varchar, | ||
username varchar(50), | ||
password varchar(50), | ||
vmserver_id integer references vmserver(vmserver_id), | ||
os_id integer references os(os_id), | ||
browser_id integer references browser(browser_id), | ||
CONSTRAINT vmachine_pk PRIMARY KEY(vmachine_id) | ||
); | ||
|
||
create table operation ( | ||
operation_id serial, | ||
description varchar, | ||
visitstarttime timestamp, | ||
visitfinishtime timestamp, | ||
honeypot_id integer references honeypot(honeypot_id), | ||
CONSTRAINT operation_pk PRIMARY KEY(operation_id) | ||
); | ||
|
||
|
||
create table url (url_id serial, | ||
url varchar not null, | ||
currentstatus char(1) references status(status_id), | ||
lastvisittime timestamp, | ||
operation_id integer references operation(operation_id), | ||
CONSTRAINT url_pk PRIMARY KEY(url_id) | ||
); | ||
|
||
create table url_operation ( | ||
url_id integer references url(url_id), | ||
operation_id integer references operation(operation_id), | ||
clientprogram_id integer references clientprogram(clientprogram_id), | ||
visitstarttime timestamp, | ||
visitfinishtime timestamp, | ||
status_id char(1) references status(status_id), | ||
webserverip inet, | ||
CONSTRAINT url_operation_pk PRIMARY KEY(url_id, operation_id) | ||
); | ||
|
||
create table file ( | ||
url_id integer references url(url_id), | ||
operation_id integer references operation(operation_id), | ||
filename varchar, | ||
content bytea, | ||
CONSTRAINT file_pk PRIMARY KEY(url_id, operation_id, filename) | ||
); | ||
|
||
create table event ( | ||
event_id serial, | ||
url_id integer references url(url_id), | ||
operation_id integer references operation(operation_id), | ||
type varchar(50), | ||
time timestamp, | ||
process varchar, | ||
action varchar(50), | ||
object1 varchar, | ||
object2 varchar, | ||
CONSTRAINT event_pk PRIMARY KEY(event_id) | ||
); | ||
|
||
create table error ( | ||
url_id integer references url(url_id), | ||
operation_id integer references operation(operation_id), | ||
majorerror varchar(50), | ||
minorerror varchar(50), | ||
CONSTRAINT error_pk PRIMARY KEY(url_id, operation_id) | ||
); | ||
|
||
|
||
|
||
insert into status(status_id,name) values('B', 'benign'); | ||
insert into status(status_id, name) values('M', 'malicious'); | ||
insert into status(status_id, name) values('E', 'error'); | ||
insert into clientprogram(name) values('iexplorebulk'); | ||
insert into clientprogram(name) values('iexplore'); | ||
insert into clientprogram(name) values('safari'); | ||
insert into clientprogram(name) values('firefox'); | ||
insert into clientprogram(name) values('opera'); | ||
insert into clientprogram(name) values('oowriter'); | ||
insert into clientprogram(name) values('acrobatreader'); | ||
insert into clientprogram(name) values('word'); |