metasploit_data_models 6.0.12 → 6.0.13

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c4e19ec1556fa1c98558837b6278c0ebf76aaf7d6205cedda2d54f970c05af5f
4
- data.tar.gz: f0a63d90ecaa711ca938a92a102ce71462367288f2917f01c29b958844daa652
3
+ metadata.gz: f076fefa48fbef835f71f863254fa30d0f7c6f6b4b7cc96eb43ea4b77bf2acc5
4
+ data.tar.gz: 2418ddb5ba7a144da1eee3e3953193fdcfc1b1091a576e086d735a29b5fc4067
5
5
  SHA512:
6
- metadata.gz: 35fbd246810f97921136a3d50ea8fe92a2e615545c8e4f03b6cb822a62a277ebc2d2ca140408a2b2cea41776332d3b247b58f5f8806bdf551aabfd0b4a3a95ba
7
- data.tar.gz: d143d4fed776b305c001e30b8ecb4ecabeab368956c832bf4230798a04c664ad95c1f522314440995e43b46a5fbd1582e51f4bdc062e33d766cb2d4ec3a35f6e
6
+ metadata.gz: 211fa97f496a5092bf5b4c33a7de943274b066f828518171f33cb608a28540610a6fbd416626fee89ae831f36773b7fb83d0962a49a11a88f87f5de057c4f854
7
+ data.tar.gz: f7c12e620d4e9aa6ab0763887b9e5ca6627c25da54d1e063c0c547c11c3de14979cd4b68b91969bc602b0eed6966dcabc7ab2bf4147eaec279d6afc558e2dc96
@@ -102,6 +102,11 @@ class Mdm::User < ApplicationRecord
102
102
  #
103
103
  # @return [String]
104
104
 
105
+ # @!attribute sso_enabled
106
+ # Does this user authenticate via SSO
107
+ #
108
+ # @return [Boolean]
109
+
105
110
  #
106
111
  # Serialziations
107
112
  #
@@ -0,0 +1,5 @@
1
+ class AddSsoStatusToUser < ActiveRecord::Migration[7.0]
2
+ def change
3
+ add_column :users, :sso_enabled, :boolean, null: false, default: false
4
+ end
5
+ end
@@ -1,6 +1,6 @@
1
1
  module MetasploitDataModels
2
2
  # VERSION is managed by GemRelease
3
- VERSION = '6.0.12'
3
+ VERSION = '6.0.13'
4
4
 
5
5
  # @return [String]
6
6
  #
@@ -39,6 +39,7 @@ Gem::Specification.new do |s|
39
39
  s.add_runtime_dependency 'metasploit-model', '~>5.0.4'
40
40
  s.add_runtime_dependency 'railties', '~>7.0'
41
41
  s.add_runtime_dependency 'webrick'
42
+ s.add_runtime_dependency 'concurrent-ruby', '<1.3.5'
42
43
 
43
44
  # os fingerprinting
44
45
  s.add_runtime_dependency 'recog'
@@ -24,7 +24,8 @@ RSpec.describe Mdm::User, type: :model do
24
24
  it { is_expected.to have_db_column(:phone).of_type(:string) }
25
25
  it { is_expected.to have_db_column(:company).of_type(:string) }
26
26
  it { is_expected.to have_db_column(:prefs).of_type(:string) }
27
- it { is_expected.to have_db_column(:admin).of_type(:boolean).with_options(:null => false, :default =>true) }
27
+ it { is_expected.to have_db_column(:admin).of_type(:boolean).with_options(:null => false, :default => true) }
28
+ it { is_expected.to have_db_column(:sso_enabled).of_type(:boolean).with_options(:null => false, :default => false) }
28
29
  end
29
30
  end
30
31
 
@@ -11,6 +11,8 @@ SET row_security = off;
11
11
 
12
12
  SET default_tablespace = '';
13
13
 
14
+ SET default_table_access_method = heap;
15
+
14
16
  --
