metasploit_data_models 0.21.0 → 0.21.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -94,6 +94,26 @@ CREATE SEQUENCE clients_id_seq
94
94
  ALTER SEQUENCE clients_id_seq OWNED BY clients.id;
95
95
 
96
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
+
97
117
  --
98
118
  -- Name: creds; Type: TABLE; Schema: public; Owner: -; Tablespace:
99
119
  --
@@ -477,6 +497,332 @@ CREATE SEQUENCE macros_id_seq
477
497
  ALTER SEQUENCE macros_id_seq OWNED BY macros.id;
478
498
 
479
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
+ );
773
+
774
+
775
+ --
776
+ -- Name: metasploit_credential_publics_id_seq; Type: SEQUENCE; Schema: public; Owner: -
777
+ --
778
+
779
+ CREATE SEQUENCE metasploit_credential_publics_id_seq
780
+ START WITH 1
781
+ INCREMENT BY 1
782
+ NO MINVALUE
783
+ NO MAXVALUE
784
+ CACHE 1;
785
+
786
+
787
+ --
788
+ -- Name: metasploit_credential_publics_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
789
+ --
790
+
791
+ ALTER SEQUENCE metasploit_credential_publics_id_seq OWNED BY metasploit_credential_publics.id;
792
+
793
+
794
+ --
795
+ -- Name: metasploit_credential_realms; Type: TABLE; Schema: public; Owner: -; Tablespace:
796
+ --
797
+
798
+ CREATE TABLE metasploit_credential_realms (
799
+ id integer NOT NULL,
800
+ key character varying(255) NOT NULL,
801
+ value character varying(255) NOT NULL,
802
+ created_at timestamp without time zone NOT NULL,
803
+ updated_at timestamp without time zone NOT NULL
804
+ );
805
+
806
+
807
+ --
808
+ -- Name: metasploit_credential_realms_id_seq; Type: SEQUENCE; Schema: public; Owner: -
809
+ --
810
+
811
+ CREATE SEQUENCE metasploit_credential_realms_id_seq
812
+ START WITH 1
813
+ INCREMENT BY 1
814
+ NO MINVALUE
815
+ NO MAXVALUE
816
+ CACHE 1;
817
+
818
+
819
+ --
820
+ -- Name: metasploit_credential_realms_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
821
+ --
822
+
823
+ ALTER SEQUENCE metasploit_credential_realms_id_seq OWNED BY metasploit_credential_realms.id;
824
+
825
+
480
826
  --
481
827
  -- Name: mod_refs; Type: TABLE; Schema: public; Owner: -; Tablespace:
482
828
  --
