metasploit_data_models 0.24.5 → 1.0.0.pre.rails.pre.4.0a

Sign up to get free protection for your applications and to get access to all the features.
Files changed (112) hide show
  1. checksums.yaml +4 -4
  2. data/.rspec +1 -1
  3. data/.simplecov +1 -1
  4. data/Gemfile +8 -5
  5. data/app/models/mdm/api_key.rb +1 -0
  6. data/app/models/mdm/client.rb +2 -2
  7. data/app/models/mdm/cred.rb +13 -13
  8. data/app/models/mdm/event.rb +5 -4
  9. data/app/models/mdm/exploit_attempt.rb +1 -0
  10. data/app/models/mdm/exploited_host.rb +1 -1
  11. data/app/models/mdm/host.rb +37 -20
  12. data/app/models/mdm/host_detail.rb +2 -2
  13. data/app/models/mdm/host_tag.rb +1 -1
  14. data/app/models/mdm/listener.rb +2 -1
  15. data/app/models/mdm/loot.rb +1 -0
  16. data/app/models/mdm/macro.rb +1 -1
  17. data/app/models/mdm/mod_ref.rb +1 -0
  18. data/app/models/mdm/module/action.rb +1 -7
  19. data/app/models/mdm/module/arch.rb +0 -6
  20. data/app/models/mdm/module/author.rb +1 -8
  21. data/app/models/mdm/module/detail.rb +1 -1
  22. data/app/models/mdm/module/mixin.rb +0 -6
  23. data/app/models/mdm/module/platform.rb +0 -6
  24. data/app/models/mdm/module/ref.rb +0 -6
  25. data/app/models/mdm/module/target.rb +0 -7
  26. data/app/models/mdm/nexpose_console.rb +1 -0
  27. data/app/models/mdm/note.rb +3 -3
  28. data/app/models/mdm/ref.rb +0 -6
  29. data/app/models/mdm/route.rb +2 -1
  30. data/app/models/mdm/service.rb +1 -1
  31. data/app/models/mdm/session.rb +8 -7
  32. data/app/models/mdm/session_event.rb +2 -1
  33. data/app/models/mdm/tag.rb +2 -2
  34. data/app/models/mdm/task.rb +1 -3
  35. data/app/models/mdm/user.rb +4 -5
  36. data/app/models/mdm/vuln.rb +8 -7
  37. data/app/models/mdm/vuln_attempt.rb +1 -0
  38. data/app/models/mdm/vuln_detail.rb +3 -2
  39. data/app/models/mdm/vuln_ref.rb +1 -1
  40. data/app/models/mdm/web_form.rb +2 -1
  41. data/app/models/mdm/web_page.rb +3 -2
  42. data/app/models/mdm/web_site.rb +3 -2
  43. data/app/models/mdm/web_vuln.rb +1 -0
  44. data/app/models/mdm/wmap_request.rb +12 -0
  45. data/app/models/mdm/wmap_target.rb +12 -0
  46. data/app/models/mdm/workspace.rb +4 -3
  47. data/app/models/metasploit_data_models/automatic_exploitation/match.rb +0 -3
  48. data/app/models/metasploit_data_models/automatic_exploitation/match_result.rb +0 -12
  49. data/app/models/metasploit_data_models/automatic_exploitation/match_set.rb +0 -1
  50. data/app/models/metasploit_data_models/automatic_exploitation/run.rb +0 -2
  51. data/app/validators/ip_format_validator.rb +6 -1
  52. data/config/initializers/ipaddr.rb +35 -0
  53. data/db/migrate/002_add_workspaces.rb +2 -2
  54. data/db/migrate/007_add_loots.rb +1 -1
  55. data/db/migrate/008_create_users.rb +1 -1
  56. data/db/migrate/011_add_reports.rb +1 -1
  57. data/db/migrate/012_add_tasks.rb +1 -1
  58. data/db/migrate/026_add_creds_table.rb +2 -2
  59. data/db/migrate/20100824151500_add_exploited_table.rb +1 -1
  60. data/db/migrate/20100911122000_add_report_templates.rb +1 -1
  61. data/db/migrate/20100916175000_add_campaigns_and_templates.rb +1 -1
  62. data/db/migrate/20101001000000_add_web_tables.rb +13 -13
  63. data/db/migrate/20110204112800_add_host_tags.rb +1 -1
  64. data/db/migrate/20110527000001_add_api_keys_table.rb +1 -1
  65. data/db/migrate/20110606000001_add_macros_table.rb +2 -2
  66. data/db/migrate/20110624000001_add_listeners_table.rb +1 -1
  67. data/db/migrate/20110630000001_add_nexpose_consoles_table.rb +1 -1
  68. data/db/migrate/20110717000001_add_profiles_table.rb +1 -1
  69. data/db/migrate/20130522001343_create_task_creds.rb +1 -1
  70. data/db/migrate/20130522032517_create_task_hosts.rb +1 -1
  71. data/db/migrate/20130522041110_create_task_services.rb +1 -1
  72. data/db/migrate/20130604145732_create_task_sessions.rb +1 -1
  73. data/db/migrate/20131002004641_create_automatic_exploitation_matches.rb +1 -1
  74. data/db/migrate/20131002164449_create_automatic_exploitation_match_sets.rb +1 -1
  75. data/db/migrate/20131008213344_create_automatic_exploitation_runs.rb +1 -1
  76. data/db/migrate/20131017150735_create_automatic_exploitation_match_results.rb +1 -1
  77. data/db/migrate/20150219173821_create_module_runs.rb +1 -1
  78. data/db/migrate/20150317145455_rename_module_indices.rb +29 -0
  79. data/db/migrate/20150421211719_rename_automatic_exploitation_index.rb +16 -0
  80. data/lib/mdm/host/operating_system_normalization.rb +1 -1
  81. data/lib/metasploit_data_models.rb +1 -0
  82. data/lib/metasploit_data_models/engine.rb +1 -1
  83. data/lib/metasploit_data_models/version.rb +5 -3
  84. data/metasploit_data_models.gemspec +11 -8
  85. data/spec/app/models/mdm/event_spec.rb +17 -11
  86. data/spec/app/models/mdm/host_spec.rb +2 -2
  87. data/spec/app/models/mdm/module/action_spec.rb +0 -5
  88. data/spec/app/models/mdm/module/arch_spec.rb +0 -5
  89. data/spec/app/models/mdm/module/author_spec.rb +0 -6
  90. data/spec/app/models/mdm/module/detail_spec.rb +3 -3
  91. data/spec/app/models/mdm/module/mixin_spec.rb +0 -5
  92. data/spec/app/models/mdm/module/platform_spec.rb +0 -5
  93. data/spec/app/models/mdm/module/ref_spec.rb +0 -5
  94. data/spec/app/models/mdm/module/target_spec.rb +0 -6
  95. data/spec/app/models/mdm/ref_spec.rb +0 -3
  96. data/spec/app/models/mdm/service_spec.rb +1 -1
  97. data/spec/app/models/mdm/web_vuln_spec.rb +3 -3
  98. data/spec/app/models/mdm/wmap_request_spec.rb +2 -0
  99. data/spec/app/models/mdm/wmap_target_spec.rb +2 -0
  100. data/spec/app/models/mdm/workspace_spec.rb +2 -2
  101. data/spec/app/models/metasploit_data_models/search/operation/port/number_spec.rb +1 -1
  102. data/spec/dummy/config/application.rb +1 -7
  103. data/spec/dummy/config/environments/development.rb +2 -13
  104. data/spec/dummy/config/environments/production.rb +2 -0
  105. data/spec/dummy/config/environments/test.rb +2 -6
  106. data/spec/dummy/db/structure.sql +24 -19
  107. data/spec/dummy/db/structure.sql.from_rails_3 +3403 -0
  108. data/spec/factories/mdm/module/details.rb +1 -1
  109. data/spec/lib/ipaddr_spec.rb +31 -0
  110. data/spec/lib/metasploit_data_models/version_spec.rb +1 -3
  111. data/spec/support/shared/examples/coerces_inet_column_type_to_string.rb +15 -0
  112. metadata +63 -28
