-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathezXSS3migrate.sql
135 lines (114 loc) · 3.69 KB
/
ezXSS3migrate.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
--
-- Table structure for table `alerts`
--
CREATE TABLE `alerts` (
`id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`method_id` int(11) NOT NULL,
`enabled` tinyint(1) NOT NULL,
`value1` varchar(250) NOT NULL,
`value2` varchar(250) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `alerts`
--
INSERT INTO `alerts` (`id`, `user_id`, `method_id`, `enabled`, `value1`, `value2`) VALUES
(1, 0, 1, 0, '', ''),
(2, 0, 2, 0, '', ''),
(3, 0, 3, 0, '', ''),
(4, 0, 4, 0, '', '');
-- --------------------------------------------------------
--
-- Table structure for table `payloads`
--
CREATE TABLE `payloads` (
`id` int(11) NOT NULL,
`payload` varchar(500) NOT NULL,
`user_id` int(11) NOT NULL,
`pages` text,
`blacklist` text,
`whitelist` text,
`customjs` text,
`collect_uri` tinyint(1) NOT NULL DEFAULT '1',
`collect_ip` tinyint(1) NOT NULL DEFAULT '1',
`collect_referer` tinyint(1) NOT NULL DEFAULT '1',
`collect_user-agent` tinyint(1) NOT NULL DEFAULT '1',
`collect_cookies` tinyint(1) NOT NULL DEFAULT '1',
`collect_localstorage` tinyint(1) NOT NULL DEFAULT '1',
`collect_sessionstorage` tinyint(1) NOT NULL DEFAULT '1',
`collect_dom` tinyint(1) NOT NULL DEFAULT '1',
`collect_origin` tinyint(1) NOT NULL DEFAULT '1',
`collect_screenshot` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `payloads`
--
INSERT INTO `payloads` (`id`, `payload`, `user_id`, `pages`, `blacklist`, `whitelist`, `customjs`, `collect_uri`, `collect_ip`, `collect_referer`, `collect_user-agent`, `collect_cookies`, `collect_localstorage`, `collect_sessionstorage`, `collect_dom`, `collect_origin`, `collect_screenshot`) VALUES
(1, 'Fallback (default)', 0, '', '', '', '', 1, 1, 1, 1, 1, 1, 1, 1, 1, 0);
--
-- Dumping data for table `settings`
--
INSERT INTO `settings` (`setting`, `value`) VALUES
('alert-slack', '1'),
('alert-discord', '1');
DELETE FROM `settings` WHERE `setting` = 'blocked-domains';
DELETE FROM `settings` WHERE `setting` = 'password';
DELETE FROM `settings` WHERE `setting` = 'email';
DELETE FROM `settings` WHERE `setting` = 'payload-domain';
DELETE FROM `settings` WHERE `setting` = 'emailfrom';
DELETE FROM `settings` WHERE `setting` = 'whitelist-domains';
DELETE FROM `settings` WHERE `setting` = 'telegram-bottoken';
DELETE FROM `settings` WHERE `setting` = 'telegram-chatid';
DELETE FROM `settings` WHERE `setting` = 'extract-pages';
DELETE FROM `settings` WHERE `setting` = 'adminurl';
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` int(11) NOT NULL,
`username` varchar(25) NOT NULL,
`password` varchar(60) NOT NULL,
`rank` int(11) NOT NULL DEFAULT '1',
`secret` varchar(25) NOT NULL,
`row1` tinyint(4) NOT NULL DEFAULT '1',
`row2` tinyint(4) NOT NULL DEFAULT '3',
`notepad` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `alerts`
--
ALTER TABLE `alerts`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `payloads`
--
ALTER TABLE `payloads`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `alerts`
--
ALTER TABLE `alerts`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `payloads`
--
ALTER TABLE `payloads`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;
ALTER TABLE reports CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;