metasploit-credential 0.7.16 → 0.7.17

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