-
Notifications
You must be signed in to change notification settings - Fork 288
/
warberryDBCreation
79 lines (73 loc) · 2.06 KB
/
warberryDBCreation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
CREATE TABLE common_war_info
(
WarberryCommonID INTEGER PRIMARY KEY,
WarberrySession INTEGER,
CIDR TEXT,
netmask TEXT,
internal_IP TEXT,
external_ip TEXT,
FOREIGN KEY (WarberrySession) REFERENCES warberry_session (WarberrySessionID) DEFERRABLE INITIALLY DEFERRED
);
CREATE TABLE war_blues
(
Warberry_blueID INTEGER PRIMARY KEY,
WarberrySession INTEGER,
blueName TEXT,
blueDevice TEXT,
FOREIGN KEY (WarberrySession) REFERENCES warberry_session (WarberrySessionID) DEFERRABLE INITIALLY DEFERRED
);
CREATE TABLE war_hostnames
(
WarberryHostnamesID INTEGER PRIMARY KEY,
WarberrySession INTEGER,
hostname TEXT,
hostname_IP TEXT,
hostname_os TEXT,
hostname_domain TEXT,
FOREIGN KEY (WarberrySession) REFERENCES warberry_session (WarberrySessionID) DEFERRABLE INITIALLY DEFERRED
);
CREATE TABLE war_ips
(
WarberryIPID INTEGER PRIMARY KEY,
WarberrySession INTEGER,
ip TEXT,
FOREIGN KEY (WarberrySession) REFERENCES warberry_session (WarberrySessionID) DEFERRABLE INITIALLY DEFERRED
);
CREATE TABLE war_scanners
(
WarberryScannerID INTEGER PRIMARY KEY,
WarberrySession INTEGER,
scannerName TEXT,
host TEXT,
FOREIGN KEY (WarberrySession) REFERENCES warberry_session (WarberrySessionID) DEFERRABLE INITIALLY DEFERRED
);
CREATE TABLE war_wifis
(
Warberry_wifiID INTEGER PRIMARY KEY,
WarberrySession INTEGER,
wifiName TEXT,
FOREIGN KEY (WarberrySession) REFERENCES warberry_session (WarberrySessionID) DEFERRABLE INITIALLY DEFERRED
);
CREATE TABLE warberry
(
WarBerryID INTEGER PRIMARY KEY,
WarBerryName TEXT NOT NULL,
WarBerryModel TEXT NOT NULL
);
CREATE TABLE warberry_session
(
WarberrySessionID INTEGER PRIMARY KEY,
WarberryID INTEGER,
WarberryStart INTEGER,
WarberryStatus TEXT,
WarberryEnd INTEGER
);
CREATE TABLE war_hashes
(
WarberryHashID INTEGER,
WarberrySession TEXT,
client TEXT,
hash TEXT,
username TEXT,
FOREIGN KEY (WarberrySession) REFERENCES warberry_session(WarberrySessionID) DEFERRABLE INITIALLY DEFERRED
);