@@ -1895,6 +2241,76 @@ ALTER TABLE ONLY loots ALTER COLUMN id SET DEFAULT nextval('loots_id_seq'::regcl
1895
2241
  ALTER TABLE ONLY macros ALTER COLUMN id SET DEFAULT nextval('macros_id_seq'::regclass);
1896
2242
 
1897
2243
 
2244
+ --
2245
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2246
+ --
2247
+
2248
+ ALTER TABLE ONLY metasploit_credential_cores ALTER COLUMN id SET DEFAULT nextval('metasploit_credential_cores_id_seq'::regclass);
2249
+
2250
+
2251
+ --
2252
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2253
+ --
2254
+
2255
+ ALTER TABLE ONLY metasploit_credential_logins ALTER COLUMN id SET DEFAULT nextval('metasploit_credential_logins_id_seq'::regclass);
2256
+
2257
+
2258
+ --
2259
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2260
+ --
2261
+
2262
+ ALTER TABLE ONLY metasploit_credential_origin_cracked_passwords ALTER COLUMN id SET DEFAULT nextval('metasploit_credential_origin_cracked_passwords_id_seq'::regclass);
2263
+
2264
+
2265
+ --
2266
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2267
+ --
2268
+
2269
+ ALTER TABLE ONLY metasploit_credential_origin_imports ALTER COLUMN id SET DEFAULT nextval('metasploit_credential_origin_imports_id_seq'::regclass);
2270
+
2271
+
2272
+ --
2273
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2274
+ --
2275
+
2276
+ ALTER TABLE ONLY metasploit_credential_origin_manuals ALTER COLUMN id SET DEFAULT nextval('metasploit_credential_origin_manuals_id_seq'::regclass);
2277
+
2278
+
2279
+ --
2280
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2281
+ --
2282
+
2283
+ ALTER TABLE ONLY metasploit_credential_origin_services ALTER COLUMN id SET DEFAULT nextval('metasploit_credential_origin_services_id_seq'::regclass);
2284
+
2285
+
2286
+ --
2287
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2288
+ --
2289
+
2290
+ ALTER TABLE ONLY metasploit_credential_origin_sessions ALTER COLUMN id SET DEFAULT nextval('metasploit_credential_origin_sessions_id_seq'::regclass);
2291
+
2292
+
2293
+ --
2294
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2295
+ --
2296
+
2297
+ ALTER TABLE ONLY metasploit_credential_privates ALTER COLUMN id SET DEFAULT nextval('metasploit_credential_privates_id_seq'::regclass);
2298
+
2299
+
2300
+ --
2301
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2302
+ --
2303
+
2304
+ ALTER TABLE ONLY metasploit_credential_publics ALTER COLUMN id SET DEFAULT nextval('metasploit_credential_publics_id_seq'::regclass);
2305
+
2306
+
2307
+ --
2308
+ -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2309
+ --
2310
+
2311
+ ALTER TABLE ONLY metasploit_credential_realms ALTER COLUMN id SET DEFAULT nextval('metasploit_credential_realms_id_seq'::regclass);
2312
+
2313
+
1898
2314
  --
1899
2315
  -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1900
2316
  --
@@ -2250,6 +2666,86 @@ ALTER TABLE ONLY macros
2250
2666
  ADD CONSTRAINT macros_pkey PRIMARY KEY (id);
2251
2667
 
2252
2668
 
2669
+ --
2670
+ -- Name: metasploit_credential_cores_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2671
+ --
2672
+
2673
+ ALTER TABLE ONLY metasploit_credential_cores
2674
+ ADD CONSTRAINT metasploit_credential_cores_pkey PRIMARY KEY (id);
2675
+
2676
+
2677
+ --
2678
+ -- Name: metasploit_credential_logins_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2679
+ --
2680
+
2681
+ ALTER TABLE ONLY metasploit_credential_logins
2682
+ ADD CONSTRAINT metasploit_credential_logins_pkey PRIMARY KEY (id);
2683
+
2684
+
2685
+ --
2686
+ -- Name: metasploit_credential_origin_cracked_passwords_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2687
+ --
2688
+
2689
+ ALTER TABLE ONLY metasploit_credential_origin_cracked_passwords
2690
+ ADD CONSTRAINT metasploit_credential_origin_cracked_passwords_pkey PRIMARY KEY (id);
2691
+
2692
+
2693
+ --
2694
+ -- Name: metasploit_credential_origin_imports_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2695
+ --
2696
+
2697
+ ALTER TABLE ONLY metasploit_credential_origin_imports
2698
+ ADD CONSTRAINT metasploit_credential_origin_imports_pkey PRIMARY KEY (id);
2699
+
2700
+
2701
+ --
2702
+ -- Name: metasploit_credential_origin_manuals_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2703
+ --
2704
+
2705
+ ALTER TABLE ONLY metasploit_credential_origin_manuals
2706
+ ADD CONSTRAINT metasploit_credential_origin_manuals_pkey PRIMARY KEY (id);
2707
+
2708
+
2709
+ --
2710
+ -- Name: metasploit_credential_origin_services_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2711
+ --
2712
+
2713
+ ALTER TABLE ONLY metasploit_credential_origin_services
2714
+ ADD CONSTRAINT metasploit_credential_origin_services_pkey PRIMARY KEY (id);
2715
+
2716
+
2717
+ --
2718
+ -- Name: metasploit_credential_origin_sessions_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2719
+ --
2720
+
2721
+ ALTER TABLE ONLY metasploit_credential_origin_sessions
2722
+ ADD CONSTRAINT metasploit_credential_origin_sessions_pkey PRIMARY KEY (id);
2723
+
2724
+
2725
+ --
2726
+ -- Name: metasploit_credential_privates_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2727
+ --
2728
+
2729
+ ALTER TABLE ONLY metasploit_credential_privates
2730
+ ADD CONSTRAINT metasploit_credential_privates_pkey PRIMARY KEY (id);
2731
+
2732
+
2733
+ --
2734
+ -- Name: metasploit_credential_publics_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2735
+ --
2736
+
2737
+ ALTER TABLE ONLY metasploit_credential_publics
2738
+ ADD CONSTRAINT metasploit_credential_publics_pkey PRIMARY KEY (id);
2739
+
2740
+
2741
+ --
2742
+ -- Name: metasploit_credential_realms_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2743
+ --
2744
+
2745
+ ALTER TABLE ONLY metasploit_credential_realms
2746
+ ADD CONSTRAINT metasploit_credential_realms_pkey PRIMARY KEY (id);
2747
+
2748
+
2253
2749
  --
2254
2750
  -- Name: mod_refs_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2255
2751
  --
@@ -2588,6 +3084,90 @@ CREATE INDEX index_hosts_on_state ON hosts USING btree (state);
2588
3084
  CREATE UNIQUE INDEX index_hosts_on_workspace_id_and_address ON hosts USING btree (workspace_id, address);
2589
3085
 
2590
3086
 
3087
+ --
3088
+ -- Name: index_metasploit_credential_cores_on_origin_type_and_origin_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
3089
+ --
3090
+
3091
+ CREATE INDEX index_metasploit_credential_cores_on_origin_type_and_origin_id ON metasploit_credential_cores USING btree (origin_type, origin_id);
3092
+
3093
+
3094
+ --
3095
+ -- Name: index_metasploit_credential_cores_on_private_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
3096
+ --
3097
+
3098
+ CREATE INDEX index_metasploit_credential_cores_on_private_id ON metasploit_credential_cores USING btree (private_id);
3099
+
3100
+
3101
+ --
3102
+ -- Name: index_metasploit_credential_cores_on_public_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
3103
+ --
3104
+
3105
+ CREATE INDEX index_metasploit_credential_cores_on_public_id ON metasploit_credential_cores USING btree (public_id);
3106
+
3107
+
3108
+ --
3109
+ -- Name: index_metasploit_credential_cores_on_realm_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
3110
+ --
3111
+
3112
+ CREATE INDEX index_metasploit_credential_cores_on_realm_id ON metasploit_credential_cores USING btree (realm_id);
3113
+
3114
+
3115
+ --
3116
+ -- Name: index_metasploit_credential_cores_on_workspace_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
3117
+ --
3118
+
3119
+ CREATE INDEX index_metasploit_credential_cores_on_workspace_id ON metasploit_credential_cores USING btree (workspace_id);
3120
+
3121
+
3122
+ --
3123
+ -- Name: index_metasploit_credential_logins_on_core_id_and_service_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
3124
+ --
3125
+
3126
+ CREATE UNIQUE INDEX index_metasploit_credential_logins_on_core_id_and_service_id ON metasploit_credential_logins USING btree (core_id, service_id);
3127
+
3128
+
3129
+ --
3130
+ -- Name: index_metasploit_credential_logins_on_service_id_and_core_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
3131
+ --
3132
+
3133
+ CREATE UNIQUE INDEX index_metasploit_credential_logins_on_service_id_and_core_id ON metasploit_credential_logins USING btree (service_id, core_id);
3134
+
3135
+
3136
+ --
3137
+ -- Name: index_metasploit_credential_origin_imports_on_task_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
3138
+ --
3139
+
3140
+ CREATE INDEX index_metasploit_credential_origin_imports_on_task_id ON metasploit_credential_origin_imports USING btree (task_id);
3141
+
3142
+
3143
+ --
3144
+ -- Name: index_metasploit_credential_origin_manuals_on_user_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
3145
+ --
3146
+
3147
+ CREATE INDEX index_metasploit_credential_origin_manuals_on_user_id ON metasploit_credential_origin_manuals USING btree (user_id);
3148
+
3149
+
3150
+ --
3151
+ -- Name: index_metasploit_credential_privates_on_type_and_data; Type: INDEX; Schema: public; Owner: -; Tablespace:
3152
+ --
3153
+
3154
+ CREATE UNIQUE INDEX index_metasploit_credential_privates_on_type_and_data ON metasploit_credential_privates USING btree (type, data);
3155
+
3156
+
3157
+ --
3158
+ -- Name: index_metasploit_credential_publics_on_username; Type: INDEX; Schema: public; Owner: -; Tablespace:
3159
+ --
3160
+
3161
+ CREATE UNIQUE INDEX index_metasploit_credential_publics_on_username ON metasploit_credential_publics USING btree (username);
3162
+
3163
+
3164
+ --
3165
+ -- Name: index_metasploit_credential_realms_on_key_and_value; Type: INDEX; Schema: public; Owner: -; Tablespace:
3166
+ --
3167
+
3168
+ CREATE UNIQUE INDEX index_metasploit_credential_realms_on_key_and_value ON metasploit_credential_realms USING btree (key, value);
3169
+
3170
+
2591
3171
  --
2592
3172
  -- Name: index_module_actions_on_module_detail_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
2593
3173
  --
@@ -2784,6 +3364,69 @@ CREATE INDEX index_web_vulns_on_name ON web_vulns USING btree (name);
2784
3364
  CREATE INDEX index_web_vulns_on_path ON web_vulns USING btree (path);
2785
3365
 
2786
3366
 
3367
+ --
3368
+ -- Name: originating_credential_cores; Type: INDEX; Schema: public; Owner: -; Tablespace:
3369
+ --
3370
+
3371
+ CREATE INDEX originating_credential_cores ON metasploit_credential_origin_cracked_passwords USING btree (metasploit_credential_core_id);
3372
+
3373
+
3374
+ --
3375
+ -- Name: unique_complete_metasploit_credential_cores; Type: INDEX; Schema: public; Owner: -; Tablespace:
3376
+ --
3377
+
3378
+ 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));
3379
+
3380
+
3381
+ --
3382
+ -- Name: unique_metasploit_credential_origin_services; Type: INDEX; Schema: public; Owner: -; Tablespace:
3383
+ --
3384
+
3385
+ CREATE UNIQUE INDEX unique_metasploit_credential_origin_services ON metasploit_credential_origin_services USING btree (service_id, module_full_name);
3386
+
3387
+
3388
+ --
3389
+ -- Name: unique_metasploit_credential_origin_sessions; Type: INDEX; Schema: public; Owner: -; Tablespace:
3390
+ --
3391
+
3392
+ CREATE UNIQUE INDEX unique_metasploit_credential_origin_sessions ON metasploit_credential_origin_sessions USING btree (session_id, post_reference_name);
3393
+
3394
+
3395
+ --
3396
+ -- Name: unique_private_metasploit_credential_cores; Type: INDEX; Schema: public; Owner: -; Tablespace:
3397
+ --
3398
+
3399
+ 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));
3400
+
3401
+
3402
+ --
3403
+ -- Name: unique_privateless_metasploit_credential_cores; Type: INDEX; Schema: public; Owner: -; Tablespace:
3404
+ --
3405
+
3406
+ 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));
3407
+
3408
+
3409
+ --
3410
+ -- Name: unique_public_metasploit_credential_cores; Type: INDEX; Schema: public; Owner: -; Tablespace:
3411
+ --
3412
+
3413
+ 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));
3414
+
3415
+
3416
+ --
3417
+ -- Name: unique_publicless_metasploit_credential_cores; Type: INDEX; Schema: public; Owner: -; Tablespace:
3418
+ --
3419
+
3420
+ 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));
3421
+
3422
+
3423
+ --
3424
+ -- Name: unique_realmless_metasploit_credential_cores; Type: INDEX; Schema: public; Owner: -; Tablespace:
3425
+ --
3426
+
3427
+ 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));
3428
+
3429
+
2787
3430
  --