15
17
  -- Name: api_keys; Type: TABLE; Schema: public; Owner: -
16
18
  --
@@ -28,6 +30,7 @@ CREATE TABLE public.api_keys (
28
30
  --
29
31
 
30
32
  CREATE SEQUENCE public.api_keys_id_seq
33
+ AS integer
31
34
  START WITH 1
32
35
  INCREMENT BY 1
33
36
  NO MINVALUE
@@ -75,6 +78,7 @@ CREATE TABLE public.async_callbacks (
75
78
  --
76
79
 
77
80
  CREATE SEQUENCE public.async_callbacks_id_seq
81
+ AS integer
78
82
  START WITH 1
79
83
  INCREMENT BY 1
80
84
  NO MINVALUE
@@ -108,6 +112,7 @@ CREATE TABLE public.automatic_exploitation_match_results (
108
112
  --
109
113
 
110
114
  CREATE SEQUENCE public.automatic_exploitation_match_results_id_seq
115
+ AS integer
111
116
  START WITH 1
112
117
  INCREMENT BY 1
113
118
  NO MINVALUE
@@ -140,6 +145,7 @@ CREATE TABLE public.automatic_exploitation_match_sets (
140
145
  --
141
146
 
142
147
  CREATE SEQUENCE public.automatic_exploitation_match_sets_id_seq
148
+ AS integer
143
149
  START WITH 1
144
150
  INCREMENT BY 1
145
151
  NO MINVALUE
@@ -177,6 +183,7 @@ CREATE TABLE public.automatic_exploitation_matches (
177
183
  --
178
184
 
179
185
  CREATE SEQUENCE public.automatic_exploitation_matches_id_seq
186
+ AS integer
180
187
  START WITH 1
181
188
  INCREMENT BY 1
182
189
  NO MINVALUE
@@ -210,6 +217,7 @@ CREATE TABLE public.automatic_exploitation_runs (
210
217
  --
211
218
 
212
219
  CREATE SEQUENCE public.automatic_exploitation_runs_id_seq
220
+ AS integer
213
221
  START WITH 1
214
222
  INCREMENT BY 1
215
223
  NO MINVALUE
@@ -244,6 +252,7 @@ CREATE TABLE public.clients (
244
252
  --
245
253
 
246
254
  CREATE SEQUENCE public.clients_id_seq
255
+ AS integer
247
256
  START WITH 1
248
257
  INCREMENT BY 1
249
258
  NO MINVALUE
@@ -282,6 +291,7 @@ CREATE TABLE public.creds (
282
291
  --
283
292
 
284
293
  CREATE SEQUENCE public.creds_id_seq
294
+ AS integer
285
295
  START WITH 1
286
296
  INCREMENT BY 1
287
297
  NO MINVALUE
@@ -319,6 +329,7 @@ CREATE TABLE public.events (
319
329
  --
320
330
 
321
331
  CREATE SEQUENCE public.events_id_seq
332
+ AS integer
322
333
  START WITH 1
323
334
  INCREMENT BY 1
324
335
  NO MINVALUE
@@ -360,6 +371,7 @@ CREATE TABLE public.exploit_attempts (
360
371
  --
361
372
 
362
373
  CREATE SEQUENCE public.exploit_attempts_id_seq
374
+ AS integer
363
375
  START WITH 1
364
376
  INCREMENT BY 1
365
377
  NO MINVALUE
@@ -395,6 +407,7 @@ CREATE TABLE public.exploited_hosts (
395
407
  --
396
408
 
397
409
  CREATE SEQUENCE public.exploited_hosts_id_seq
410
+ AS integer
398
411
  START WITH 1
399
412
  INCREMENT BY 1
400
413
  NO MINVALUE
@@ -431,6 +444,7 @@ CREATE TABLE public.host_details (
431
444
  --
432
445
 
433
446
  CREATE SEQUENCE public.host_details_id_seq
447
+ AS integer
434
448
  START WITH 1
435
449
  INCREMENT BY 1
436
450
  NO MINVALUE
@@ -485,6 +499,7 @@ CREATE TABLE public.hosts (
485
499
  --
486
500
 
487
501
  CREATE SEQUENCE public.hosts_id_seq
502
+ AS integer
488
503
  START WITH 1
489
504
  INCREMENT BY 1
490
505
  NO MINVALUE
@@ -515,6 +530,7 @@ CREATE TABLE public.hosts_tags (
515
530
  --
516
531
 
517
532
  CREATE SEQUENCE public.hosts_tags_id_seq
533
+ AS integer
518
534
  START WITH 1
519
535
  INCREMENT BY 1
520
536
  NO MINVALUE
@@ -554,6 +570,7 @@ CREATE TABLE public.listeners (
554
570
  --
555
571
 
556
572
  CREATE SEQUENCE public.listeners_id_seq
573
+ AS integer
557
574
  START WITH 1
558
575
  INCREMENT BY 1
559
576
  NO MINVALUE
@@ -594,6 +611,7 @@ CREATE TABLE public.loots (
594
611
  --
595
612
 
596
613
  CREATE SEQUENCE public.loots_id_seq
614
+ AS integer
597
615
  START WITH 1
598
616
  INCREMENT BY 1
599
617
  NO MINVALUE
@@ -629,6 +647,7 @@ CREATE TABLE public.macros (
629
647
  --
630
648
 
631
649
  CREATE SEQUENCE public.macros_id_seq
650
+ AS integer
632
651
  START WITH 1
633
652
  INCREMENT BY 1
634
653
  NO MINVALUE
@@ -660,6 +679,7 @@ CREATE TABLE public.mod_refs (
660
679
  --
661
680
 
662
681
  CREATE SEQUENCE public.mod_refs_id_seq
682
+ AS integer
663
683
  START WITH 1
664
684
  INCREMENT BY 1
665
685
  NO MINVALUE
@@ -690,6 +710,7 @@ CREATE TABLE public.module_actions (
690
710
  --
691
711
 
692
712
  CREATE SEQUENCE public.module_actions_id_seq
713
+ AS integer
693
714
  START WITH 1
694
715
  INCREMENT BY 1
695
716
  NO MINVALUE
@@ -720,6 +741,7 @@ CREATE TABLE public.module_archs (
720
741
  --
721
742
 
722
743
  CREATE SEQUENCE public.module_archs_id_seq
744
+ AS integer
723
745
  START WITH 1
724
746
  INCREMENT BY 1
725
747
  NO MINVALUE
@@ -751,6 +773,7 @@ CREATE TABLE public.module_authors (
751
773
  --
752
774
 
753
775
  CREATE SEQUENCE public.module_authors_id_seq
776
+ AS integer
754
777
  START WITH 1
755
778
  INCREMENT BY 1
756
779
  NO MINVALUE
@@ -794,6 +817,7 @@ CREATE TABLE public.module_details (
794
817
  --
795
818
 
796
819
  CREATE SEQUENCE public.module_details_id_seq
820
+ AS integer
797
821
  START WITH 1
798
822
  INCREMENT BY 1
799
823
  NO MINVALUE
@@ -824,6 +848,7 @@ CREATE TABLE public.module_mixins (
824
848
  --
825
849
 
826
850
  CREATE SEQUENCE public.module_mixins_id_seq
851
+ AS integer
827
852
  START WITH 1
828
853
  INCREMENT BY 1
829
854
  NO MINVALUE
@@ -854,6 +879,7 @@ CREATE TABLE public.module_platforms (
854
879
  --
855
880
 
856
881
  CREATE SEQUENCE public.module_platforms_id_seq
882
+ AS integer
857
883
  START WITH 1
858
884
  INCREMENT BY 1
859
885
  NO MINVALUE
@@ -884,6 +910,7 @@ CREATE TABLE public.module_refs (
884
910
  --
885
911
 
886
912
  CREATE SEQUENCE public.module_refs_id_seq
913
+ AS integer
887
914
  START WITH 1
888
915
  INCREMENT BY 1
889
916
  NO MINVALUE
@@ -926,6 +953,7 @@ CREATE TABLE public.module_runs (
926
953
  --
927
954
 
928
955
  CREATE SEQUENCE public.module_runs_id_seq
956
+ AS integer
929
957
  START WITH 1
930
958
  INCREMENT BY 1
931
959
  NO MINVALUE
@@ -957,6 +985,7 @@ CREATE TABLE public.module_targets (
957
985
  --
958
986
 
959
987
  CREATE SEQUENCE public.module_targets_id_seq
988
+ AS integer
960
989
  START WITH 1
961
990
  INCREMENT BY 1
962
991
  NO MINVALUE
@@ -998,6 +1027,7 @@ CREATE TABLE public.nexpose_consoles (
998
1027
  --
999
1028
 
1000
1029
  CREATE SEQUENCE public.nexpose_consoles_id_seq
1030
+ AS integer
1001
1031
  START WITH 1
1002
1032
  INCREMENT BY 1
1003
1033
  NO MINVALUE
@@ -1036,6 +1066,7 @@ CREATE TABLE public.notes (
1036
1066
  --
1037
1067
 
1038
1068
  CREATE SEQUENCE public.notes_id_seq
1069
+ AS integer
1039
1070
  START WITH 1
1040
1071
  INCREMENT BY 1
1041
1072
  NO MINVALUE
@@ -1078,6 +1109,7 @@ CREATE TABLE public.payloads (
1078
1109
  --
1079
1110
 
1080
1111
  CREATE SEQUENCE public.payloads_id_seq
1112
+ AS integer
1081
1113
  START WITH 1
1082
1114
  INCREMENT BY 1
1083
1115
  NO MINVALUE
@@ -1112,6 +1144,7 @@ CREATE TABLE public.profiles (
1112
1144
  --
1113
1145
 
1114
1146
  CREATE SEQUENCE public.profiles_id_seq
1147
+ AS integer
1115
1148
  START WITH 1
1116
1149
  INCREMENT BY 1
1117
1150
  NO MINVALUE
@@ -1144,6 +1177,7 @@ CREATE TABLE public.refs (
1144
1177
  --
1145
1178
 
1146
1179
  CREATE SEQUENCE public.refs_id_seq
1180
+ AS integer
1147
1181
  START WITH 1
1148
1182
  INCREMENT BY 1
1149
1183
  NO MINVALUE
@@ -1178,6 +1212,7 @@ CREATE TABLE public.report_templates (
1178
1212
  --
1179
1213
 
1180
1214
  CREATE SEQUENCE public.report_templates_id_seq
1215
+ AS integer
1181
1216
  START WITH 1
1182
1217
  INCREMENT BY 1
1183
1218
  NO MINVALUE
@@ -1216,6 +1251,7 @@ CREATE TABLE public.reports (
1216
1251
  --
1217
1252
 
1218
1253
  CREATE SEQUENCE public.reports_id_seq
1254
+ AS integer
1219
1255
  START WITH 1
1220
1256
  INCREMENT BY 1
1221
1257
  NO MINVALUE
@@ -1247,6 +1283,7 @@ CREATE TABLE public.routes (
1247
1283
  --
1248
1284
 
1249
1285
  CREATE SEQUENCE public.routes_id_seq
1286
+ AS integer
1250
1287
  START WITH 1
1251
1288
  INCREMENT BY 1
1252
1289
  NO MINVALUE
@@ -1270,6 +1307,38 @@ CREATE TABLE public.schema_migrations (
1270
1307
  );
1271
1308
 
1272
1309
 
1310
+ --
1311
+ -- Name: service_links; Type: TABLE; Schema: public; Owner: -
1312
+ --
1313
+
1314
+ CREATE TABLE public.service_links (
1315
+ id bigint NOT NULL,
1316
+ parent_id bigint NOT NULL,
1317
+ child_id bigint NOT NULL,
1318
+ created_at timestamp(6) without time zone NOT NULL,
1319
+ updated_at timestamp(6) without time zone NOT NULL
1320
+ );
1321
+
1322
+
1323
+ --
1324
+ -- Name: service_links_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1325
+ --
1326
+
1327
+ CREATE SEQUENCE public.service_links_id_seq
1328
+ START WITH 1
1329
+ INCREMENT BY 1
1330
+ NO MINVALUE
1331
+ NO MAXVALUE
1332
+ CACHE 1;
1333
+
1334
+
1335
+ --
1336
+ -- Name: service_links_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1337
+ --
1338
+
1339
+ ALTER SEQUENCE public.service_links_id_seq OWNED BY public.service_links.id;
1340
+
1341
+
1273
1342
  --
1274
1343
  -- Name: services; Type: TABLE; Schema: public; Owner: -
1275
1344
  --
@@ -1283,7 +1352,8 @@ CREATE TABLE public.services (
1283
1352
  state character varying,
1284
1353
  name character varying,
1285
1354
  updated_at timestamp without time zone,
1286
- info text
1355
+ info text,
1356
+ resource jsonb DEFAULT '{}'::jsonb NOT NULL
1287
1357
  );
1288
1358
 
1289
1359
 
@@ -1292,6 +1362,7 @@ CREATE TABLE public.services (
1292
1362
  --
1293
1363
 
1294
1364
  CREATE SEQUENCE public.services_id_seq
1365
+ AS integer
1295
1366
  START WITH 1
1296
1367
  INCREMENT BY 1
1297
1368
  NO MINVALUE
@@ -1327,6 +1398,7 @@ CREATE TABLE public.session_events (
1327
1398
  --
1328
1399
 
1329
1400
  CREATE SEQUENCE public.session_events_id_seq
1401
+ AS integer
1330
1402
  START WITH 1
1331
1403
  INCREMENT BY 1
1332
1404
  NO MINVALUE
@@ -1369,6 +1441,7 @@ CREATE TABLE public.sessions (
1369
1441
  --
1370
1442
 
1371
1443
  CREATE SEQUENCE public.sessions_id_seq
1444
+ AS integer
1372
1445
  START WITH 1
1373
1446
  INCREMENT BY 1
1374
1447
  NO MINVALUE
@@ -1405,6 +1478,7 @@ CREATE TABLE public.tags (
1405
1478
  --
1406
1479
 
1407
1480
  CREATE SEQUENCE public.tags_id_seq
1481
+ AS integer
1408
1482
  START WITH 1
1409
1483
  INCREMENT BY 1
1410
1484
  NO MINVALUE
@@ -1437,6 +1511,7 @@ CREATE TABLE public.task_creds (
1437
1511
  --
1438
1512
 
1439
1513
  CREATE SEQUENCE public.task_creds_id_seq
1514
+ AS integer
1440
1515
  START WITH 1
1441
1516
  INCREMENT BY 1
1442
1517
  NO MINVALUE
@@ -1469,6 +1544,7 @@ CREATE TABLE public.task_hosts (
1469
1544
  --
1470
1545
 
1471
1546
  CREATE SEQUENCE public.task_hosts_id_seq
1547
+ AS integer
1472
1548
  START WITH 1
1473
1549
  INCREMENT BY 1
1474
1550
  NO MINVALUE
@@ -1501,6 +1577,7 @@ CREATE TABLE public.task_services (
1501
1577
  --
1502
1578
 
1503
1579
  CREATE SEQUENCE public.task_services_id_seq
1580
+ AS integer
1504
1581
  START WITH 1
1505
1582
  INCREMENT BY 1
1506
1583
  NO MINVALUE
@@ -1533,6 +1610,7 @@ CREATE TABLE public.task_sessions (
1533
1610
  --
1534
1611
 
1535
1612
  CREATE SEQUENCE public.task_sessions_id_seq
1613
+ AS integer
1536
1614
  START WITH 1
1537
1615
  INCREMENT BY 1
1538
1616
  NO MINVALUE
@@ -1576,6 +1654,7 @@ CREATE TABLE public.tasks (
1576
1654
  --
1577
1655
 
1578
1656
  CREATE SEQUENCE public.tasks_id_seq
1657
+ AS integer
1579
1658
  START WITH 1
1580
1659
  INCREMENT BY 1
1581
1660
  NO MINVALUE
@@ -1607,7 +1686,8 @@ CREATE TABLE public.users (
1607
1686
  phone character varying,
1608
1687
  company character varying,
1609
1688
  prefs character varying(524288),
1610
- admin boolean DEFAULT true NOT NULL
1689
+ admin boolean DEFAULT true NOT NULL,
1690
+ sso_enabled boolean DEFAULT false NOT NULL
1611
1691
  );
1612
1692
 
1613
1693
 
@@ -1616,6 +1696,7 @@ CREATE TABLE public.users (
1616
1696
  --
1617
1697
 
1618
1698
  CREATE SEQUENCE public.users_id_seq
1699
+ AS integer
1619
1700
  START WITH 1
1620
1701
  INCREMENT BY 1
1621
1702
  NO MINVALUE
@@ -1653,6 +1734,7 @@ CREATE TABLE public.vuln_attempts (
1653
1734
  --
1654
1735
 
1655
1736
  CREATE SEQUENCE public.vuln_attempts_id_seq
1737
+ AS integer
1656
1738
  START WITH 1
1657
1739
  INCREMENT BY 1
1658
1740
  NO MINVALUE
@@ -1703,6 +1785,7 @@ CREATE TABLE public.vuln_details (
1703
1785
  --
1704
1786
 
1705
1787
  CREATE SEQUENCE public.vuln_details_id_seq
1788
+ AS integer
1706
1789
  START WITH 1
1707
1790
  INCREMENT BY 1
1708
1791
  NO MINVALUE
@@ -1733,7 +1816,8 @@ CREATE TABLE public.vulns (
1733
1816
  vuln_detail_count integer DEFAULT 0,
1734
1817
  vuln_attempt_count integer DEFAULT 0,
1735
1818
  origin_id integer,
1736
- origin_type character varying
1819
+ origin_type character varying,
1820
+ resource jsonb DEFAULT '{}'::jsonb NOT NULL
1737
1821
  );
1738
1822
 
1739
1823
 
@@ -1742,6 +1826,7 @@ CREATE TABLE public.vulns (
1742
1826
  --
1743
1827
 
1744
1828
  CREATE SEQUENCE public.vulns_id_seq
1829
+ AS integer
1745
1830
  START WITH 1
1746
1831
  INCREMENT BY 1
1747
1832
  NO MINVALUE
@@ -1772,6 +1857,7 @@ CREATE TABLE public.vulns_refs (
1772
1857
  --
1773
1858
 
1774
1859
  CREATE SEQUENCE public.vulns_refs_id_seq
1860
+ AS integer
1775
1861
  START WITH 1
1776
1862
  INCREMENT BY 1
1777
1863
  NO MINVALUE
@@ -1807,6 +1893,7 @@ CREATE TABLE public.web_forms (
1807
1893
  --
1808
1894
 
1809
1895
  CREATE SEQUENCE public.web_forms_id_seq
1896
+ AS integer
1810
1897
  START WITH 1
1811
1898
  INCREMENT BY 1
1812
1899
  NO MINVALUE
@@ -1849,6 +1936,7 @@ CREATE TABLE public.web_pages (
1849
1936
  --
1850
1937
 
1851
1938
  CREATE SEQUENCE public.web_pages_id_seq
1939
+ AS integer
1852
1940
  START WITH 1
1853
1941
  INCREMENT BY 1
1854
1942
  NO MINVALUE
@@ -1883,6 +1971,7 @@ CREATE TABLE public.web_sites (
1883
1971
  --
1884
1972
 
1885
1973
  CREATE SEQUENCE public.web_sites_id_seq
1974
+ AS integer
1886
1975
  START WITH 1
1887
1976
  INCREMENT BY 1
1888
1977
  NO MINVALUE
@@ -1929,6 +2018,7 @@ CREATE TABLE public.web_vulns (
1929
2018
  --
1930
2019
 
1931
2020
  CREATE SEQUENCE public.web_vulns_id_seq
2021
+ AS integer
1932
2022
  START WITH 1
1933
2023
  INCREMENT BY 1
1934
2024
  NO MINVALUE
@@ -1971,6 +2061,7 @@ CREATE TABLE public.wmap_requests (
1971
2061
  --
1972
2062
 
1973
2063
  CREATE SEQUENCE public.wmap_requests_id_seq
2064
+ AS integer
1974
2065
  START WITH 1
1975
2066
  INCREMENT BY 1
1976
2067
  NO MINVALUE
@@ -2006,6 +2097,7 @@ CREATE TABLE public.wmap_targets (
2006
2097
  --
2007
2098
 
2008
2099
  CREATE SEQUENCE public.wmap_targets_id_seq
2100
+ AS integer
2009
2101
  START WITH 1
2010
2102
  INCREMENT BY 1
2011
2103
  NO MINVALUE
@@ -2052,6 +2144,7 @@ CREATE TABLE public.workspaces (
2052
2144
  --
2053
2145
 
2054
2146
  CREATE SEQUENCE public.workspaces_id_seq
2147
+ AS integer
2055
2148
  START WITH 1
2056
2149
  INCREMENT BY 1
2057
2150
  NO MINVALUE
@@ -2311,6 +2404,13 @@ ALTER TABLE ONLY public.reports ALTER COLUMN id SET DEFAULT nextval('public.repo
2311
2404
  ALTER TABLE ONLY public.routes ALTER COLUMN id SET DEFAULT nextval('public.routes_id_seq'::regclass);
2312
2405
 
2313
2406
 
2407
+ --
2408
+ -- Name: service_links id; Type: DEFAULT; Schema: public; Owner: -
2409
+ --
2410
+
2411
+ ALTER TABLE ONLY public.service_links ALTER COLUMN id SET DEFAULT nextval('public.service_links_id_seq'::regclass);
2412
+
2413
+
2314
2414
  --
2315
2415
  -- Name: services id; Type: DEFAULT; Schema: public; Owner: -
2316
2416
  --
@@ -2754,6 +2854,14 @@ ALTER TABLE ONLY public.schema_migrations
2754
2854
  ADD CONSTRAINT schema_migrations_pkey PRIMARY KEY (version);
2755
2855
 
2756
2856
 
2857
+ --
2858
+ -- Name: service_links service_links_pkey; Type: CONSTRAINT; Schema: public; Owner: -
2859
+ --
2860
+
2861
+ ALTER TABLE ONLY public.service_links
2862
+ ADD CONSTRAINT service_links_pkey PRIMARY KEY (id);
2863
+
2864
+
2757
2865
  --
2758
2866
  -- Name: services services_pkey; Type: CONSTRAINT; Schema: public; Owner: -
2759
2867
  --
@@ -3154,10 +3262,31 @@ CREATE INDEX index_refs_on_name ON public.refs USING btree (name);
3154
3262
 
3155
3263
 
3156
3264
  --
3157
- -- Name: index_services_on_host_id_and_port_and_proto; Type: INDEX; Schema: public; Owner: -
3265
+ -- Name: index_service_links_on_child_id; Type: INDEX; Schema: public; Owner: -
3266
+ --
3267
+
3268
+ CREATE INDEX index_service_links_on_child_id ON public.service_links USING btree (child_id);
3269
+
3270
+
3271
+ --
3272
+ -- Name: index_service_links_on_parent_id; Type: INDEX; Schema: public; Owner: -
3273
+ --
3274
+
3275
+ CREATE INDEX index_service_links_on_parent_id ON public.service_links USING btree (parent_id);
3276
+
3277
+
3278
+ --
3279
+ -- Name: index_service_links_on_parent_id_and_child_id; Type: INDEX; Schema: public; Owner: -
3158
3280
  --
3159
3281
 
3160
- CREATE UNIQUE INDEX index_services_on_host_id_and_port_and_proto ON public.services USING btree (host_id, port, proto);
3282
+ CREATE UNIQUE INDEX index_service_links_on_parent_id_and_child_id ON public.service_links USING btree (parent_id, child_id);
3283
+
3284
+
3285
+ --
3286
+ -- Name: index_services_on_5_columns; Type: INDEX; Schema: public; Owner: -
3287
+ --
3288
+
3289
+ CREATE UNIQUE INDEX index_services_on_5_columns ON public.services USING btree (host_id, port, proto, name, resource);
3161
3290
 
3162
3291
 
3163
3292
  --
@@ -3272,6 +3401,22 @@ CREATE INDEX index_web_vulns_on_name ON public.web_vulns USING btree (name);
3272
3401
  CREATE INDEX index_web_vulns_on_path ON public.web_vulns USING btree (path);
3273
3402
 
3274
3403
 
3404
+ --
3405
+ -- Name: service_links fk_rails_20de66c25c; Type: FK CONSTRAINT; Schema: public; Owner: -
3406
+ --
3407
+
3408
+ ALTER TABLE ONLY public.service_links
3409
+ ADD CONSTRAINT fk_rails_20de66c25c FOREIGN KEY (child_id) REFERENCES public.services(id);
3410
+
3411
+
3412
+ --
3413
+ -- Name: service_links fk_rails_656cd59e76; Type: FK CONSTRAINT; Schema: public; Owner: -
3414
+ --
3415
+
3416
+ ALTER TABLE ONLY public.service_links
3417
+ ADD CONSTRAINT fk_rails_656cd59e76 FOREIGN KEY (parent_id) REFERENCES public.services(id);
3418
+
3419
+
3275
3420
  --
3276
3421
  -- PostgreSQL database dump complete
3277
3422
  --
@@ -3398,6 +3543,12 @@ INSERT INTO "schema_migrations" (version) VALUES
3398
3543
  ('20180904120211'),
3399
3544
  ('20190308134512'),
3400
3545
  ('20190507120211'),
3546
+ ('20250716155919'),
3547
+ ('20250717170556'),
3548
+ ('20250718122714'),
3549
+ ('20250720082201'),
3550
+ ('20250721114306'),
3551
+ ('20260130124052'),
3401
3552
  ('21'),
3402
3553
  ('22'),
3403
3554
  ('23'),
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metasploit_data_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.12
4
+ version: 6.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Metasploit Hackers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-02-04 00:00:00.000000000 Z
11
+ date: 2026-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metasploit-yard
@@ -178,6 +178,20 @@ dependencies:
178
178
  - - ">="
179
179
  - !ruby/object:Gem::Version
180
180
  version: '0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: concurrent-ruby
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - "<"
186
+ - !ruby/object:Gem::Version
187
+ version: 1.3.5
188
+ type: :runtime
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - "<"
193
+ - !ruby/object:Gem::Version
194
+ version: 1.3.5
181
195
  - !ruby/object:Gem::Dependency
182
196
  name: recog
183
197
  requirement: !ruby/object:Gem::Requirement
@@ -514,6 +528,7 @@ files:
514
528
  - db/migrate/20250718122714_create_service_links.rb
515
529
  - db/migrate/20250720082201_drop_service_uniqueness_index2.rb
516
530
  - db/migrate/20250721114306_remove_duplicate_services3.rb
531
+ - db/migrate/20260130124052_add_sso_status_to_user.rb
517
532
  - lib/mdm.rb
518
533
  - lib/mdm/host/operating_system_normalization.rb
519
534
  - lib/mdm/module.rb