@@ -0,0 +1,3403 @@
1
+ --
2
+ -- PostgreSQL database dump
3
+ --
4
+
5
+ SET statement_timeout = 0;
6
+ SET client_encoding = 'UTF8';
7
+ SET standard_conforming_strings = on;
8
+ SET check_function_bodies = false;
9
+ SET client_min_messages = warning;
10
+
11
+ --
12
+ -- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: -
13
+ --
14
+
15
+ CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;
16
+
17
+
18
+ --
19
+ -- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner: -
20
+ --
21
+
22
+ COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';
23
+
24
+
25
+ SET search_path = public, pg_catalog;
26
+
27
+ SET default_tablespace = '';
28
+
29
+ SET default_with_oids = false;
30
+
31
+ --
32
+ -- Name: api_keys; Type: TABLE; Schema: public; Owner: -; Tablespace:
33
+ --
34
+
35
+ CREATE TABLE api_keys (
36
+ id integer NOT NULL,
37
+ token text,
38
+ created_at timestamp without time zone NOT NULL,
39
+ updated_at timestamp without time zone NOT NULL
40
+ );
41
+
42
+
43
+ --
44
+ -- Name: api_keys_id_seq; Type: SEQUENCE; Schema: public; Owner: -
45
+ --
46
+
47
+ CREATE SEQUENCE api_keys_id_seq
48
+ START WITH 1
49
+ INCREMENT BY 1
50
+ NO MINVALUE
51
+ NO MAXVALUE
52
+ CACHE 1;
53
+
54
+
55
+ --
56
+ -- Name: api_keys_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
57
+ --
58
+
59
+ ALTER SEQUENCE api_keys_id_seq OWNED BY api_keys.id;
60
+
61
+
62
+ --
63
+ -- Name: automatic_exploitation_match_results; Type: TABLE; Schema: public; Owner: -; Tablespace:
64
+ --
65
+
66
+ CREATE TABLE automatic_exploitation_match_results (
67
+ id integer NOT NULL,
68
+ match_id integer,
69
+ run_id integer,
70
+ state character varying(255) NOT NULL,
71
+ created_at timestamp without time zone NOT NULL,
72
+ updated_at timestamp without time zone NOT NULL
73
+ );
74
+
75
+
76
+ --
77
+ -- Name: automatic_exploitation_match_results_id_seq; Type: SEQUENCE; Schema: public; Owner: -
78
+ --
79
+
80
+ CREATE SEQUENCE automatic_exploitation_match_results_id_seq
81
+ START WITH 1
82
+ INCREMENT BY 1
83
+ NO MINVALUE
84
+ NO MAXVALUE
85
+ CACHE 1;
86
+
87
+
88
+ --
89
+ -- Name: automatic_exploitation_match_results_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
90
+ --
91
+
92
+ ALTER SEQUENCE automatic_exploitation_match_results_id_seq OWNED BY automatic_exploitation_match_results.id;
93
+
94
+
95
+ --
96
+ -- Name: automatic_exploitation_match_sets; Type: TABLE; Schema: public; Owner: -; Tablespace:
97
+ --
98
+
99
+ CREATE TABLE automatic_exploitation_match_sets (
100
+ id integer NOT NULL,
101
+ workspace_id integer,
102
+ user_id integer,
103
+ created_at timestamp without time zone NOT NULL,
104
+ updated_at timestamp without time zone NOT NULL
105
+ );
106
+
107
+
108
+ --
109
+ -- Name: automatic_exploitation_match_sets_id_seq; Type: SEQUENCE; Schema: public; Owner: -
110
+ --
111
+
112
+ CREATE SEQUENCE automatic_exploitation_match_sets_id_seq
113
+ START WITH 1
114
+ INCREMENT BY 1
115
+ NO MINVALUE
116
+ NO MAXVALUE
117
+ CACHE 1;
118
+
119
+
120
+ --
121
+ -- Name: automatic_exploitation_match_sets_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
122
+ --
123
+
124
+ ALTER SEQUENCE automatic_exploitation_match_sets_id_seq OWNED BY automatic_exploitation_match_sets.id;
125
+
126
+
127
+ --
128
+ -- Name: automatic_exploitation_matches; Type: TABLE; Schema: public; Owner: -; Tablespace:
129
+ --
130
+
131
+ CREATE TABLE automatic_exploitation_matches (
132
+ id integer NOT NULL,
133
+ module_detail_id integer,
134
+ state character varying(255),
135
+ nexpose_data_vulnerability_definition_id integer,
136
+ created_at timestamp without time zone NOT NULL,
137
+ updated_at timestamp without time zone NOT NULL,
138
+ match_set_id integer,
139
+ matchable_type character varying(255),
140
+ matchable_id integer,
141
+ module_fullname text
142
+ );
143
+
144
+
145
+ --
146
+ -- Name: automatic_exploitation_matches_id_seq; Type: SEQUENCE; Schema: public; Owner: -
147
+ --
148
+
149
+ CREATE SEQUENCE automatic_exploitation_matches_id_seq
150
+ START WITH 1
151
+ INCREMENT BY 1
152
+ NO MINVALUE
153
+ NO MAXVALUE
154
+ CACHE 1;
155
+
156
+
157
+ --
158
+ -- Name: automatic_exploitation_matches_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
159
+ --
160
+
161
+ ALTER SEQUENCE automatic_exploitation_matches_id_seq OWNED BY automatic_exploitation_matches.id;
162
+
163
+
164
+ --
165
+ -- Name: automatic_exploitation_runs; Type: TABLE; Schema: public; Owner: -; Tablespace:
166
+ --
167
+
168
+ CREATE TABLE automatic_exploitation_runs (
169
+ id integer NOT NULL,
170
+ workspace_id integer,
171
+ user_id integer,
172
+ match_set_id integer,
173
+ created_at timestamp without time zone NOT NULL,
174
+ updated_at timestamp without time zone NOT NULL
175
+ );
176
+
177
+
178
+ --
179
+ -- Name: automatic_exploitation_runs_id_seq; Type: SEQUENCE; Schema: public; Owner: -
180
+ --
181
+
182
+ CREATE SEQUENCE automatic_exploitation_runs_id_seq
183
+ START WITH 1
184
+ INCREMENT BY 1
185
+ NO MINVALUE
186
+ NO MAXVALUE
187
+ CACHE 1;
188
+
189
+
190
+ --
191
+ -- Name: automatic_exploitation_runs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
192
+ --
193
+
194
+ ALTER SEQUENCE automatic_exploitation_runs_id_seq OWNED BY automatic_exploitation_runs.id;
195
+
196
+
197
+ --
198
+ -- Name: clients; Type: TABLE; Schema: public; Owner: -; Tablespace:
199
+ --
200
+
201
+ CREATE TABLE clients (
202
+ id integer NOT NULL,
203
+ host_id integer,
204
+ created_at timestamp without time zone,
205
+ ua_string character varying(1024) NOT NULL,
206
+ ua_name character varying(64),
207
+ ua_ver character varying(32),
208
+ updated_at timestamp without time zone
209
+ );
210
+
211
+
212
+ --
213
+ -- Name: clients_id_seq; Type: SEQUENCE; Schema: public; Owner: -
214
+ --
215
+
216
+ CREATE SEQUENCE clients_id_seq
217
+ START WITH 1
218
+ INCREMENT BY 1
219
+ NO MINVALUE
220
+ NO MAXVALUE
221
+ CACHE 1;
222
+
223
+
224
+ --
225
+ -- Name: clients_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
226
+ --
227
+
228
+ ALTER SEQUENCE clients_id_seq OWNED BY clients.id;
229
+
230
+
231
+ --
232
+ -- Name: creds; Type: TABLE; Schema: public; Owner: -; Tablespace:
233
+ --
234
+
235
+ CREATE TABLE creds (
236
+ id integer NOT NULL,
237
+ service_id integer NOT NULL,
238
+ created_at timestamp without time zone NOT NULL,
239
+ updated_at timestamp without time zone NOT NULL,
240
+ "user" character varying(2048),
241
+ pass character varying(4096),
242
+ active boolean DEFAULT true,
243
+ proof character varying(4096),
244
+ ptype character varying(256),
245
+ source_id integer,
246
+ source_type character varying(255)
247
+ );
248
+
249
+
250
+ --
251
+ -- Name: creds_id_seq; Type: SEQUENCE; Schema: public; Owner: -
252
+ --
253
+
254
+ CREATE SEQUENCE creds_id_seq
255
+ START WITH 1
256
+ INCREMENT BY 1
257
+ NO MINVALUE
258
+ NO MAXVALUE
259
+ CACHE 1;
260
+
261
+
262
+ --
263
+ -- Name: creds_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
264
+ --
265
+
266
+ ALTER SEQUENCE creds_id_seq OWNED BY creds.id;
267
+
268
+
269
+ --
270
+ -- Name: events; Type: TABLE; Schema: public; Owner: -; Tablespace:
271
+ --
272
+
273
+ CREATE TABLE events (
274
+ id integer NOT NULL,
275
+ workspace_id integer,
276
+ host_id integer,
277
+ created_at timestamp without time zone,
278
+ name character varying(255),
279
+ updated_at timestamp without time zone,
280
+ critical boolean,
281
+ seen boolean,
282
+ username character varying(255),
283
+ info text
284
+ );
285
+
286
+
287
+ --
288
+ -- Name: events_id_seq; Type: SEQUENCE; Schema: public; Owner: -
289
+ --
290
+
291
+ CREATE SEQUENCE events_id_seq
292
+ START WITH 1
293
+ INCREMENT BY 1
294
+ NO MINVALUE
295
+ NO MAXVALUE
296
+ CACHE 1;
297
+
298
+
299
+ --
300
+ -- Name: events_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
301
+ --
302
+
303
+ ALTER SEQUENCE events_id_seq OWNED BY events.id;
304
+
305
+
306
+ --
307
+ -- Name: exploit_attempts; Type: TABLE; Schema: public; Owner: -; Tablespace:
308
+ --
309
+
310
+ CREATE TABLE exploit_attempts (
311
+ id integer NOT NULL,
312
+ host_id integer,
313
+ service_id integer,
314
+ vuln_id integer,
315
+ attempted_at timestamp without time zone,
316
+ exploited boolean,
317
+ fail_reason character varying(255),
318
+ username character varying(255),
319
+ module text,
320
+ session_id integer,
321
+ loot_id integer,
322
+ port integer,
323
+ proto character varying(255),
324
+ fail_detail text
325
+ );
326
+
327
+
328
+ --
329
+ -- Name: exploit_attempts_id_seq; Type: SEQUENCE; Schema: public; Owner: -
330
+ --
331
+
332
+ CREATE SEQUENCE exploit_attempts_id_seq
333
+ START WITH 1
334
+ INCREMENT BY 1
335
+ NO MINVALUE
336
+ NO MAXVALUE
337
+ CACHE 1;
338
+
339
+
340
+ --
341
+ -- Name: exploit_attempts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
342
+ --
343
+
344
+ ALTER SEQUENCE exploit_attempts_id_seq OWNED BY exploit_attempts.id;
345
+
346
+
347
+ --
348
+ -- Name: exploited_hosts; Type: TABLE; Schema: public; Owner: -; Tablespace:
349
+ --
350
+
351
+ CREATE TABLE exploited_hosts (
352
+ id integer NOT NULL,
353
+ host_id integer NOT NULL,
354
+ service_id integer,
355
+ session_uuid character varying(8),
356
+ name character varying(2048),
357
+ payload character varying(2048),
358
+ created_at timestamp without time zone NOT NULL,
359
+ updated_at timestamp without time zone NOT NULL
360
+ );
361
+
362
+
363
+ --
364
+ -- Name: exploited_hosts_id_seq; Type: SEQUENCE; Schema: public; Owner: -
365
+ --
366
+
367
+ CREATE SEQUENCE exploited_hosts_id_seq
368
+ START WITH 1
369
+ INCREMENT BY 1
370
+ NO MINVALUE
371
+ NO MAXVALUE
372
+ CACHE 1;
373
+
374
+
375
+ --
376
+ -- Name: exploited_hosts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
377
+ --
378
+
379
+ ALTER SEQUENCE exploited_hosts_id_seq OWNED BY exploited_hosts.id;
380
+
381
+
382
+ --
383
+ -- Name: host_details; Type: TABLE; Schema: public; Owner: -; Tablespace:
384
+ --
385
+
386
+ CREATE TABLE host_details (
387
+ id integer NOT NULL,
388
+ host_id integer,
389
+ nx_console_id integer,
390
+ nx_device_id integer,
391
+ src character varying(255),
392
+ nx_site_name character varying(255),
393
+ nx_site_importance character varying(255),
394
+ nx_scan_template character varying(255),
395
+ nx_risk_score double precision
396
+ );
397
+
398
+
399
+ --
400
+ -- Name: host_details_id_seq; Type: SEQUENCE; Schema: public; Owner: -
401
+ --
402
+
403
+ CREATE SEQUENCE host_details_id_seq
404
+ START WITH 1
405
+ INCREMENT BY 1
406
+ NO MINVALUE
407
+ NO MAXVALUE
408
+ CACHE 1;
409
+
410
+
411
+ --
412
+ -- Name: host_details_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
413
+ --
414
+
415
+ ALTER SEQUENCE host_details_id_seq OWNED BY host_details.id;
416
+
417
+
418
+ --
419
+ -- Name: hosts; Type: TABLE; Schema: public; Owner: -; Tablespace:
420
+ --
421
+
422
+ CREATE TABLE hosts (
423
+ id integer NOT NULL,
424
+ created_at timestamp without time zone,
425
+ address inet NOT NULL,
426
+ mac character varying(255),
427
+ comm character varying(255),
428
+ name character varying(255),
429
+ state character varying(255),
430
+ os_name character varying(255),
431
+ os_flavor character varying(255),
432
+ os_sp character varying(255),
433
+ os_lang character varying(255),
434
+ arch character varying(255),
435
+ workspace_id integer NOT NULL,
436
+ updated_at timestamp without time zone,
437
+ purpose text,
438
+ info character varying(65536),
439
+ comments text,
440
+ scope text,
441
+ virtual_host text,
442
+ note_count integer DEFAULT 0,
443
+ vuln_count integer DEFAULT 0,
444
+ service_count integer DEFAULT 0,
445
+ host_detail_count integer DEFAULT 0,
446
+ exploit_attempt_count integer DEFAULT 0,
447
+ cred_count integer DEFAULT 0,
448
+ detected_arch character varying(255)
449
+ );
450
+
451
+
452
+ --
453
+ -- Name: hosts_id_seq; Type: SEQUENCE; Schema: public; Owner: -
454
+ --
455
+
456
+ CREATE SEQUENCE hosts_id_seq
457
+ START WITH 1
458
+ INCREMENT BY 1
459
+ NO MINVALUE
460
+ NO MAXVALUE
461
+ CACHE 1;
462
+
463
+
464
+ --
465
+ -- Name: hosts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
466
+ --
467
+
468
+ ALTER SEQUENCE hosts_id_seq OWNED BY hosts.id;
469
+
470
+
471
+ --
472
+ -- Name: hosts_tags; Type: TABLE; Schema: public; Owner: -; Tablespace:
473
+ --
474
+
475
+ CREATE TABLE hosts_tags (
476
+ host_id integer,
477
+ tag_id integer,
478
+ id integer NOT NULL
479
+ );
480
+
481
+
482
+ --
483
+ -- Name: hosts_tags_id_seq; Type: SEQUENCE; Schema: public; Owner: -
484
+ --
485
+
486
+ CREATE SEQUENCE hosts_tags_id_seq
487
+ START WITH 1
488
+ INCREMENT BY 1
489
+ NO MINVALUE
490
+ NO MAXVALUE
491
+ CACHE 1;
492
+
493
+
494
+ --
495
+ -- Name: hosts_tags_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
496
+ --
497
+
498
+ ALTER SEQUENCE hosts_tags_id_seq OWNED BY hosts_tags.id;
499
+
500
+
501
+ --
502
+ -- Name: listeners; Type: TABLE; Schema: public; Owner: -; Tablespace:
503
+ --
504
+
505
+ CREATE TABLE listeners (
506
+ id integer NOT NULL,
507
+ created_at timestamp without time zone NOT NULL,
508
+ updated_at timestamp without time zone NOT NULL,
509
+ workspace_id integer DEFAULT 1 NOT NULL,
510
+ task_id integer,
511
+ enabled boolean DEFAULT true,
512
+ owner text,
513
+ payload text,
514
+ address text,
515
+ port integer,
516
+ options bytea,
517
+ macro text
518
+ );
519
+
520
+
521
+ --
522
+ -- Name: listeners_id_seq; Type: SEQUENCE; Schema: public; Owner: -
523
+ --
524
+
525
+ CREATE SEQUENCE listeners_id_seq
526
+ START WITH 1
527
+ INCREMENT BY 1
528
+ NO MINVALUE
529
+ NO MAXVALUE
530
+ CACHE 1;
531
+
532
+
533
+ --
534
+ -- Name: listeners_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
535
+ --
536
+
537
+ ALTER SEQUENCE listeners_id_seq OWNED BY listeners.id;
538
+
539
+
540
+ --
541
+ -- Name: loots; Type: TABLE; Schema: public; Owner: -; Tablespace:
542
+ --
543
+
544
+ CREATE TABLE loots (
545
+ id integer NOT NULL,
546
+ workspace_id integer DEFAULT 1 NOT NULL,
547
+ host_id integer,
548
+ service_id integer,
549
+ ltype character varying(512),
550
+ path character varying(1024),
551
+ data text,
552
+ created_at timestamp without time zone NOT NULL,
553
+ updated_at timestamp without time zone NOT NULL,
554
+ content_type character varying(255),
555
+ name text,
556
+ info text,
557
+ module_run_id integer
558
+ );
559
+
560
+
561
+ --
562
+ -- Name: loots_id_seq; Type: SEQUENCE; Schema: public; Owner: -
563
+ --
564
+
565
+ CREATE SEQUENCE loots_id_seq
566
+ START WITH 1
567
+ INCREMENT BY 1
568
+ NO MINVALUE
569
+ NO MAXVALUE
570
+ CACHE 1;
571
+
572
+
573
+ --
574
+ -- Name: loots_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
575
+ --
576
+
577
+ ALTER SEQUENCE loots_id_seq OWNED BY loots.id;
578
+
579
+
580
+ --
581
+ -- Name: macros; Type: TABLE; Schema: public; Owner: -; Tablespace:
582
+ --
583
+
584
+ CREATE TABLE macros (
585
+ id integer NOT NULL,
586
+ created_at timestamp without time zone NOT NULL,
587
+ updated_at timestamp without time zone NOT NULL,
588
+ owner text,
589
+ name text,
590
+ description text,
591
+ actions bytea,
592
+ prefs bytea
593
+ );
594
+
595
+
596
+ --
597
+ -- Name: macros_id_seq; Type: SEQUENCE; Schema: public; Owner: -
598
+ --
599
+
600
+ CREATE SEQUENCE macros_id_seq
601
+ START WITH 1
602
+ INCREMENT BY 1
603
+ NO MINVALUE
604
+ NO MAXVALUE
605
+ CACHE 1;
606
+
607
+
608
+ --
609
+ -- Name: macros_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
610
+ --
611
+
612
+ ALTER SEQUENCE macros_id_seq OWNED BY macros.id;
613
+
614
+
615
+ --
616
+ -- Name: mod_refs; Type: TABLE; Schema: public; Owner: -; Tablespace:
617
+ --
618
+
619
+ CREATE TABLE mod_refs (
620
+ id integer NOT NULL,
621
+ module character varying(1024),
622
+ mtype character varying(128),
623
+ ref text
624
+ );
625
+
626
+
627
+ --
628
+ -- Name: mod_refs_id_seq; Type: SEQUENCE; Schema: public; Owner: -
629
+ --
630
+
631
+ CREATE SEQUENCE mod_refs_id_seq
632
+ START WITH 1
633
+ INCREMENT BY 1
634
+ NO MINVALUE
635
+ NO MAXVALUE
636
+ CACHE 1;
637
+
638
+
639
+ --
640
+ -- Name: mod_refs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
641
+ --
642
+
643
+ ALTER SEQUENCE mod_refs_id_seq OWNED BY mod_refs.id;
644
+
645
+
646
+ --
647
+ -- Name: module_actions; Type: TABLE; Schema: public; Owner: -; Tablespace:
648
+ --
649
+
650
+ CREATE TABLE module_actions (
651
+ id integer NOT NULL,
652
+ detail_id integer,
653
+ name text
654
+ );
655
+
656
+
657
+ --
658
+ -- Name: module_actions_id_seq; Type: SEQUENCE; Schema: public; Owner: -
659
+ --
660
+
661
+ CREATE SEQUENCE module_actions_id_seq
662
+ START WITH 1
663
+ INCREMENT BY 1
664
+ NO MINVALUE
665
+ NO MAXVALUE
666
+ CACHE 1;
667
+
668
+
669
+ --
670
+ -- Name: module_actions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
671
+ --
672
+
673
+ ALTER SEQUENCE module_actions_id_seq OWNED BY module_actions.id;
674
+
675
+
676
+ --
677
+ -- Name: module_archs; Type: TABLE; Schema: public; Owner: -; Tablespace:
678
+ --
679
+
680
+ CREATE TABLE module_archs (
681
+ id integer NOT NULL,
682
+ detail_id integer,
683
+ name text
684
+ );
685
+
686
+
687
+ --
688
+ -- Name: module_archs_id_seq; Type: SEQUENCE; Schema: public; Owner: -
689
+ --
690
+
691
+ CREATE SEQUENCE module_archs_id_seq
692
+ START WITH 1
693
+ INCREMENT BY 1
694
+ NO MINVALUE
695
+ NO MAXVALUE
696
+ CACHE 1;
697
+
698
+
699
+ --
700
+ -- Name: module_archs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
701
+ --
702
+
703
+ ALTER SEQUENCE module_archs_id_seq OWNED BY module_archs.id;
704
+
705
+
706
+ --
707
+ -- Name: module_authors; Type: TABLE; Schema: public; Owner: -; Tablespace:
708
+ --
709
+
710
+ CREATE TABLE module_authors (
711
+ id integer NOT NULL,
712
+ detail_id integer,
713
+ name text,
714
+ email text
715
+ );
716
+
717
+
718
+ --
719
+ -- Name: module_authors_id_seq; Type: SEQUENCE; Schema: public; Owner: -
720
+ --
721
+
722
+ CREATE SEQUENCE module_authors_id_seq
723
+ START WITH 1
724
+ INCREMENT BY 1
725
+ NO MINVALUE
726
+ NO MAXVALUE
727
+ CACHE 1;
728
+
729
+
730
+ --
731
+ -- Name: module_authors_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
732
+ --
733
+
734
+ ALTER SEQUENCE module_authors_id_seq OWNED BY module_authors.id;
735
+
736
+
737
+ --
738
+ -- Name: module_details; Type: TABLE; Schema: public; Owner: -; Tablespace:
739
+ --
740
+
741
+ CREATE TABLE module_details (
742
+ id integer NOT NULL,
743
+ mtime timestamp without time zone,
744
+ file text,
745
+ mtype character varying(255),
746
+ refname text,
747
+ fullname text,
748
+ name text,
749
+ rank integer,
750
+ description text,
751
+ license character varying(255),
752
+ privileged boolean,
753
+ disclosure_date timestamp without time zone,
754
+ default_target integer,
755
+ default_action text,
756
+ stance character varying(255),
757
+ ready boolean
758
+ );
759
+
760
+
761
+ --
762
+ -- Name: module_details_id_seq; Type: SEQUENCE; Schema: public; Owner: -
763
+ --
764
+
765
+ CREATE SEQUENCE module_details_id_seq
766
+ START WITH 1
767
+ INCREMENT BY 1
768
+ NO MINVALUE
769
+ NO MAXVALUE
770
+ CACHE 1;
771
+
772
+
773
+ --
774
+ -- Name: module_details_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
775
+ --
776
+
777
+ ALTER SEQUENCE module_details_id_seq OWNED BY module_details.id;
778
+
779
+
780
+ --
781
+ -- Name: module_mixins; Type: TABLE; Schema: public; Owner: -; Tablespace:
782
+ --
783
+
784
+ CREATE TABLE module_mixins (
785
+ id integer NOT NULL,
786
+ detail_id integer,
787
+ name text
788
+ );
789
+
790
+
791
+ --
792
+ -- Name: module_mixins_id_seq; Type: SEQUENCE; Schema: public; Owner: -
793
+ --
794
+
795
+ CREATE SEQUENCE module_mixins_id_seq
796
+ START WITH 1
797
+ INCREMENT BY 1
798
+ NO MINVALUE
799
+ NO MAXVALUE
800
+ CACHE 1;
801
+
802
+
803
+ --
804
+ -- Name: module_mixins_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
805
+ --
806
+
807
+ ALTER SEQUENCE module_mixins_id_seq OWNED BY module_mixins.id;
808
+
809
+
810
+ --
811
+ -- Name: module_platforms; Type: TABLE; Schema: public; Owner: -; Tablespace:
812
+ --
813
+
814
+ CREATE TABLE module_platforms (
815
+ id integer NOT NULL,
816
+ detail_id integer,
817
+ name text
818
+ );
819
+
820
+
821
+ --
822
+ -- Name: module_platforms_id_seq; Type: SEQUENCE; Schema: public; Owner: -
823
+ --
824
+
825
+ CREATE SEQUENCE module_platforms_id_seq
826
+ START WITH 1
827
+ INCREMENT BY 1
828
+ NO MINVALUE
829
+ NO MAXVALUE
830
+ CACHE 1;
831
+
832
+
833
+ --
834
+ -- Name: module_platforms_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
835
+ --
836
+
837
+ ALTER SEQUENCE module_platforms_id_seq OWNED BY module_platforms.id;
838
+
839
+
840
+ --
841
+ -- Name: module_refs; Type: TABLE; Schema: public; Owner: -; Tablespace:
842
+ --
843
+
844
+ CREATE TABLE module_refs (
845
+ id integer NOT NULL,
846
+ detail_id integer,
847
+ name text
848
+ );
849
+
850
+
851
+ --
852
+ -- Name: module_refs_id_seq; Type: SEQUENCE; Schema: public; Owner: -
853
+ --
854
+
855
+ CREATE SEQUENCE module_refs_id_seq
856
+ START WITH 1
857
+ INCREMENT BY 1
858
+ NO MINVALUE
859
+ NO MAXVALUE
860
+ CACHE 1;
861
+
862
+
863
+ --
864
+ -- Name: module_refs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
865
+ --
866
+
867
+ ALTER SEQUENCE module_refs_id_seq OWNED BY module_refs.id;
868
+
869
+
870
+ --
871
+ -- Name: module_runs; Type: TABLE; Schema: public; Owner: -; Tablespace:
872
+ --
873
+
874
+ CREATE TABLE module_runs (
875
+ id integer NOT NULL,
876
+ attempted_at timestamp without time zone,
877
+ fail_detail text,
878
+ fail_reason character varying(255),
879
+ module_fullname text,
880
+ port integer,
881
+ proto character varying(255),
882
+ session_id integer,
883
+ status character varying(255),
884
+ trackable_id integer,
885
+ trackable_type character varying(255),
886
+ user_id integer,
887
+ username character varying(255),
888
+ created_at timestamp without time zone NOT NULL,
889
+ updated_at timestamp without time zone NOT NULL
890
+ );
891
+
892
+
893
+ --
894
+ -- Name: module_runs_id_seq; Type: SEQUENCE; Schema: public; Owner: -
895
+ --
896
+
897
+ CREATE SEQUENCE module_runs_id_seq
898
+ START WITH 1
899
+ INCREMENT BY 1
900
+ NO MINVALUE
901
+ NO MAXVALUE
902
+ CACHE 1;
903
+
904
+
905
+ --
906
+ -- Name: module_runs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
907
+ --
908
+
909
+ ALTER SEQUENCE module_runs_id_seq OWNED BY module_runs.id;
910
+
911
+
912
+ --
913
+ -- Name: module_targets; Type: TABLE; Schema: public; Owner: -; Tablespace:
914
+ --
915
+
916
+ CREATE TABLE module_targets (
917
+ id integer NOT NULL,
918
+ detail_id integer,
919
+ index integer,
920
+ name text
921
+ );
922
+
923
+
924
+ --
925
+ -- Name: module_targets_id_seq; Type: SEQUENCE; Schema: public; Owner: -
926
+ --
927
+
928
+ CREATE SEQUENCE module_targets_id_seq
929
+ START WITH 1
930
+ INCREMENT BY 1
931
+ NO MINVALUE
932
+ NO MAXVALUE
933
+ CACHE 1;
934
+
935
+
936
+ --
937
+ -- Name: module_targets_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
938
+ --
939
+
940
+ ALTER SEQUENCE module_targets_id_seq OWNED BY module_targets.id;
941
+
942
+
943
+ --
944
+ -- Name: nexpose_consoles; Type: TABLE; Schema: public; Owner: -; Tablespace:
945
+ --
946
+
947
+ CREATE TABLE nexpose_consoles (
948
+ id integer NOT NULL,
949
+ created_at timestamp without time zone NOT NULL,
950
+ updated_at timestamp without time zone NOT NULL,
951
+ enabled boolean DEFAULT true,
952
+ owner text,
953
+ address text,
954
+ port integer DEFAULT 3780,
955
+ username text,
956
+ password text,
957
+ status text,
958
+ version text,
959
+ cert text,
960
+ cached_sites bytea,
961
+ name text
962
+ );
963
+
964
+
965
+ --
966
+ -- Name: nexpose_consoles_id_seq; Type: SEQUENCE; Schema: public; Owner: -
967
+ --
968
+
969
+ CREATE SEQUENCE nexpose_consoles_id_seq
970
+ START WITH 1
971
+ INCREMENT BY 1
972
+ NO MINVALUE
973
+ NO MAXVALUE
974
+ CACHE 1;
975
+
976
+
977
+ --
978
+ -- Name: nexpose_consoles_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
979
+ --
980
+
981
+ ALTER SEQUENCE nexpose_consoles_id_seq OWNED BY nexpose_consoles.id;
982
+
983
+
984
+ --
985
+ -- Name: notes; Type: TABLE; Schema: public; Owner: -; Tablespace:
986
+ --
987
+
988
+ CREATE TABLE notes (
989
+ id integer NOT NULL,
990
+ created_at timestamp without time zone,
991
+ ntype character varying(512),
992
+ workspace_id integer DEFAULT 1 NOT NULL,
993
+ service_id integer,
994
+ host_id integer,
995
+ updated_at timestamp without time zone,
996
+ critical boolean,
997
+ seen boolean,
998
+ data text,
999
+ vuln_id integer
1000
+ );
1001
+
1002
+
1003
+ --
1004
+ -- Name: notes_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1005
+ --
1006
+
1007
+ CREATE SEQUENCE notes_id_seq
1008
+ START WITH 1
1009
+ INCREMENT BY 1
1010
+ NO MINVALUE
1011
+ NO MAXVALUE
1012
+ CACHE 1;
1013
+
1014
+
1015
+ --
1016
+ -- Name: notes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1017
+ --
1018
+
1019
+ ALTER SEQUENCE notes_id_seq OWNED BY notes.id;
1020
+
1021
+
1022
+ --
1023
+ -- Name: profiles; Type: TABLE; Schema: public; Owner: -; Tablespace:
1024
+ --
1025
+
1026
+ CREATE TABLE profiles (
1027
+ id integer NOT NULL,
1028
+ created_at timestamp without time zone NOT NULL,
1029
+ updated_at timestamp without time zone NOT NULL,
1030
+ active boolean DEFAULT true,
1031
+ name text,
1032
+ owner text,
1033
+ settings bytea
1034
+ );
1035
+
1036
+
1037
+ --
1038
+ -- Name: profiles_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1039
+ --
1040
+
1041
+ CREATE SEQUENCE profiles_id_seq
1042
+ START WITH 1
1043
+ INCREMENT BY 1
1044
+ NO MINVALUE
1045
+ NO MAXVALUE
1046
+ CACHE 1;
1047
+
1048
+
1049
+ --
1050
+ -- Name: profiles_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1051
+ --
1052
+
1053
+ ALTER SEQUENCE profiles_id_seq OWNED BY profiles.id;
1054
+
1055
+
1056
+ --
1057
+ -- Name: refs; Type: TABLE; Schema: public; Owner: -; Tablespace:
1058
+ --
1059
+
1060
+ CREATE TABLE refs (
1061
+ id integer NOT NULL,
1062
+ ref_id integer,
1063
+ created_at timestamp without time zone,
1064
+ name character varying(512),
1065
+ updated_at timestamp without time zone
1066
+ );
1067
+
1068
+
1069
+ --
1070
+ -- Name: refs_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1071
+ --
1072
+
1073
+ CREATE SEQUENCE refs_id_seq
1074
+ START WITH 1
1075
+ INCREMENT BY 1
1076
+ NO MINVALUE
1077
+ NO MAXVALUE
1078
+ CACHE 1;
1079
+
1080
+
1081
+ --
1082
+ -- Name: refs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1083
+ --
1084
+
1085
+ ALTER SEQUENCE refs_id_seq OWNED BY refs.id;
1086
+
1087
+
1088
+ --
1089
+ -- Name: report_templates; Type: TABLE; Schema: public; Owner: -; Tablespace:
1090
+ --
1091
+
1092
+ CREATE TABLE report_templates (
1093
+ id integer NOT NULL,
1094
+ workspace_id integer DEFAULT 1 NOT NULL,
1095
+ created_by character varying(255),
1096
+ path character varying(1024),
1097
+ name text,
1098
+ created_at timestamp without time zone NOT NULL,
1099
+ updated_at timestamp without time zone NOT NULL
1100
+ );
1101
+
1102
+
1103
+ --
1104
+ -- Name: report_templates_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1105
+ --
1106
+
1107
+ CREATE SEQUENCE report_templates_id_seq
1108
+ START WITH 1
1109
+ INCREMENT BY 1
1110
+ NO MINVALUE
1111
+ NO MAXVALUE
1112
+ CACHE 1;
1113
+
1114
+
1115
+ --
1116
+ -- Name: report_templates_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1117
+ --
1118
+
1119
+ ALTER SEQUENCE report_templates_id_seq OWNED BY report_templates.id;
1120
+
1121
+
1122
+ --
1123
+ -- Name: reports; Type: TABLE; Schema: public; Owner: -; Tablespace:
1124
+ --
1125
+
1126
+ CREATE TABLE reports (
1127
+ id integer NOT NULL,
1128
+ workspace_id integer DEFAULT 1 NOT NULL,
1129
+ created_by character varying(255),
1130
+ rtype character varying(255),
1131
+ path character varying(1024),
1132
+ options text,
1133
+ created_at timestamp without time zone NOT NULL,
1134
+ updated_at timestamp without time zone NOT NULL,
1135
+ downloaded_at timestamp without time zone,
1136
+ task_id integer,
1137
+ name character varying(63)
1138
+ );
1139
+
1140
+
1141
+ --
1142
+ -- Name: reports_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1143
+ --
1144
+
1145
+ CREATE SEQUENCE reports_id_seq
1146
+ START WITH 1
1147
+ INCREMENT BY 1
1148
+ NO MINVALUE
1149
+ NO MAXVALUE
1150
+ CACHE 1;
1151
+
1152
+
1153
+ --
1154
+ -- Name: reports_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1155
+ --
1156
+
1157
+ ALTER SEQUENCE reports_id_seq OWNED BY reports.id;
1158
+
1159
+
1160
+ --
1161
+ -- Name: routes; Type: TABLE; Schema: public; Owner: -; Tablespace:
1162
+ --
1163
+
1164
+ CREATE TABLE routes (
1165
+ id integer NOT NULL,
1166
+ session_id integer,
1167
+ subnet character varying(255),
1168
+ netmask character varying(255)
1169
+ );
1170
+
1171
+
1172
+ --
1173
+ -- Name: routes_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1174
+ --
1175
+
1176
+ CREATE SEQUENCE routes_id_seq
1177
+ START WITH 1
1178
+ INCREMENT BY 1
1179
+ NO MINVALUE
1180
+ NO MAXVALUE
1181
+ CACHE 1;
1182
+
1183
+
1184
+ --
1185
+ -- Name: routes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1186
+ --
1187
+
1188
+ ALTER SEQUENCE routes_id_seq OWNED BY routes.id;
1189
+
1190
+
1191
+ --
1192
+ -- Name: schema_migrations; Type: TABLE; Schema: public; Owner: -; Tablespace:
1193
+ --
1194
+
1195
+ CREATE TABLE schema_migrations (
1196
+ version character varying(255) NOT NULL
1197
+ );
1198
+
1199
+
1200
+ --
1201
+ -- Name: services; Type: TABLE; Schema: public; Owner: -; Tablespace:
1202
+ --
1203
+
1204
+ CREATE TABLE services (
1205
+ id integer NOT NULL,
1206
+ host_id integer,
1207
+ created_at timestamp without time zone,
1208
+ port integer NOT NULL,
1209
+ proto character varying(16) NOT NULL,
1210
+ state character varying(255),
1211
+ name character varying(255),
1212
+ updated_at timestamp without time zone,
1213
+ info text
1214
+ );
1215
+
1216
+
1217
+ --
1218
+ -- Name: services_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1219
+ --
1220
+
1221
+ CREATE SEQUENCE services_id_seq
1222
+ START WITH 1
1223
+ INCREMENT BY 1
1224
+ NO MINVALUE
1225
+ NO MAXVALUE
1226
+ CACHE 1;
1227
+
1228
+
1229
+ --
1230
+ -- Name: services_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1231
+ --
1232
+
1233
+ ALTER SEQUENCE services_id_seq OWNED BY services.id;
1234
+
1235
+
1236
+ --
1237
+ -- Name: session_events; Type: TABLE; Schema: public; Owner: -; Tablespace:
1238
+ --
1239
+
1240
+ CREATE TABLE session_events (
1241
+ id integer NOT NULL,
1242
+ session_id integer,
1243
+ etype character varying(255),
1244
+ command bytea,
1245
+ output bytea,
1246
+ remote_path character varying(255),
1247
+ local_path character varying(255),
1248
+ created_at timestamp without time zone
1249
+ );
1250
+
1251
+
1252
+ --
1253
+ -- Name: session_events_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1254
+ --
1255
+
1256
+ CREATE SEQUENCE session_events_id_seq
1257
+ START WITH 1
1258
+ INCREMENT BY 1
1259
+ NO MINVALUE
1260
+ NO MAXVALUE
1261
+ CACHE 1;
1262
+
1263
+
1264
+ --
1265
+ -- Name: session_events_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1266
+ --
1267
+
1268
+ ALTER SEQUENCE session_events_id_seq OWNED BY session_events.id;
1269
+
1270
+
1271
+ --
1272
+ -- Name: sessions; Type: TABLE; Schema: public; Owner: -; Tablespace:
1273
+ --
1274
+
1275
+ CREATE TABLE sessions (
1276
+ id integer NOT NULL,
1277
+ host_id integer,
1278
+ stype character varying(255),
1279
+ via_exploit character varying(255),
1280
+ via_payload character varying(255),
1281
+ "desc" character varying(255),
1282
+ port integer,
1283
+ platform character varying(255),
1284
+ datastore text,
1285
+ opened_at timestamp without time zone NOT NULL,
1286
+ closed_at timestamp without time zone,
1287
+ close_reason character varying(255),
1288
+ local_id integer,
1289
+ last_seen timestamp without time zone,
1290
+ module_run_id integer
1291
+ );
1292
+
1293
+
1294
+ --
1295
+ -- Name: sessions_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1296
+ --
1297
+
1298
+ CREATE SEQUENCE sessions_id_seq
1299
+ START WITH 1
1300
+ INCREMENT BY 1
1301
+ NO MINVALUE
1302
+ NO MAXVALUE
1303
+ CACHE 1;
1304
+
1305
+
1306
+ --
1307
+ -- Name: sessions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1308
+ --
1309
+
1310
+ ALTER SEQUENCE sessions_id_seq OWNED BY sessions.id;
1311
+
1312
+
1313
+ --
1314
+ -- Name: tags; Type: TABLE; Schema: public; Owner: -; Tablespace:
1315
+ --
1316
+
1317
+ CREATE TABLE tags (
1318
+ id integer NOT NULL,
1319
+ user_id integer,
1320
+ name character varying(1024),
1321
+ "desc" text,
1322
+ report_summary boolean DEFAULT false NOT NULL,
1323
+ report_detail boolean DEFAULT false NOT NULL,
1324
+ critical boolean DEFAULT false NOT NULL,
1325
+ created_at timestamp without time zone NOT NULL,
1326
+ updated_at timestamp without time zone NOT NULL
1327
+ );
1328
+
1329
+
1330
+ --
1331
+ -- Name: tags_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1332
+ --
1333
+
1334
+ CREATE SEQUENCE tags_id_seq
1335
+ START WITH 1
1336
+ INCREMENT BY 1
1337
+ NO MINVALUE
1338
+ NO MAXVALUE
1339
+ CACHE 1;
1340
+
1341
+
1342
+ --
1343
+ -- Name: tags_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1344
+ --
1345
+
1346
+ ALTER SEQUENCE tags_id_seq OWNED BY tags.id;
1347
+
1348
+
1349
+ --
1350
+ -- Name: task_creds; Type: TABLE; Schema: public; Owner: -; Tablespace:
1351
+ --
1352
+
1353
+ CREATE TABLE task_creds (
1354
+ id integer NOT NULL,
1355
+ task_id integer NOT NULL,
1356
+ cred_id integer NOT NULL,
1357
+ created_at timestamp without time zone NOT NULL,
1358
+ updated_at timestamp without time zone NOT NULL
1359
+ );
1360
+
1361
+
1362
+ --
1363
+ -- Name: task_creds_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1364
+ --
1365
+
1366
+ CREATE SEQUENCE task_creds_id_seq
1367
+ START WITH 1
1368
+ INCREMENT BY 1
1369
+ NO MINVALUE
1370
+ NO MAXVALUE
1371
+ CACHE 1;
1372
+
1373
+
1374
+ --
1375
+ -- Name: task_creds_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1376
+ --
1377
+
1378
+ ALTER SEQUENCE task_creds_id_seq OWNED BY task_creds.id;
1379
+
1380
+
1381
+ --
1382
+ -- Name: task_hosts; Type: TABLE; Schema: public; Owner: -; Tablespace:
1383
+ --
1384
+
1385
+ CREATE TABLE task_hosts (
1386
+ id integer NOT NULL,
1387
+ task_id integer NOT NULL,
1388
+ host_id integer NOT NULL,
1389
+ created_at timestamp without time zone NOT NULL,
1390
+ updated_at timestamp without time zone NOT NULL
1391
+ );
1392
+
1393
+
1394
+ --
1395
+ -- Name: task_hosts_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1396
+ --
1397
+
1398
+ CREATE SEQUENCE task_hosts_id_seq
1399
+ START WITH 1
1400
+ INCREMENT BY 1
1401
+ NO MINVALUE
1402
+ NO MAXVALUE
1403
+ CACHE 1;
1404
+
1405
+
1406
+ --
1407
+ -- Name: task_hosts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1408
+ --
1409
+
1410
+ ALTER SEQUENCE task_hosts_id_seq OWNED BY task_hosts.id;
1411
+
1412
+
1413
+ --
1414
+ -- Name: task_services; Type: TABLE; Schema: public; Owner: -; Tablespace:
1415
+ --
1416
+
1417
+ CREATE TABLE task_services (
1418
+ id integer NOT NULL,
1419
+ task_id integer NOT NULL,
1420
+ service_id integer NOT NULL,
1421
+ created_at timestamp without time zone NOT NULL,
1422
+ updated_at timestamp without time zone NOT NULL
1423
+ );
1424
+
1425
+
1426
+ --
1427
+ -- Name: task_services_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1428
+ --
1429
+
1430
+ CREATE SEQUENCE task_services_id_seq
1431
+ START WITH 1
1432
+ INCREMENT BY 1
1433
+ NO MINVALUE
1434
+ NO MAXVALUE
1435
+ CACHE 1;
1436
+
1437
+
1438
+ --
1439
+ -- Name: task_services_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1440
+ --
1441
+
1442
+ ALTER SEQUENCE task_services_id_seq OWNED BY task_services.id;
1443
+
1444
+
1445
+ --
1446
+ -- Name: task_sessions; Type: TABLE; Schema: public; Owner: -; Tablespace:
1447
+ --
1448
+
1449
+ CREATE TABLE task_sessions (
1450
+ id integer NOT NULL,
1451
+ task_id integer NOT NULL,
1452
+ session_id integer NOT NULL,
1453
+ created_at timestamp without time zone NOT NULL,
1454
+ updated_at timestamp without time zone NOT NULL
1455
+ );
1456
+
1457
+
1458
+ --
1459
+ -- Name: task_sessions_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1460
+ --
1461
+
1462
+ CREATE SEQUENCE task_sessions_id_seq
1463
+ START WITH 1
1464
+ INCREMENT BY 1
1465
+ NO MINVALUE
1466
+ NO MAXVALUE
1467
+ CACHE 1;
1468
+
1469
+
1470
+ --
1471
+ -- Name: task_sessions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1472
+ --
1473
+
1474
+ ALTER SEQUENCE task_sessions_id_seq OWNED BY task_sessions.id;
1475
+
1476
+
1477
+ --
1478
+ -- Name: tasks; Type: TABLE; Schema: public; Owner: -; Tablespace:
1479
+ --
1480
+
1481
+ CREATE TABLE tasks (
1482
+ id integer NOT NULL,
1483
+ workspace_id integer DEFAULT 1 NOT NULL,
1484
+ created_by character varying(255),
1485
+ module character varying(255),
1486
+ completed_at timestamp without time zone,
1487
+ path character varying(1024),
1488
+ info character varying(255),
1489
+ description character varying(255),
1490
+ progress integer,
1491
+ options text,
1492
+ error text,
1493
+ created_at timestamp without time zone NOT NULL,
1494
+ updated_at timestamp without time zone NOT NULL,
1495
+ result text,
1496
+ module_uuid character varying(8),
1497
+ settings bytea
1498
+ );
1499
+
1500
+
1501
+ --
1502
+ -- Name: tasks_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1503
+ --
1504
+
1505
+ CREATE SEQUENCE tasks_id_seq
1506
+ START WITH 1
1507
+ INCREMENT BY 1
1508
+ NO MINVALUE
1509
+ NO MAXVALUE
1510
+ CACHE 1;
1511
+
1512
+
1513
+ --
1514
+ -- Name: tasks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1515
+ --
1516
+
1517
+ ALTER SEQUENCE tasks_id_seq OWNED BY tasks.id;
1518
+
1519
+
1520
+ --
1521
+ -- Name: users; Type: TABLE; Schema: public; Owner: -; Tablespace:
1522
+ --
1523
+
1524
+ CREATE TABLE users (
1525
+ id integer NOT NULL,
1526
+ username character varying(255),
1527
+ crypted_password character varying(255),
1528
+ password_salt character varying(255),
1529
+ persistence_token character varying(255),
1530
+ created_at timestamp without time zone NOT NULL,
1531
+ updated_at timestamp without time zone NOT NULL,
1532
+ fullname character varying(255),
1533
+ email character varying(255),
1534
+ phone character varying(255),
1535
+ company character varying(255),
1536
+ prefs character varying(524288),
1537
+ admin boolean DEFAULT true NOT NULL
1538
+ );
1539
+
1540
+
1541
+ --
1542
+ -- Name: users_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1543
+ --
1544
+
1545
+ CREATE SEQUENCE users_id_seq
1546
+ START WITH 1
1547
+ INCREMENT BY 1
1548
+ NO MINVALUE
1549
+ NO MAXVALUE
1550
+ CACHE 1;
1551
+
1552
+
1553
+ --
1554
+ -- Name: users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1555
+ --
1556
+
1557
+ ALTER SEQUENCE users_id_seq OWNED BY users.id;
1558
+
1559
+
1560
+ --
1561
+ -- Name: vuln_attempts; Type: TABLE; Schema: public; Owner: -; Tablespace:
1562
+ --
1563
+
1564
+ CREATE TABLE vuln_attempts (
1565
+ id integer NOT NULL,
1566
+ vuln_id integer,
1567
+ attempted_at timestamp without time zone,
1568
+ exploited boolean,
1569
+ fail_reason character varying(255),
1570
+ username character varying(255),
1571
+ module text,
1572
+ session_id integer,
1573
+ loot_id integer,
1574
+ fail_detail text
1575
+ );
1576
+
1577
+
1578
+ --
1579
+ -- Name: vuln_attempts_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1580
+ --
1581
+
1582
+ CREATE SEQUENCE vuln_attempts_id_seq
1583
+ START WITH 1
1584
+ INCREMENT BY 1
1585
+ NO MINVALUE
1586
+ NO MAXVALUE
1587
+ CACHE 1;
1588
+
1589
+
1590
+ --
1591
+ -- Name: vuln_attempts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1592
+ --
1593
+
1594
+ ALTER SEQUENCE vuln_attempts_id_seq OWNED BY vuln_attempts.id;
1595
+
1596
+
1597
+ --
1598
+ -- Name: vuln_details; Type: TABLE; Schema: public; Owner: -; Tablespace:
1599
+ --
1600
+
1601
+ CREATE TABLE vuln_details (
1602
+ id integer NOT NULL,
1603
+ vuln_id integer,
1604
+ cvss_score double precision,
1605
+ cvss_vector character varying(255),
1606
+ title character varying(255),
1607
+ description text,
1608
+ solution text,
1609
+ proof bytea,
1610
+ nx_console_id integer,
1611
+ nx_device_id integer,
1612
+ nx_vuln_id character varying(255),
1613
+ nx_severity double precision,
1614
+ nx_pci_severity double precision,
1615
+ nx_published timestamp without time zone,
1616
+ nx_added timestamp without time zone,
1617
+ nx_modified timestamp without time zone,
1618
+ nx_tags text,
1619
+ nx_vuln_status text,
1620
+ nx_proof_key text,
1621
+ src character varying(255),
1622
+ nx_scan_id integer,
1623
+ nx_vulnerable_since timestamp without time zone,
1624
+ nx_pci_compliance_status character varying(255)
1625
+ );
1626
+
1627
+
1628
+ --
1629
+ -- Name: vuln_details_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1630
+ --
1631
+
1632
+ CREATE SEQUENCE vuln_details_id_seq
1633
+ START WITH 1
1634
+ INCREMENT BY 1
1635
+ NO MINVALUE
1636
+ NO MAXVALUE
1637
+ CACHE 1;
1638
+
1639
+
1640
+ --
1641
+ -- Name: vuln_details_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1642
+ --
1643
+
1644
+ ALTER SEQUENCE vuln_details_id_seq OWNED BY vuln_details.id;
1645
+
1646
+
1647
+ --
1648
+ -- Name: vulns; Type: TABLE; Schema: public; Owner: -; Tablespace:
1649
+ --
1650
+
1651
+ CREATE TABLE vulns (
1652
+ id integer NOT NULL,
1653
+ host_id integer,
1654
+ service_id integer,
1655
+ created_at timestamp without time zone,
1656
+ name character varying(255),
1657
+ updated_at timestamp without time zone,
1658
+ info character varying(65536),
1659
+ exploited_at timestamp without time zone,
1660
+ vuln_detail_count integer DEFAULT 0,
1661
+ vuln_attempt_count integer DEFAULT 0
1662
+ );
1663
+
1664
+
1665
+ --
1666
+ -- Name: vulns_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1667
+ --
1668
+
1669
+ CREATE SEQUENCE vulns_id_seq
1670
+ START WITH 1
1671
+ INCREMENT BY 1
1672
+ NO MINVALUE
1673
+ NO MAXVALUE
1674
+ CACHE 1;
1675
+
1676
+
1677
+ --
1678
+ -- Name: vulns_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1679
+ --
1680
+
1681
+ ALTER SEQUENCE vulns_id_seq OWNED BY vulns.id;
1682
+
1683
+
1684
+ --
1685
+ -- Name: vulns_refs; Type: TABLE; Schema: public; Owner: -; Tablespace:
1686
+ --
1687
+
1688
+ CREATE TABLE vulns_refs (
1689
+ ref_id integer,
1690
+ vuln_id integer,
1691
+ id integer NOT NULL
1692
+ );
1693
+
1694
+
1695
+ --
1696
+ -- Name: vulns_refs_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1697
+ --
1698
+
1699
+ CREATE SEQUENCE vulns_refs_id_seq
1700
+ START WITH 1
1701
+ INCREMENT BY 1
1702
+ NO MINVALUE
1703
+ NO MAXVALUE
1704
+ CACHE 1;
1705
+
1706
+
1707
+ --
1708
+ -- Name: vulns_refs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1709
+ --
1710
+
1711
+ ALTER SEQUENCE vulns_refs_id_seq OWNED BY vulns_refs.id;
1712
+
1713
+
1714
+ --
1715
+ -- Name: web_forms; Type: TABLE; Schema: public; Owner: -; Tablespace:
1716
+ --
1717
+
1718
+ CREATE TABLE web_forms (
1719
+ id integer NOT NULL,
1720
+ web_site_id integer NOT NULL,
1721
+ created_at timestamp without time zone NOT NULL,
1722
+ updated_at timestamp without time zone NOT NULL,
1723
+ path text,
1724
+ method character varying(1024),
1725
+ params text,
1726
+ query text
1727
+ );
1728
+
1729
+
1730
+ --
1731
+ -- Name: web_forms_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1732
+ --
1733
+
1734
+ CREATE SEQUENCE web_forms_id_seq
1735
+ START WITH 1
1736
+ INCREMENT BY 1
1737
+ NO MINVALUE
1738
+ NO MAXVALUE
1739
+ CACHE 1;
1740
+
1741
+
1742
+ --
1743
+ -- Name: web_forms_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1744
+ --
1745
+
1746
+ ALTER SEQUENCE web_forms_id_seq OWNED BY web_forms.id;
1747
+
1748
+
1749
+ --
1750
+ -- Name: web_pages; Type: TABLE; Schema: public; Owner: -; Tablespace:
1751
+ --
1752
+
1753
+ CREATE TABLE web_pages (
1754
+ id integer NOT NULL,
1755
+ web_site_id integer NOT NULL,
1756
+ created_at timestamp without time zone NOT NULL,
1757
+ updated_at timestamp without time zone NOT NULL,
1758
+ path text,
1759
+ query text,
1760
+ code integer NOT NULL,
1761
+ cookie text,
1762
+ auth text,
1763
+ ctype text,
1764
+ mtime timestamp without time zone,
1765
+ location text,
1766
+ headers text,
1767
+ body bytea,
1768
+ request bytea
1769
+ );
1770
+
1771
+
1772
+ --
1773
+ -- Name: web_pages_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1774
+ --
1775
+
1776
+ CREATE SEQUENCE web_pages_id_seq
1777
+ START WITH 1
1778
+ INCREMENT BY 1
1779
+ NO MINVALUE
1780
+ NO MAXVALUE
1781
+ CACHE 1;
1782
+
1783
+
1784
+ --
1785
+ -- Name: web_pages_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1786
+ --
1787
+
1788
+ ALTER SEQUENCE web_pages_id_seq OWNED BY web_pages.id;
1789
+
1790
+
1791
+ --
1792
+ -- Name: web_sites; Type: TABLE; Schema: public; Owner: -; Tablespace:
1793
+ --
1794
+
1795
+ CREATE TABLE web_sites (
1796
+ id integer NOT NULL,
1797
+ service_id integer NOT NULL,
1798
+ created_at timestamp without time zone NOT NULL,
1799
+ updated_at timestamp without time zone NOT NULL,
1800
+ vhost character varying(2048),
1801
+ comments text,
1802
+ options text
1803
+ );
1804
+
1805
+
1806
+ --
1807
+ -- Name: web_sites_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1808
+ --
1809
+
1810
+ CREATE SEQUENCE web_sites_id_seq
1811
+ START WITH 1
1812
+ INCREMENT BY 1
1813
+ NO MINVALUE
1814
+ NO MAXVALUE
1815
+ CACHE 1;
1816
+
1817
+
1818
+ --
1819
+ -- Name: web_sites_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1820
+ --
1821
+
1822
+ ALTER SEQUENCE web_sites_id_seq OWNED BY web_sites.id;
1823
+
1824
+
1825
+ --
1826
+ -- Name: web_vulns; Type: TABLE; Schema: public; Owner: -; Tablespace:
1827
+ --
1828
+
1829
+ CREATE TABLE web_vulns (
1830
+ id integer NOT NULL,
1831
+ web_site_id integer NOT NULL,
1832
+ created_at timestamp without time zone NOT NULL,
1833
+ updated_at timestamp without time zone NOT NULL,
1834
+ path text NOT NULL,
1835
+ method character varying(1024) NOT NULL,
1836
+ params text NOT NULL,
1837
+ pname text,
1838
+ risk integer NOT NULL,
1839
+ name character varying(1024) NOT NULL,
1840
+ query text,
1841
+ category text NOT NULL,
1842
+ confidence integer NOT NULL,
1843
+ description text,
1844
+ blame text,
1845
+ request bytea,
1846
+ proof bytea NOT NULL,
1847
+ owner character varying(255),
1848
+ payload text
1849
+ );
1850
+
1851
+
1852
+ --
1853
+ -- Name: web_vulns_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1854
+ --
1855
+
1856
+ CREATE SEQUENCE web_vulns_id_seq
1857
+ START WITH 1
1858
+ INCREMENT BY 1
1859
+ NO MINVALUE
1860
+ NO MAXVALUE
1861
+ CACHE 1;
1862
+
1863
+
1864
+ --
1865
+ -- Name: web_vulns_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1866
+ --
1867
+
1868
+ ALTER SEQUENCE web_vulns_id_seq OWNED BY web_vulns.id;
1869
+
1870
+
1871
+ --
1872
+ -- Name: wmap_requests; Type: TABLE; Schema: public; Owner: -; Tablespace:
1873
+ --
1874
+
1875
+ CREATE TABLE wmap_requests (
1876
+ id integer NOT NULL,
1877
+ host character varying(255),
1878
+ address inet,
1879
+ port integer,
1880
+ ssl integer,
1881
+ meth character varying(32),
1882
+ path text,
1883
+ headers text,
1884
+ query text,
1885
+ body text,
1886
+ respcode character varying(16),
1887
+ resphead text,
1888
+ response text,
1889
+ created_at timestamp without time zone,
1890
+ updated_at timestamp without time zone
1891
+ );
1892
+
1893
+
1894
+ --
1895
+ -- Name: wmap_requests_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1896
+ --
1897
+
1898
+ CREATE SEQUENCE wmap_requests_id_seq
1899
+ START WITH 1
1900
+ INCREMENT BY 1
1901
+ NO MINVALUE
1902
+ NO MAXVALUE
1903
+ CACHE 1;
1904
+
1905
+
1906
+ --
1907
+ -- Name: wmap_requests_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1908
+ --
1909
+
1910
+ ALTER SEQUENCE wmap_requests_id_seq OWNED BY wmap_requests.id;
1911
+
1912
+
1913
+ --
1914
+ -- Name: wmap_targets; Type: TABLE; Schema: public; Owner: -; Tablespace:
1915
+ --
1916
+
1917
+ CREATE TABLE wmap_targets (
1918
+ id integer NOT NULL,
1919
+ host character varying(255),
1920
+ address inet,
1921
+ port integer,
1922
+ ssl integer,
1923
+ selected integer,
1924
+ created_at timestamp without time zone,
1925
+ updated_at timestamp without time zone
1926
+ );
1927
+
1928
+
1929
+ --
1930
+ -- Name: wmap_targets_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1931
+ --
1932
+
1933
+ CREATE SEQUENCE wmap_targets_id_seq
1934
+ START WITH 1
1935
+ INCREMENT BY 1
1936
+ NO MINVALUE
1937
+ NO MAXVALUE
1938
+ CACHE 1;
1939
+
1940
+
1941
+ --
1942
+ -- Name: wmap_targets_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1943
+ --
1944
+
1945
+ ALTER SEQUENCE wmap_targets_id_seq OWNED BY wmap_targets.id;
1946
+
1947
+
1948
+ --
1949
+ -- Name: workspace_members; Type: TABLE; Schema: public; Owner: -; Tablespace:
1950
+ --
1951
+
1952
+ CREATE TABLE workspace_members (
1953
+ workspace_id integer NOT NULL,
1954
+ user_id integer NOT NULL
1955
+ );
1956
+
1957
+
1958
+ --
1959
+ -- Name: workspaces; Type: TABLE; Schema: public; Owner: -; Tablespace:
1960
+ --
1961
+
1962
+ CREATE TABLE workspaces (
1963
+ id integer NOT NULL,
1964
+ name character varying(255),
1965
+ created_at timestamp without time zone NOT NULL,
1966
+ updated_at timestamp without time zone NOT NULL,
1967
+ boundary character varying(4096),
1968
+ description character varying(4096),
1969
+ owner_id integer,
1970
+ limit_to_network boolean DEFAULT false NOT NULL
1971
+ );
1972
+
1973
+
1974
+ --
1975
+ -- Name: workspaces_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1976
+ --
1977
+
1978
+ CREATE SEQUENCE workspaces_id_seq
1979
+ START WITH 1
1980
+ INCREMENT BY 1
1981
+ NO MINVALUE
1982
+ NO MAXVALUE
1983
+ CACHE 1;
1984
+
1985
+
1986
+ --
1987
+ -- Name: workspaces_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1988
+ --
1989
+
1990
+ ALTER SEQUENCE workspaces_id_seq OWNED BY workspaces.id;
1991
+
1992
+
1993
+ --
1994
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1995
+ --
1996
+
1997
+ ALTER TABLE ONLY api_keys ALTER COLUMN id SET DEFAULT nextval('api_keys_id_seq'::regclass);
1998
+
1999
+
2000
+ --
2001
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2002
+ --
2003
+
2004
+ ALTER TABLE ONLY automatic_exploitation_match_results ALTER COLUMN id SET DEFAULT nextval('automatic_exploitation_match_results_id_seq'::regclass);
2005
+
2006
+
2007
+ --
2008
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2009
+ --
2010
+
2011
+ ALTER TABLE ONLY automatic_exploitation_match_sets ALTER COLUMN id SET DEFAULT nextval('automatic_exploitation_match_sets_id_seq'::regclass);
2012
+
2013
+
2014
+ --
2015
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2016
+ --
2017
+
2018
+ ALTER TABLE ONLY automatic_exploitation_matches ALTER COLUMN id SET DEFAULT nextval('automatic_exploitation_matches_id_seq'::regclass);
2019
+
2020
+
2021
+ --
2022
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2023
+ --
2024
+
2025
+ ALTER TABLE ONLY automatic_exploitation_runs ALTER COLUMN id SET DEFAULT nextval('automatic_exploitation_runs_id_seq'::regclass);
2026
+
2027
+
2028
+ --
2029
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2030
+ --
2031
+
2032
+ ALTER TABLE ONLY clients ALTER COLUMN id SET DEFAULT nextval('clients_id_seq'::regclass);
2033
+
2034
+
2035
+ --
2036
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2037
+ --
2038
+
2039
+ ALTER TABLE ONLY creds ALTER COLUMN id SET DEFAULT nextval('creds_id_seq'::regclass);
2040
+
2041
+
2042
+ --
2043
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2044
+ --
2045
+
2046
+ ALTER TABLE ONLY events ALTER COLUMN id SET DEFAULT nextval('events_id_seq'::regclass);
2047
+
2048
+
2049
+ --
2050
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2051
+ --
2052
+
2053
+ ALTER TABLE ONLY exploit_attempts ALTER COLUMN id SET DEFAULT nextval('exploit_attempts_id_seq'::regclass);
2054
+
2055
+
2056
+ --
2057
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2058
+ --
2059
+
2060
+ ALTER TABLE ONLY exploited_hosts ALTER COLUMN id SET DEFAULT nextval('exploited_hosts_id_seq'::regclass);
2061
+
2062
+
2063
+ --
2064
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2065
+ --
2066
+
2067
+ ALTER TABLE ONLY host_details ALTER COLUMN id SET DEFAULT nextval('host_details_id_seq'::regclass);
2068
+
2069
+
2070
+ --
2071
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2072
+ --
2073
+
2074
+ ALTER TABLE ONLY hosts ALTER COLUMN id SET DEFAULT nextval('hosts_id_seq'::regclass);
2075
+
2076
+
2077
+ --
2078
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2079
+ --
2080
+
2081
+ ALTER TABLE ONLY hosts_tags ALTER COLUMN id SET DEFAULT nextval('hosts_tags_id_seq'::regclass);
2082
+
2083
+
2084
+ --
2085
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2086
+ --
2087
+
2088
+ ALTER TABLE ONLY listeners ALTER COLUMN id SET DEFAULT nextval('listeners_id_seq'::regclass);
2089
+
2090
+
2091
+ --
2092
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2093
+ --
2094
+
2095
+ ALTER TABLE ONLY loots ALTER COLUMN id SET DEFAULT nextval('loots_id_seq'::regclass);
2096
+
2097
+
2098
+ --
2099
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2100
+ --
2101
+
2102
+ ALTER TABLE ONLY macros ALTER COLUMN id SET DEFAULT nextval('macros_id_seq'::regclass);
2103
+
2104
+
2105
+ --
2106
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2107
+ --
2108
+
2109
+ ALTER TABLE ONLY mod_refs ALTER COLUMN id SET DEFAULT nextval('mod_refs_id_seq'::regclass);
2110
+
2111
+
2112
+ --
2113
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2114
+ --
2115
+
2116
+ ALTER TABLE ONLY module_actions ALTER COLUMN id SET DEFAULT nextval('module_actions_id_seq'::regclass);
2117
+
2118
+
2119
+ --
2120
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2121
+ --
2122
+
2123
+ ALTER TABLE ONLY module_archs ALTER COLUMN id SET DEFAULT nextval('module_archs_id_seq'::regclass);
2124
+
2125
+
2126
+ --
2127
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2128
+ --
2129
+
2130
+ ALTER TABLE ONLY module_authors ALTER COLUMN id SET DEFAULT nextval('module_authors_id_seq'::regclass);
2131
+
2132
+
2133
+ --
2134
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2135
+ --
2136
+
2137
+ ALTER TABLE ONLY module_details ALTER COLUMN id SET DEFAULT nextval('module_details_id_seq'::regclass);
2138
+
2139
+
2140
+ --
2141
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2142
+ --
2143
+
2144
+ ALTER TABLE ONLY module_mixins ALTER COLUMN id SET DEFAULT nextval('module_mixins_id_seq'::regclass);
2145
+
2146
+
2147
+ --
2148
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2149
+ --
2150
+
2151
+ ALTER TABLE ONLY module_platforms ALTER COLUMN id SET DEFAULT nextval('module_platforms_id_seq'::regclass);
2152
+
2153
+
2154
+ --
2155
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2156
+ --
2157
+
2158
+ ALTER TABLE ONLY module_refs ALTER COLUMN id SET DEFAULT nextval('module_refs_id_seq'::regclass);
2159
+
2160
+
2161
+ --
2162
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2163
+ --
2164
+
2165
+ ALTER TABLE ONLY module_runs ALTER COLUMN id SET DEFAULT nextval('module_runs_id_seq'::regclass);
2166
+
2167
+
2168
+ --
2169
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2170
+ --
2171
+
2172
+ ALTER TABLE ONLY module_targets ALTER COLUMN id SET DEFAULT nextval('module_targets_id_seq'::regclass);
2173
+
2174
+
2175
+ --
2176
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2177
+ --
2178
+
2179
+ ALTER TABLE ONLY nexpose_consoles ALTER COLUMN id SET DEFAULT nextval('nexpose_consoles_id_seq'::regclass);
2180
+
2181
+
2182
+ --
2183
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2184
+ --
2185
+
2186
+ ALTER TABLE ONLY notes ALTER COLUMN id SET DEFAULT nextval('notes_id_seq'::regclass);
2187
+
2188
+
2189
+ --
2190
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2191
+ --
2192
+
2193
+ ALTER TABLE ONLY profiles ALTER COLUMN id SET DEFAULT nextval('profiles_id_seq'::regclass);
2194
+
2195
+
2196
+ --
2197
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2198
+ --
2199
+
2200
+ ALTER TABLE ONLY refs ALTER COLUMN id SET DEFAULT nextval('refs_id_seq'::regclass);
2201
+
2202
+
2203
+ --
2204
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2205
+ --
2206
+
2207
+ ALTER TABLE ONLY report_templates ALTER COLUMN id SET DEFAULT nextval('report_templates_id_seq'::regclass);
2208
+
2209
+
2210
+ --
2211
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2212
+ --
2213
+
2214
+ ALTER TABLE ONLY reports ALTER COLUMN id SET DEFAULT nextval('reports_id_seq'::regclass);
2215
+
2216
+
2217
+ --
2218
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2219
+ --
2220
+
2221
+ ALTER TABLE ONLY routes ALTER COLUMN id SET DEFAULT nextval('routes_id_seq'::regclass);
2222
+
2223
+
2224
+ --
2225
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2226
+ --
2227
+
2228
+ ALTER TABLE ONLY services ALTER COLUMN id SET DEFAULT nextval('services_id_seq'::regclass);
2229
+
2230
+
2231
+ --
2232
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2233
+ --
2234
+
2235
+ ALTER TABLE ONLY session_events ALTER COLUMN id SET DEFAULT nextval('session_events_id_seq'::regclass);
2236
+
2237
+
2238
+ --
2239
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2240
+ --
2241
+
2242
+ ALTER TABLE ONLY sessions ALTER COLUMN id SET DEFAULT nextval('sessions_id_seq'::regclass);
2243
+
2244
+
2245
+ --
2246
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2247
+ --
2248
+
2249
+ ALTER TABLE ONLY tags ALTER COLUMN id SET DEFAULT nextval('tags_id_seq'::regclass);
2250
+
2251
+
2252
+ --
2253
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2254
+ --
2255
+
2256
+ ALTER TABLE ONLY task_creds ALTER COLUMN id SET DEFAULT nextval('task_creds_id_seq'::regclass);
2257
+
2258
+
2259
+ --
2260
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2261
+ --
2262
+
2263
+ ALTER TABLE ONLY task_hosts ALTER COLUMN id SET DEFAULT nextval('task_hosts_id_seq'::regclass);
2264
+
2265
+
2266
+ --
2267
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2268
+ --
2269
+
2270
+ ALTER TABLE ONLY task_services ALTER COLUMN id SET DEFAULT nextval('task_services_id_seq'::regclass);
2271
+
2272
+
2273
+ --
2274
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2275
+ --
2276
+
2277
+ ALTER TABLE ONLY task_sessions ALTER COLUMN id SET DEFAULT nextval('task_sessions_id_seq'::regclass);
2278
+
2279
+
2280
+ --
2281
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2282
+ --
2283
+
2284
+ ALTER TABLE ONLY tasks ALTER COLUMN id SET DEFAULT nextval('tasks_id_seq'::regclass);
2285
+
2286
+
2287
+ --
2288
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2289
+ --
2290
+
2291
+ ALTER TABLE ONLY users ALTER COLUMN id SET DEFAULT nextval('users_id_seq'::regclass);
2292
+
2293
+
2294
+ --
2295
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2296
+ --
2297
+
2298
+ ALTER TABLE ONLY vuln_attempts ALTER COLUMN id SET DEFAULT nextval('vuln_attempts_id_seq'::regclass);
2299
+
2300
+
2301
+ --
2302
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2303
+ --
2304
+
2305
+ ALTER TABLE ONLY vuln_details ALTER COLUMN id SET DEFAULT nextval('vuln_details_id_seq'::regclass);
2306
+
2307
+
2308
+ --
2309
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2310
+ --
2311
+
2312
+ ALTER TABLE ONLY vulns ALTER COLUMN id SET DEFAULT nextval('vulns_id_seq'::regclass);
2313
+
2314
+
2315
+ --
2316
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2317
+ --
2318
+
2319
+ ALTER TABLE ONLY vulns_refs ALTER COLUMN id SET DEFAULT nextval('vulns_refs_id_seq'::regclass);
2320
+
2321
+
2322
+ --
2323
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2324
+ --
2325
+
2326
+ ALTER TABLE ONLY web_forms ALTER COLUMN id SET DEFAULT nextval('web_forms_id_seq'::regclass);
2327
+
2328
+
2329
+ --
2330
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2331
+ --
2332
+
2333
+ ALTER TABLE ONLY web_pages ALTER COLUMN id SET DEFAULT nextval('web_pages_id_seq'::regclass);
2334
+
2335
+
2336
+ --
2337
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2338
+ --
2339
+
2340
+ ALTER TABLE ONLY web_sites ALTER COLUMN id SET DEFAULT nextval('web_sites_id_seq'::regclass);
2341
+
2342
+
2343
+ --
2344
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2345
+ --
2346
+
2347
+ ALTER TABLE ONLY web_vulns ALTER COLUMN id SET DEFAULT nextval('web_vulns_id_seq'::regclass);
2348
+
2349
+
2350
+ --
2351
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2352
+ --
2353
+
2354
+ ALTER TABLE ONLY wmap_requests ALTER COLUMN id SET DEFAULT nextval('wmap_requests_id_seq'::regclass);
2355
+
2356
+
2357
+ --
2358
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2359
+ --
2360
+
2361
+ ALTER TABLE ONLY wmap_targets ALTER COLUMN id SET DEFAULT nextval('wmap_targets_id_seq'::regclass);
2362
+
2363
+
2364
+ --
2365
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2366
+ --
2367
+
2368
+ ALTER TABLE ONLY workspaces ALTER COLUMN id SET DEFAULT nextval('workspaces_id_seq'::regclass);
2369
+
2370
+
2371
+ --
2372
+ -- Name: api_keys_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2373
+ --
2374
+
2375
+ ALTER TABLE ONLY api_keys
2376
+ ADD CONSTRAINT api_keys_pkey PRIMARY KEY (id);
2377
+
2378
+
2379
+ --
2380
+ -- Name: automatic_exploitation_match_results_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2381
+ --
2382
+
2383
+ ALTER TABLE ONLY automatic_exploitation_match_results
2384
+ ADD CONSTRAINT automatic_exploitation_match_results_pkey PRIMARY KEY (id);
2385
+
2386
+
2387
+ --
2388
+ -- Name: automatic_exploitation_match_sets_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2389
+ --
2390
+
2391
+ ALTER TABLE ONLY automatic_exploitation_match_sets
2392
+ ADD CONSTRAINT automatic_exploitation_match_sets_pkey PRIMARY KEY (id);
2393
+
2394
+
2395
+ --
2396
+ -- Name: automatic_exploitation_matches_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2397
+ --
2398
+
2399
+ ALTER TABLE ONLY automatic_exploitation_matches
2400
+ ADD CONSTRAINT automatic_exploitation_matches_pkey PRIMARY KEY (id);
2401
+
2402
+
2403
+ --
2404
+ -- Name: automatic_exploitation_runs_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2405
+ --
2406
+
2407
+ ALTER TABLE ONLY automatic_exploitation_runs
2408
+ ADD CONSTRAINT automatic_exploitation_runs_pkey PRIMARY KEY (id);
2409
+
2410
+
2411
+ --
2412
+ -- Name: clients_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2413
+ --
2414
+
2415
+ ALTER TABLE ONLY clients
2416
+ ADD CONSTRAINT clients_pkey PRIMARY KEY (id);
2417
+
2418
+
2419
+ --
2420
+ -- Name: creds_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2421
+ --
2422
+
2423
+ ALTER TABLE ONLY creds
2424
+ ADD CONSTRAINT creds_pkey PRIMARY KEY (id);
2425
+
2426
+
2427
+ --
2428
+ -- Name: events_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2429
+ --
2430
+
2431
+ ALTER TABLE ONLY events
2432
+ ADD CONSTRAINT events_pkey PRIMARY KEY (id);
2433
+
2434
+
2435
+ --
2436
+ -- Name: exploit_attempts_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2437
+ --
2438
+
2439
+ ALTER TABLE ONLY exploit_attempts
2440
+ ADD CONSTRAINT exploit_attempts_pkey PRIMARY KEY (id);
2441
+
2442
+
2443
+ --
2444
+ -- Name: exploited_hosts_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2445
+ --
2446
+
2447
+ ALTER TABLE ONLY exploited_hosts
2448
+ ADD CONSTRAINT exploited_hosts_pkey PRIMARY KEY (id);
2449
+
2450
+
2451
+ --
2452
+ -- Name: host_details_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2453
+ --
2454
+
2455
+ ALTER TABLE ONLY host_details
2456
+ ADD CONSTRAINT host_details_pkey PRIMARY KEY (id);
2457
+
2458
+
2459
+ --
2460
+ -- Name: hosts_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2461
+ --
2462
+
2463
+ ALTER TABLE ONLY hosts
2464
+ ADD CONSTRAINT hosts_pkey PRIMARY KEY (id);
2465
+
2466
+
2467
+ --
2468
+ -- Name: hosts_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2469
+ --
2470
+
2471
+ ALTER TABLE ONLY hosts_tags
2472
+ ADD CONSTRAINT hosts_tags_pkey PRIMARY KEY (id);
2473
+
2474
+
2475
+ --
2476
+ -- Name: listeners_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2477
+ --
2478
+
2479
+ ALTER TABLE ONLY listeners
2480
+ ADD CONSTRAINT listeners_pkey PRIMARY KEY (id);
2481
+
2482
+
2483
+ --
2484
+ -- Name: loots_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2485
+ --
2486
+
2487
+ ALTER TABLE ONLY loots
2488
+ ADD CONSTRAINT loots_pkey PRIMARY KEY (id);
2489
+
2490
+
2491
+ --
2492
+ -- Name: macros_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2493
+ --
2494
+
2495
+ ALTER TABLE ONLY macros
2496
+ ADD CONSTRAINT macros_pkey PRIMARY KEY (id);
2497
+
2498
+
2499
+ --
2500
+ -- Name: mod_refs_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2501
+ --
2502
+
2503
+ ALTER TABLE ONLY mod_refs
2504
+ ADD CONSTRAINT mod_refs_pkey PRIMARY KEY (id);
2505
+
2506
+
2507
+ --
2508
+ -- Name: module_actions_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2509
+ --
2510
+
2511
+ ALTER TABLE ONLY module_actions
2512
+ ADD CONSTRAINT module_actions_pkey PRIMARY KEY (id);
2513
+
2514
+
2515
+ --
2516
+ -- Name: module_archs_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2517
+ --
2518
+
2519
+ ALTER TABLE ONLY module_archs
2520
+ ADD CONSTRAINT module_archs_pkey PRIMARY KEY (id);
2521
+
2522
+
2523
+ --
2524
+ -- Name: module_authors_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2525
+ --
2526
+
2527
+ ALTER TABLE ONLY module_authors
2528
+ ADD CONSTRAINT module_authors_pkey PRIMARY KEY (id);
2529
+
2530
+
2531
+ --
2532
+ -- Name: module_details_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2533
+ --
2534
+
2535
+ ALTER TABLE ONLY module_details
2536
+ ADD CONSTRAINT module_details_pkey PRIMARY KEY (id);
2537
+
2538
+
2539
+ --
2540
+ -- Name: module_mixins_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2541
+ --
2542
+
2543
+ ALTER TABLE ONLY module_mixins
2544
+ ADD CONSTRAINT module_mixins_pkey PRIMARY KEY (id);
2545
+
2546
+
2547
+ --
2548
+ -- Name: module_platforms_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2549
+ --
2550
+
2551
+ ALTER TABLE ONLY module_platforms
2552
+ ADD CONSTRAINT module_platforms_pkey PRIMARY KEY (id);
2553
+
2554
+
2555
+ --
2556
+ -- Name: module_refs_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2557
+ --
2558
+
2559
+ ALTER TABLE ONLY module_refs
2560
+ ADD CONSTRAINT module_refs_pkey PRIMARY KEY (id);
2561
+
2562
+
2563
+ --
2564
+ -- Name: module_runs_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2565
+ --
2566
+
2567
+ ALTER TABLE ONLY module_runs
2568
+ ADD CONSTRAINT module_runs_pkey PRIMARY KEY (id);
2569
+
2570
+
2571
+ --
2572
+ -- Name: module_targets_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2573
+ --
2574
+
2575
+ ALTER TABLE ONLY module_targets
2576
+ ADD CONSTRAINT module_targets_pkey PRIMARY KEY (id);
2577
+
2578
+
2579
+ --
2580
+ -- Name: nexpose_consoles_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2581
+ --
2582
+
2583
+ ALTER TABLE ONLY nexpose_consoles
2584
+ ADD CONSTRAINT nexpose_consoles_pkey PRIMARY KEY (id);
2585
+
2586
+
2587
+ --
2588
+ -- Name: notes_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2589
+ --
2590
+
2591
+ ALTER TABLE ONLY notes
2592
+ ADD CONSTRAINT notes_pkey PRIMARY KEY (id);
2593
+
2594
+
2595
+ --
2596
+ -- Name: profiles_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2597
+ --
2598
+
2599
+ ALTER TABLE ONLY profiles
2600
+ ADD CONSTRAINT profiles_pkey PRIMARY KEY (id);
2601
+
2602
+
2603
+ --
2604
+ -- Name: refs_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2605
+ --
2606
+
2607
+ ALTER TABLE ONLY refs
2608
+ ADD CONSTRAINT refs_pkey PRIMARY KEY (id);
2609
+
2610
+
2611
+ --
2612
+ -- Name: report_templates_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2613
+ --
2614
+
2615
+ ALTER TABLE ONLY report_templates
2616
+ ADD CONSTRAINT report_templates_pkey PRIMARY KEY (id);
2617
+
2618
+
2619
+ --
2620
+ -- Name: reports_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2621
+ --
2622
+
2623
+ ALTER TABLE ONLY reports
2624
+ ADD CONSTRAINT reports_pkey PRIMARY KEY (id);
2625
+
2626
+
2627
+ --
2628
+ -- Name: routes_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2629
+ --
2630
+
2631
+ ALTER TABLE ONLY routes
2632
+ ADD CONSTRAINT routes_pkey PRIMARY KEY (id);
2633
+
2634
+
2635
+ --
2636
+ -- Name: services_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2637
+ --
2638
+
2639
+ ALTER TABLE ONLY services
2640
+ ADD CONSTRAINT services_pkey PRIMARY KEY (id);
2641
+
2642
+
2643
+ --
2644
+ -- Name: session_events_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2645
+ --
2646
+
2647
+ ALTER TABLE ONLY session_events
2648
+ ADD CONSTRAINT session_events_pkey PRIMARY KEY (id);
2649
+
2650
+
2651
+ --
2652
+ -- Name: sessions_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2653
+ --
2654
+
2655
+ ALTER TABLE ONLY sessions
2656
+ ADD CONSTRAINT sessions_pkey PRIMARY KEY (id);
2657
+
2658
+
2659
+ --
2660
+ -- Name: tags_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2661
+ --
2662
+
2663
+ ALTER TABLE ONLY tags
2664
+ ADD CONSTRAINT tags_pkey PRIMARY KEY (id);
2665
+
2666
+
2667
+ --
2668
+ -- Name: task_creds_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2669
+ --
2670
+
2671
+ ALTER TABLE ONLY task_creds
2672
+ ADD CONSTRAINT task_creds_pkey PRIMARY KEY (id);
2673
+
2674
+
2675
+ --
2676
+ -- Name: task_hosts_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2677
+ --
2678
+
2679
+ ALTER TABLE ONLY task_hosts
2680
+ ADD CONSTRAINT task_hosts_pkey PRIMARY KEY (id);
2681
+
2682
+
2683
+ --
2684
+ -- Name: task_services_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2685
+ --
2686
+
2687
+ ALTER TABLE ONLY task_services
2688
+ ADD CONSTRAINT task_services_pkey PRIMARY KEY (id);
2689
+
2690
+
2691
+ --
2692
+ -- Name: task_sessions_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2693
+ --
2694
+
2695
+ ALTER TABLE ONLY task_sessions
2696
+ ADD CONSTRAINT task_sessions_pkey PRIMARY KEY (id);
2697
+
2698
+
2699
+ --
2700
+ -- Name: tasks_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2701
+ --
2702
+
2703
+ ALTER TABLE ONLY tasks
2704
+ ADD CONSTRAINT tasks_pkey PRIMARY KEY (id);
2705
+
2706
+
2707
+ --
2708
+ -- Name: users_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2709
+ --
2710
+
2711
+ ALTER TABLE ONLY users
2712
+ ADD CONSTRAINT users_pkey PRIMARY KEY (id);
2713
+
2714
+
2715
+ --
2716
+ -- Name: vuln_attempts_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2717
+ --
2718
+
2719
+ ALTER TABLE ONLY vuln_attempts
2720
+ ADD CONSTRAINT vuln_attempts_pkey PRIMARY KEY (id);
2721
+
2722
+
2723
+ --
2724
+ -- Name: vuln_details_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2725
+ --
2726
+
2727
+ ALTER TABLE ONLY vuln_details
2728
+ ADD CONSTRAINT vuln_details_pkey PRIMARY KEY (id);
2729
+
2730
+
2731
+ --
2732
+ -- Name: vulns_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2733
+ --
2734
+
2735
+ ALTER TABLE ONLY vulns
2736
+ ADD CONSTRAINT vulns_pkey PRIMARY KEY (id);
2737
+
2738
+
2739
+ --
2740
+ -- Name: vulns_refs_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2741
+ --
2742
+
2743
+ ALTER TABLE ONLY vulns_refs
2744
+ ADD CONSTRAINT vulns_refs_pkey PRIMARY KEY (id);
2745
+
2746
+
2747
+ --
2748
+ -- Name: web_forms_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2749
+ --
2750
+
2751
+ ALTER TABLE ONLY web_forms
2752
+ ADD CONSTRAINT web_forms_pkey PRIMARY KEY (id);
2753
+
2754
+
2755
+ --
2756
+ -- Name: web_pages_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2757
+ --
2758
+
2759
+ ALTER TABLE ONLY web_pages
2760
+ ADD CONSTRAINT web_pages_pkey PRIMARY KEY (id);
2761
+
2762
+
2763
+ --
2764
+ -- Name: web_sites_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2765
+ --
2766
+
2767
+ ALTER TABLE ONLY web_sites
2768
+ ADD CONSTRAINT web_sites_pkey PRIMARY KEY (id);
2769
+
2770
+
2771
+ --
2772
+ -- Name: web_vulns_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2773
+ --
2774
+
2775
+ ALTER TABLE ONLY web_vulns
2776
+ ADD CONSTRAINT web_vulns_pkey PRIMARY KEY (id);
2777
+
2778
+
2779
+ --
2780
+ -- Name: wmap_requests_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2781
+ --
2782
+
2783
+ ALTER TABLE ONLY wmap_requests
2784
+ ADD CONSTRAINT wmap_requests_pkey PRIMARY KEY (id);
2785
+
2786
+
2787
+ --
2788
+ -- Name: wmap_targets_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2789
+ --
2790
+
2791
+ ALTER TABLE ONLY wmap_targets
2792
+ ADD CONSTRAINT wmap_targets_pkey PRIMARY KEY (id);
2793
+
2794
+
2795
+ --
2796
+ -- Name: workspaces_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2797
+ --
2798
+
2799
+ ALTER TABLE ONLY workspaces
2800
+ ADD CONSTRAINT workspaces_pkey PRIMARY KEY (id);
2801
+
2802
+
2803
+ --
2804
+ -- Name: index_automatic_exploitation_match_results_on_match_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
2805
+ --
2806
+
2807
+ CREATE INDEX index_automatic_exploitation_match_results_on_match_id ON automatic_exploitation_match_results USING btree (match_id);
2808
+
2809
+
2810
+ --
2811
+ -- Name: index_automatic_exploitation_match_results_on_run_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
2812
+ --
2813
+
2814
+ CREATE INDEX index_automatic_exploitation_match_results_on_run_id ON automatic_exploitation_match_results USING btree (run_id);
2815
+
2816
+
2817
+ --
2818
+ -- Name: index_automatic_exploitation_match_sets_on_user_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
2819
+ --
2820
+
2821
+ CREATE INDEX index_automatic_exploitation_match_sets_on_user_id ON automatic_exploitation_match_sets USING btree (user_id);
2822
+
2823
+
2824
+ --
2825
+ -- Name: index_automatic_exploitation_match_sets_on_workspace_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
2826
+ --
2827
+
2828
+ CREATE INDEX index_automatic_exploitation_match_sets_on_workspace_id ON automatic_exploitation_match_sets USING btree (workspace_id);
2829
+
2830
+
2831
+ --
2832
+ -- Name: index_automatic_exploitation_matches_on_module_fullname; Type: INDEX; Schema: public; Owner: -; Tablespace:
2833
+ --
2834
+
2835
+ CREATE INDEX index_automatic_exploitation_matches_on_module_fullname ON automatic_exploitation_matches USING btree (module_fullname);
2836
+
2837
+
2838
+ --
2839
+ -- Name: index_automatic_exploitation_matches_on_ref_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
2840
+ --
2841
+
2842
+ CREATE INDEX index_automatic_exploitation_matches_on_ref_id ON automatic_exploitation_matches USING btree (module_detail_id);
2843
+
2844
+
2845
+ --
2846
+ -- Name: index_automatic_exploitation_runs_on_match_set_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
2847
+ --
2848
+
2849
+ CREATE INDEX index_automatic_exploitation_runs_on_match_set_id ON automatic_exploitation_runs USING btree (match_set_id);
2850
+
2851
+
2852
+ --
2853
+ -- Name: index_automatic_exploitation_runs_on_user_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
2854
+ --
2855
+
2856
+ CREATE INDEX index_automatic_exploitation_runs_on_user_id ON automatic_exploitation_runs USING btree (user_id);
2857
+
2858
+
2859
+ --
2860
+ -- Name: index_automatic_exploitation_runs_on_workspace_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
2861
+ --
2862
+
2863
+ CREATE INDEX index_automatic_exploitation_runs_on_workspace_id ON automatic_exploitation_runs USING btree (workspace_id);
2864
+
2865
+
2866
+ --
2867
+ -- Name: index_hosts_on_name; Type: INDEX; Schema: public; Owner: -; Tablespace:
2868
+ --
2869
+
2870
+ CREATE INDEX index_hosts_on_name ON hosts USING btree (name);
2871
+
2872
+
2873
+ --
2874
+ -- Name: index_hosts_on_os_flavor; Type: INDEX; Schema: public; Owner: -; Tablespace:
2875
+ --
2876
+
2877
+ CREATE INDEX index_hosts_on_os_flavor ON hosts USING btree (os_flavor);
2878
+
2879
+
2880
+ --
2881
+ -- Name: index_hosts_on_os_name; Type: INDEX; Schema: public; Owner: -; Tablespace:
2882
+ --
2883
+
2884
+ CREATE INDEX index_hosts_on_os_name ON hosts USING btree (os_name);
2885
+
2886
+
2887
+ --
2888
+ -- Name: index_hosts_on_purpose; Type: INDEX; Schema: public; Owner: -; Tablespace:
2889
+ --
2890
+
2891
+ CREATE INDEX index_hosts_on_purpose ON hosts USING btree (purpose);
2892
+
2893
+
2894
+ --
2895
+ -- Name: index_hosts_on_state; Type: INDEX; Schema: public; Owner: -; Tablespace:
2896
+ --
2897
+
2898
+ CREATE INDEX index_hosts_on_state ON hosts USING btree (state);
2899
+
2900
+
2901
+ --
2902
+ -- Name: index_hosts_on_workspace_id_and_address; Type: INDEX; Schema: public; Owner: -; Tablespace:
2903
+ --
2904
+
2905
+ CREATE UNIQUE INDEX index_hosts_on_workspace_id_and_address ON hosts USING btree (workspace_id, address);
2906
+
2907
+
2908
+ --
2909
+ -- Name: index_loots_on_module_run_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
2910
+ --
2911
+
2912
+ CREATE INDEX index_loots_on_module_run_id ON loots USING btree (module_run_id);
2913
+
2914
+
2915
+ --
2916
+ -- Name: index_module_actions_on_module_detail_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
2917
+ --
2918
+
2919
+ CREATE INDEX index_module_actions_on_module_detail_id ON module_actions USING btree (detail_id);
2920
+
2921
+
2922
+ --
2923
+ -- Name: index_module_archs_on_module_detail_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
2924
+ --
2925
+
2926
+ CREATE INDEX index_module_archs_on_module_detail_id ON module_archs USING btree (detail_id);
2927
+
2928
+
2929
+ --
2930
+ -- Name: index_module_authors_on_module_detail_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
2931
+ --
2932
+
2933
+ CREATE INDEX index_module_authors_on_module_detail_id ON module_authors USING btree (detail_id);
2934
+
2935
+
2936
+ --
2937
+ -- Name: index_module_details_on_description; Type: INDEX; Schema: public; Owner: -; Tablespace:
2938
+ --
2939
+
2940
+ CREATE INDEX index_module_details_on_description ON module_details USING btree (description);
2941
+
2942
+
2943
+ --
2944
+ -- Name: index_module_details_on_mtype; Type: INDEX; Schema: public; Owner: -; Tablespace:
2945
+ --
2946
+
2947
+ CREATE INDEX index_module_details_on_mtype ON module_details USING btree (mtype);
2948
+
2949
+
2950
+ --
2951
+ -- Name: index_module_details_on_name; Type: INDEX; Schema: public; Owner: -; Tablespace:
2952
+ --
2953
+
2954
+ CREATE INDEX index_module_details_on_name ON module_details USING btree (name);
2955
+
2956
+
2957
+ --
2958
+ -- Name: index_module_details_on_refname; Type: INDEX; Schema: public; Owner: -; Tablespace:
2959
+ --
2960
+
2961
+ CREATE INDEX index_module_details_on_refname ON module_details USING btree (refname);
2962
+
2963
+
2964
+ --
2965
+ -- Name: index_module_mixins_on_module_detail_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
2966
+ --
2967
+
2968
+ CREATE INDEX index_module_mixins_on_module_detail_id ON module_mixins USING btree (detail_id);
2969
+
2970
+
2971
+ --
2972
+ -- Name: index_module_platforms_on_module_detail_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
2973
+ --
2974
+
2975
+ CREATE INDEX index_module_platforms_on_module_detail_id ON module_platforms USING btree (detail_id);
2976
+
2977
+
2978
+ --
2979
+ -- Name: index_module_refs_on_module_detail_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
2980
+ --
2981
+
2982
+ CREATE INDEX index_module_refs_on_module_detail_id ON module_refs USING btree (detail_id);
2983
+
2984
+
2985
+ --
2986
+ -- Name: index_module_refs_on_name; Type: INDEX; Schema: public; Owner: -; Tablespace:
2987
+ --
2988
+
2989
+ CREATE INDEX index_module_refs_on_name ON module_refs USING btree (name);
2990
+
2991
+
2992
+ --
2993
+ -- Name: index_module_runs_on_session_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
2994
+ --
2995
+
2996
+ CREATE INDEX index_module_runs_on_session_id ON module_runs USING btree (session_id);
2997
+
2998
+
2999
+ --
3000
+ -- Name: index_module_runs_on_user_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
3001
+ --
3002
+
3003
+ CREATE INDEX index_module_runs_on_user_id ON module_runs USING btree (user_id);
3004
+
3005
+
3006
+ --
3007
+ -- Name: index_module_targets_on_module_detail_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
3008
+ --
3009
+
3010
+ CREATE INDEX index_module_targets_on_module_detail_id ON module_targets USING btree (detail_id);
3011
+
3012
+
3013
+ --
3014
+ -- Name: index_notes_on_ntype; Type: INDEX; Schema: public; Owner: -; Tablespace:
3015
+ --
3016
+
3017
+ CREATE INDEX index_notes_on_ntype ON notes USING btree (ntype);
3018
+
3019
+
3020
+ --
3021
+ -- Name: index_notes_on_vuln_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
3022
+ --
3023
+
3024
+ CREATE INDEX index_notes_on_vuln_id ON notes USING btree (vuln_id);
3025
+
3026
+
3027
+ --
3028
+ -- Name: index_refs_on_name; Type: INDEX; Schema: public; Owner: -; Tablespace:
3029
+ --
3030
+
3031
+ CREATE INDEX index_refs_on_name ON refs USING btree (name);
3032
+
3033
+
3034
+ --
3035
+ -- Name: index_services_on_host_id_and_port_and_proto; Type: INDEX; Schema: public; Owner: -; Tablespace:
3036
+ --
3037
+
3038
+ CREATE UNIQUE INDEX index_services_on_host_id_and_port_and_proto ON services USING btree (host_id, port, proto);
3039
+
3040
+
3041
+ --
3042
+ -- Name: index_services_on_name; Type: INDEX; Schema: public; Owner: -; Tablespace:
3043
+ --
3044
+
3045
+ CREATE INDEX index_services_on_name ON services USING btree (name);
3046
+
3047
+
3048
+ --
3049
+ -- Name: index_services_on_port; Type: INDEX; Schema: public; Owner: -; Tablespace:
3050
+ --
3051
+
3052
+ CREATE INDEX index_services_on_port ON services USING btree (port);
3053
+
3054
+
3055
+ --
3056
+ -- Name: index_services_on_proto; Type: INDEX; Schema: public; Owner: -; Tablespace:
3057
+ --
3058
+
3059
+ CREATE INDEX index_services_on_proto ON services USING btree (proto);
3060
+
3061
+
3062
+ --
3063
+ -- Name: index_services_on_state; Type: INDEX; Schema: public; Owner: -; Tablespace:
3064
+ --
3065
+
3066
+ CREATE INDEX index_services_on_state ON services USING btree (state);
3067
+
3068
+
3069
+ --
3070
+ -- Name: index_sessions_on_module_run_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
3071
+ --
3072
+
3073
+ CREATE INDEX index_sessions_on_module_run_id ON sessions USING btree (module_run_id);
3074
+
3075
+
3076
+ --
3077
+ -- Name: index_vulns_on_name; Type: INDEX; Schema: public; Owner: -; Tablespace:
3078
+ --
3079
+
3080
+ CREATE INDEX index_vulns_on_name ON vulns USING btree (name);
3081
+
3082
+
3083
+ --
3084
+ -- Name: index_web_forms_on_path; Type: INDEX; Schema: public; Owner: -; Tablespace:
3085
+ --
3086
+
3087
+ CREATE INDEX index_web_forms_on_path ON web_forms USING btree (path);
3088
+
3089
+
3090
+ --
3091
+ -- Name: index_web_pages_on_path; Type: INDEX; Schema: public; Owner: -; Tablespace:
3092
+ --
3093
+
3094
+ CREATE INDEX index_web_pages_on_path ON web_pages USING btree (path);
3095
+
3096
+
3097
+ --
3098
+ -- Name: index_web_pages_on_query; Type: INDEX; Schema: public; Owner: -; Tablespace:
3099
+ --
3100
+
3101
+ CREATE INDEX index_web_pages_on_query ON web_pages USING btree (query);
3102
+
3103
+
3104
+ --
3105
+ -- Name: index_web_sites_on_comments; Type: INDEX; Schema: public; Owner: -; Tablespace:
3106
+ --
3107
+
3108
+ CREATE INDEX index_web_sites_on_comments ON web_sites USING btree (comments);
3109
+
3110
+
3111
+ --
3112
+ -- Name: index_web_sites_on_options; Type: INDEX; Schema: public; Owner: -; Tablespace:
3113
+ --
3114
+
3115
+ CREATE INDEX index_web_sites_on_options ON web_sites USING btree (options);
3116
+
3117
+
3118
+ --
3119
+ -- Name: index_web_sites_on_vhost; Type: INDEX; Schema: public; Owner: -; Tablespace:
3120
+ --
3121
+
3122
+ CREATE INDEX index_web_sites_on_vhost ON web_sites USING btree (vhost);
3123
+
3124
+
3125
+ --
3126
+ -- Name: index_web_vulns_on_method; Type: INDEX; Schema: public; Owner: -; Tablespace:
3127
+ --
3128
+
3129
+ CREATE INDEX index_web_vulns_on_method ON web_vulns USING btree (method);
3130
+
3131
+
3132
+ --
3133
+ -- Name: index_web_vulns_on_name; Type: INDEX; Schema: public; Owner: -; Tablespace:
3134
+ --
3135
+
3136
+ CREATE INDEX index_web_vulns_on_name ON web_vulns USING btree (name);
3137
+
3138
+
3139
+ --
3140
+ -- Name: index_web_vulns_on_path; Type: INDEX; Schema: public; Owner: -; Tablespace:
3141
+ --
3142
+
3143
+ CREATE INDEX index_web_vulns_on_path ON web_vulns USING btree (path);
3144
+
3145
+
3146
+ --
3147
+ -- Name: unique_schema_migrations; Type: INDEX; Schema: public; Owner: -; Tablespace:
3148
+ --
3149
+
3150
+ CREATE UNIQUE INDEX unique_schema_migrations ON schema_migrations USING btree (version);
3151
+
3152
+
3153
+ --
3154
+ -- PostgreSQL database dump complete
3155
+ --
3156
+
3157
+ SET search_path TO "$user",public;
3158
+
3159
+ INSERT INTO schema_migrations (version) VALUES ('0');
3160
+
3161
+ INSERT INTO schema_migrations (version) VALUES ('1');
3162
+
3163
+ INSERT INTO schema_migrations (version) VALUES ('10');
3164
+
3165
+ INSERT INTO schema_migrations (version) VALUES ('11');
3166
+
3167
+ INSERT INTO schema_migrations (version) VALUES ('12');
3168
+
3169
+ INSERT INTO schema_migrations (version) VALUES ('13');
3170
+
3171
+ INSERT INTO schema_migrations (version) VALUES ('14');
3172
+
3173
+ INSERT INTO schema_migrations (version) VALUES ('15');
3174
+
3175
+ INSERT INTO schema_migrations (version) VALUES ('16');
3176
+
3177
+ INSERT INTO schema_migrations (version) VALUES ('17');
3178
+
3179
+ INSERT INTO schema_migrations (version) VALUES ('18');
3180
+
3181
+ INSERT INTO schema_migrations (version) VALUES ('19');
3182
+
3183
+ INSERT INTO schema_migrations (version) VALUES ('2');
3184
+
3185
+ INSERT INTO schema_migrations (version) VALUES ('20');
3186
+
3187
+ INSERT INTO schema_migrations (version) VALUES ('20100819123300');
3188
+
3189
+ INSERT INTO schema_migrations (version) VALUES ('20100824151500');
3190
+
3191
+ INSERT INTO schema_migrations (version) VALUES ('20100908001428');
3192
+
3193
+ INSERT INTO schema_migrations (version) VALUES ('20100911122000');
3194
+
3195
+ INSERT INTO schema_migrations (version) VALUES ('20100916151530');
3196
+
3197
+ INSERT INTO schema_migrations (version) VALUES ('20100916175000');
3198
+
3199
+ INSERT INTO schema_migrations (version) VALUES ('20100920012100');
3200
+
3201
+ INSERT INTO schema_migrations (version) VALUES ('20100926214000');
3202
+
3203
+ INSERT INTO schema_migrations (version) VALUES ('20101001000000');
3204
+
3205
+ INSERT INTO schema_migrations (version) VALUES ('20101002000000');
3206
+
3207
+ INSERT INTO schema_migrations (version) VALUES ('20101007000000');
3208
+
3209
+ INSERT INTO schema_migrations (version) VALUES ('20101008111800');
3210
+
3211
+ INSERT INTO schema_migrations (version) VALUES ('20101009023300');
3212
+
3213
+ INSERT INTO schema_migrations (version) VALUES ('20101104135100');
3214
+
3215
+ INSERT INTO schema_migrations (version) VALUES ('20101203000000');
3216
+
3217
+ INSERT INTO schema_migrations (version) VALUES ('20101203000001');
3218
+
3219
+ INSERT INTO schema_migrations (version) VALUES ('20101206212033');
3220
+
3221
+ INSERT INTO schema_migrations (version) VALUES ('20110112154300');
3222
+
3223
+ INSERT INTO schema_migrations (version) VALUES ('20110204112800');
3224
+
3225
+ INSERT INTO schema_migrations (version) VALUES ('20110317144932');
3226
+
3227
+ INSERT INTO schema_migrations (version) VALUES ('20110414180600');
3228
+
3229
+ INSERT INTO schema_migrations (version) VALUES ('20110415175705');
3230
+
3231
+ INSERT INTO schema_migrations (version) VALUES ('20110422000000');
3232
+
3233
+ INSERT INTO schema_migrations (version) VALUES ('20110425095900');
3234
+
3235
+ INSERT INTO schema_migrations (version) VALUES ('20110513143900');
3236
+
3237
+ INSERT INTO schema_migrations (version) VALUES ('20110517160800');
3238
+
3239
+ INSERT INTO schema_migrations (version) VALUES ('20110527000000');
3240
+
3241
+ INSERT INTO schema_migrations (version) VALUES ('20110527000001');
3242
+
3243
+ INSERT INTO schema_migrations (version) VALUES ('20110606000001');
3244
+
3245
+ INSERT INTO schema_migrations (version) VALUES ('20110622000000');
3246
+
3247
+ INSERT INTO schema_migrations (version) VALUES ('20110624000001');
3248
+
3249
+ INSERT INTO schema_migrations (version) VALUES ('20110625000001');
3250
+
3251
+ INSERT INTO schema_migrations (version) VALUES ('20110630000001');
3252
+
3253
+ INSERT INTO schema_migrations (version) VALUES ('20110630000002');
3254
+
3255
+ INSERT INTO schema_migrations (version) VALUES ('20110717000001');
3256
+
3257
+ INSERT INTO schema_migrations (version) VALUES ('20110727163801');
3258
+
3259
+ INSERT INTO schema_migrations (version) VALUES ('20110730000001');
3260
+
3261
+ INSERT INTO schema_migrations (version) VALUES ('20110812000001');
3262
+
3263
+ INSERT INTO schema_migrations (version) VALUES ('20110922000000');
3264
+
3265
+ INSERT INTO schema_migrations (version) VALUES ('20110928101300');
3266
+
3267
+ INSERT INTO schema_migrations (version) VALUES ('20111011110000');
3268
+
3269
+ INSERT INTO schema_migrations (version) VALUES ('20111203000000');
3270
+
3271
+ INSERT INTO schema_migrations (version) VALUES ('20111204000000');
3272
+
3273
+ INSERT INTO schema_migrations (version) VALUES ('20111210000000');
3274
+
3275
+ INSERT INTO schema_migrations (version) VALUES ('20120126110000');
3276
+
3277
+ INSERT INTO schema_migrations (version) VALUES ('20120411173220');
3278
+
3279
+ INSERT INTO schema_migrations (version) VALUES ('20120601152442');
3280
+
3281
+ INSERT INTO schema_migrations (version) VALUES ('20120625000000');
3282
+
3283
+ INSERT INTO schema_migrations (version) VALUES ('20120625000001');
3284
+
3285
+ INSERT INTO schema_migrations (version) VALUES ('20120625000002');
3286
+
3287
+ INSERT INTO schema_migrations (version) VALUES ('20120625000003');
3288
+
3289
+ INSERT INTO schema_migrations (version) VALUES ('20120625000004');
3290
+
3291
+ INSERT INTO schema_migrations (version) VALUES ('20120625000005');
3292
+
3293
+ INSERT INTO schema_migrations (version) VALUES ('20120625000006');
3294
+
3295
+ INSERT INTO schema_migrations (version) VALUES ('20120625000007');
3296
+
3297
+ INSERT INTO schema_migrations (version) VALUES ('20120625000008');
3298
+
3299
+ INSERT INTO schema_migrations (version) VALUES ('20120718202805');
3300
+
3301
+ INSERT INTO schema_migrations (version) VALUES ('20130228214900');
3302
+
3303
+ INSERT INTO schema_migrations (version) VALUES ('20130412154159');
3304
+
3305
+ INSERT INTO schema_migrations (version) VALUES ('20130412171844');
3306
+
3307
+ INSERT INTO schema_migrations (version) VALUES ('20130412173121');
3308
+
3309
+ INSERT INTO schema_migrations (version) VALUES ('20130412173640');
3310
+
3311
+ INSERT INTO schema_migrations (version) VALUES ('20130412174254');
3312
+
3313
+ INSERT INTO schema_migrations (version) VALUES ('20130412174719');
3314
+
3315
+ INSERT INTO schema_migrations (version) VALUES ('20130412175040');
3316
+
3317
+ INSERT INTO schema_migrations (version) VALUES ('20130423211152');
3318
+
3319
+ INSERT INTO schema_migrations (version) VALUES ('20130430151353');
3320
+
3321
+ INSERT INTO schema_migrations (version) VALUES ('20130430162145');
3322
+
3323
+ INSERT INTO schema_migrations (version) VALUES ('20130510021637');
3324
+
3325
+ INSERT INTO schema_migrations (version) VALUES ('20130515164311');
3326
+
3327
+ INSERT INTO schema_migrations (version) VALUES ('20130515172727');
3328
+
3329
+ INSERT INTO schema_migrations (version) VALUES ('20130516204810');
3330
+
3331
+ INSERT INTO schema_migrations (version) VALUES ('20130522001343');
3332
+
3333
+ INSERT INTO schema_migrations (version) VALUES ('20130522032517');
3334
+
3335
+ INSERT INTO schema_migrations (version) VALUES ('20130522041110');
3336
+
3337
+ INSERT INTO schema_migrations (version) VALUES ('20130525015035');
3338
+
3339
+ INSERT INTO schema_migrations (version) VALUES ('20130525212420');
3340
+
3341
+ INSERT INTO schema_migrations (version) VALUES ('20130531144949');
3342
+
3343
+ INSERT INTO schema_migrations (version) VALUES ('20130604145732');
3344
+
3345
+ INSERT INTO schema_migrations (version) VALUES ('20130717150737');
3346
+
3347
+ INSERT INTO schema_migrations (version) VALUES ('20131002004641');
3348
+
3349
+ INSERT INTO schema_migrations (version) VALUES ('20131002164449');
3350
+
3351
+ INSERT INTO schema_migrations (version) VALUES ('20131008213344');
3352
+
3353
+ INSERT INTO schema_migrations (version) VALUES ('20131011184338');
3354
+
3355
+ INSERT INTO schema_migrations (version) VALUES ('20131017150735');
3356
+
3357
+ INSERT INTO schema_migrations (version) VALUES ('20131021185657');
3358
+
3359
+ INSERT INTO schema_migrations (version) VALUES ('20140905031549');
3360
+
3361
+ INSERT INTO schema_migrations (version) VALUES ('20150112203945');
3362
+
3363
+ INSERT INTO schema_migrations (version) VALUES ('20150205192745');
3364
+
3365
+ INSERT INTO schema_migrations (version) VALUES ('20150209195939');
3366
+
3367
+ INSERT INTO schema_migrations (version) VALUES ('20150212214222');
3368
+
3369
+ INSERT INTO schema_migrations (version) VALUES ('20150219173821');
3370
+
3371
+ INSERT INTO schema_migrations (version) VALUES ('20150219215039');
3372
+
3373
+ INSERT INTO schema_migrations (version) VALUES ('20150226151459');
3374
+
3375
+ INSERT INTO schema_migrations (version) VALUES ('20150312155312');
3376
+
3377
+ INSERT INTO schema_migrations (version) VALUES ('20150326183742');
3378
+
3379
+ INSERT INTO schema_migrations (version) VALUES ('21');
3380
+
3381
+ INSERT INTO schema_migrations (version) VALUES ('22');
3382
+
3383
+ INSERT INTO schema_migrations (version) VALUES ('23');
3384
+
3385
+ INSERT INTO schema_migrations (version) VALUES ('24');
3386
+
3387
+ INSERT INTO schema_migrations (version) VALUES ('25');
3388
+
3389
+ INSERT INTO schema_migrations (version) VALUES ('26');
3390
+
3391
+ INSERT INTO schema_migrations (version) VALUES ('3');
3392
+
3393
+ INSERT INTO schema_migrations (version) VALUES ('4');
3394
+
3395
+ INSERT INTO schema_migrations (version) VALUES ('5');
3396
+
3397
+ INSERT INTO schema_migrations (version) VALUES ('6');
3398
+
3399
+ INSERT INTO schema_migrations (version) VALUES ('7');
3400
+
3401
+ INSERT INTO schema_migrations (version) VALUES ('8');
3402
+
3403
+ INSERT INTO schema_migrations (version) VALUES ('9');