2788
3431
  -- Name: unique_schema_migrations; Type: INDEX; Schema: public; Owner: -; Tablespace:
2789
3432
  --
@@ -2985,6 +3628,42 @@ INSERT INTO schema_migrations (version) VALUES ('20130604145732');
2985
3628
 
2986
3629
  INSERT INTO schema_migrations (version) VALUES ('20130717150737');
2987
3630
 
3631
+ INSERT INTO schema_migrations (version) VALUES ('20140331173835');
3632
+
3633
+ INSERT INTO schema_migrations (version) VALUES ('20140407212345');
3634
+
3635
+ INSERT INTO schema_migrations (version) VALUES ('20140410132401');
3636
+
3637
+ INSERT INTO schema_migrations (version) VALUES ('20140410161611');
3638
+
3639
+ INSERT INTO schema_migrations (version) VALUES ('20140410191213');
3640
+
3641
+ INSERT INTO schema_migrations (version) VALUES ('20140410205410');
3642
+
3643
+ INSERT INTO schema_migrations (version) VALUES ('20140411142102');
3644
+
3645
+ INSERT INTO schema_migrations (version) VALUES ('20140411205325');
3646
+
3647
+ INSERT INTO schema_migrations (version) VALUES ('20140414192550');
3648
+
3649
+ INSERT INTO schema_migrations (version) VALUES ('20140417140933');
3650
+
3651
+ INSERT INTO schema_migrations (version) VALUES ('20140520140817');
3652
+
3653
+ INSERT INTO schema_migrations (version) VALUES ('20140603163708');
3654
+
3655
+ INSERT INTO schema_migrations (version) VALUES ('20140605173747');
3656
+
3657
+ INSERT INTO schema_migrations (version) VALUES ('20140702184622');
3658
+
3659
+ INSERT INTO schema_migrations (version) VALUES ('20140703144541');
3660
+
3661
+ INSERT INTO schema_migrations (version) VALUES ('20140722174919');
3662
+
3663
+ INSERT INTO schema_migrations (version) VALUES ('20140728191933');
3664
+
3665
+ INSERT INTO schema_migrations (version) VALUES ('20140801150537');
3666
+
2988
3667
  INSERT INTO schema_migrations (version) VALUES ('20140905031549');
2989
3668
 
2990
3669
  INSERT INTO schema_migrations (version) VALUES ('21');