-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathschema.sql
151 lines (128 loc) · 4.59 KB
/
schema.sql
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
-- init database
drop database if exists nagascan;
create database nagascan;
use nagascan;
DROP TABLE IF EXISTS `users`;
create table users (
`id` varchar(50) not null,
`email` varchar(50) not null,
`password` varchar(50) not null,
`admin` bool not null,
`name` varchar(50) not null,
`image` varchar(500) not null,
`created_at` real not null,
unique key `idx_email` (`email`),
key `idx_created_at` (`created_at`),
primary key (`id`)
) engine=innodb default charset=utf8;
-- email / password:
-- [email protected] / Naga5c@n
insert into users (`id`, `email`, `password`, `admin`, `name`, `image`, `created_at`) values ('0010018336417540987fff4508f43fbaed718e263442526000', '[email protected]', '1ab3f265aee6b93afa940aa5325035e2', 1, 'Administrator', 'http://avfisher.win/wp-content/uploads/2015/10/avfisher.jpg', 1402909113.628);
--
-- Table structure for table `requests`
--
DROP TABLE IF EXISTS `requests`;
CREATE TABLE `requests` (
`id` int(32) NOT NULL AUTO_INCREMENT,
`rid` varchar(64) DEFAULT NULL,
`ip` varchar(40) DEFAULT NULL,
`port` varchar(40) DEFAULT NULL,
`protocol` varchar(40) DEFAULT NULL,
`host` varchar(255) DEFAULT NULL,
`method` varchar(40) DEFAULT NULL,
`user_agent` text DEFAULT NULL,
`accept` varchar(255) DEFAULT NULL,
`accept_language` varchar(255) DEFAULT NULL,
`accept_encoding` varchar(255) DEFAULT NULL,
`cookie` text DEFAULT NULL,
`referer` text DEFAULT NULL,
`content_type` varchar(255) DEFAULT NULL,
`post_data` text DEFAULT NULL,
`path` text DEFAULT NULL,
`scan_xss` int(4) DEFAULT 0,
`scan_sqli` int(4) DEFAULT 0,
`scan_fi` int(4) DEFAULT 0,
`result_xss` varchar(40) DEFAULT 'not scan yet',
`result_sqli` varchar(40) DEFAULT 'not scan yet',
`result_fi` varchar(40) DEFAULT 'not scan yet',
`poc_xss` text DEFAULT NULL,
`poc_sqli` text DEFAULT NULL,
`poc_fi` text DEFAULT NULL,
`time` varchar(255) DEFAULT NULL,
`update_time` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
--
-- Table structure for table `responses`
--
DROP TABLE IF EXISTS `responses`;
CREATE TABLE `responses` (
`id` int(32) NOT NULL AUTO_INCREMENT,
`rid` varchar(64) DEFAULT NULL,
`response_xss` longtext DEFAULT NULL,
`response_sqli` longtext DEFAULT NULL,
`response_fi` longtext DEFAULT NULL,
`update_time` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
--
-- Table structure for table `exclusions_parse`
--
DROP TABLE IF EXISTS `exclusions_parse`;
CREATE TABLE `exclusions_parse` (
`id` int(50) NOT NULL AUTO_INCREMENT,
`exclusion` varchar(255) DEFAULT NULL,
`update_time` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
insert into exclusions_parse (`id`) values (1);
--
-- Table structure for table `exclusions_cookie`
--
DROP TABLE IF EXISTS `exclusions_cookie`;
CREATE TABLE `exclusions_cookie` (
`id` int(50) NOT NULL AUTO_INCREMENT,
`exclusion` text DEFAULT NULL,
`update_time` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
insert into exclusions_cookie (`id`) values (1);
--
-- Table structure for table `exclusions_scan`
--
DROP TABLE IF EXISTS `exclusions_scan`;
CREATE TABLE `exclusions_scan` (
`id` int(50) NOT NULL AUTO_INCREMENT,
`type` int(4) DEFAULT NULL, -- 0: scan_xss; 1: scan_sqli; 2: scan_fi
`ip` varchar(40) DEFAULT NULL,
`port` varchar(40) DEFAULT NULL,
`protocol` varchar(40) DEFAULT NULL,
`host` varchar(255) DEFAULT NULL,
`method` varchar(40) DEFAULT NULL,
`user_agent` text DEFAULT NULL,
`accept` varchar(255) DEFAULT NULL,
`accept_language` varchar(255) DEFAULT NULL,
`accept_encoding` varchar(255) DEFAULT NULL,
`cookie` text DEFAULT NULL,
`referer` text DEFAULT NULL,
`content_type` varchar(255) DEFAULT NULL,
`post_data` text DEFAULT NULL,
`path` text DEFAULT NULL,
`update_time` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
insert into exclusions_scan (`id`, `type`) values (1, 0);
insert into exclusions_scan (`id`, `type`) values (2, 1);
insert into exclusions_scan (`id`, `type`) values (3, 2);
--
-- Table structure for table `sqlmap`
--
DROP TABLE IF EXISTS `sqlmap`;
CREATE TABLE `sqlmap` (
`id` varchar(50) not null,
`ip` varchar(40) DEFAULT NULL,
`port` varchar(40) DEFAULT NULL,
`status` int(4) DEFAULT 1, -- 2: not available; 1: available
`update_time` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;