metasploit-credential 0.13.9 → 0.13.10

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