Skip to content

Commit f5e398c

Browse files
committed
rename directories to all lowercase
1 parent 8256944 commit f5e398c

46 files changed

Lines changed: 1564 additions & 260 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

collectors/microsoft365/Microsoft Teams/Get-MonkeyTeamsTenant.ps1

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,4 @@ function Get-MonkeyTeamsTenant {
120120
Write-Verbose @msg
121121
}
122122
}
123-
}
124-
125-
126-
127-
128-
129-
130-
131-
132-
123+
}

collectors/microsoft365/General/AdminPortal/dns/Get-MonkeyM365DNSInfo.ps1 renamed to collectors/microsoft365/general/admin portal/dns/Get-MonkeyM365DNSInfo.ps1

File renamed without changes.

collectors/microsoft365/General/AdminPortal/general/Get-MonkeyM365CortanaAppConfig.ps1 renamed to collectors/microsoft365/general/admin portal/general/Get-MonkeyM365CortanaAppConfig.ps1

File renamed without changes.

collectors/microsoft365/General/AdminPortal/general/Get-MonkeyM365ThirdPartyStorageConfig.ps1 renamed to collectors/microsoft365/general/admin portal/general/Get-MonkeyM365ThirdPartyStorageConfig.ps1

File renamed without changes.

collectors/microsoft365/General/AdminPortal/sway/Get-MonkeySwaySharingInfo.ps1 renamed to collectors/microsoft365/general/admin portal/sway/Get-MonkeySwaySharingInfo.ps1

File renamed without changes.

collectors/microsoft365/General/MicrosoftForms/Get-MonkeyFormsTenantInformation.ps1 renamed to collectors/microsoft365/general/microsoft forms/Get-MonkeyFormsTenantInformation.ps1

File renamed without changes.

collectors/microsoft365/General/MicrosoftForms/Get-MonkeyFormsUserInfo.ps1 renamed to collectors/microsoft365/general/microsoft forms/Get-MonkeyFormsUserInfo.ps1

File renamed without changes.

collectors/entraid/EntraIDPortal/mfa/Get-MonkeyADMFAConfiguration.ps1 renamed to collectors/microsoft365/microsoft fabric/Get-MonkeyFabricTenant.ps1

Lines changed: 33 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Monkey365 - the PowerShell Cloud Security Tool for Azure and Microsoft 365 (copyright 2022) by Juan Garrido
1+
# Monkey365 - the PowerShell Cloud Security Tool for Azure and Microsoft 365 (copyright 2022) by Juan Garrido
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -9,17 +9,17 @@
99
# Unless required by applicable law or agreed to in writing, software
1010
# distributed under the License is distributed on an "AS IS" BASIS,
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
# See the License for the specific language governing permissions and
12+
# See the License for the specIfic language governing permissions and
1313
# limitations under the License.
1414

1515

16-
function Get-MonkeyADMFAConfiguration {
16+
function Get-MonkeyFabricTenant {
1717
<#
1818
.SYNOPSIS
19-
Collector to get MFA properties from Microsoft Entra ID
19+
Collector to get information about tenant from Microsoft Fabric
2020
2121
.DESCRIPTION
22-
Collector to get MFA properties from Microsoft Entra ID
22+
Collector to get information about tenant from Microsoft Fabric
2323
2424
.INPUTS
2525
@@ -30,7 +30,7 @@ function Get-MonkeyADMFAConfiguration {
3030
.NOTES
3131
Author : Juan Garrido
3232
Twitter : @tr1ana
33-
File Name : Get-MonkeyADMFAConfiguration
33+
File Name : Get-MonkeyFabricTenant
3434
Version : 1.0
3535
3636
.LINK
@@ -42,20 +42,19 @@ function Get-MonkeyADMFAConfiguration {
4242
[Parameter(Mandatory = $false,HelpMessage = "Background Collector ID")]
4343
[string]$collectorId
4444
)
45-
begin {
46-
$Environment = $O365Object.Environment
45+
Begin {
4746
#Collector metadata
4847
$monkey_metadata = @{
49-
Id = "aad0033";
50-
Provider = "EntraID";
51-
Resource = "EntraIDPortal";
48+
Id = "fabric001";
49+
Provider = "Microsoft365";
50+
Resource = "MicrosoftFabric";
5251
ResourceType = $null;
5352
resourceName = $null;
54-
collectorName = "Get-MonkeyADMFAConfiguration";
55-
ApiType = "EntraIDPortal";
56-
description = "Collector to get MFA properties from Microsoft Entra ID";
53+
collectorName = "Get-MonkeyFabricTenant";
54+
ApiType = $null;
55+
description = "Collector to get information about tenant from Microsoft Fabric";
5756
Group = @(
58-
"EntraIDPortal"
57+
"MicrosoftFabric"
5958
);
6059
Tags = @(
6160

@@ -64,67 +63,52 @@ function Get-MonkeyADMFAConfiguration {
6463
"https://silverhack.github.io/monkey365/"
6564
);
6665
ruleSuffixes = @(
67-
"aad_mfa_settings"
66+
"m365_fabric_tenant"
6867
);
6968
dependsOn = @(
7069

7170
);
7271
enabled = $true;
7372
supportClientCredential = $true
7473
}
75-
#Get Azure Active Directory Auth
76-
$AADAuth = $O365Object.auth_tokens.AzurePortal
74+
#Set null
75+
$fabric_tenant = $null
7776
}
78-
process {
79-
$msg = @{
80-
MessageData = ($message.MonkeyGenericTaskMessage -f $collectorId,"Microsoft Entra ID MFA settings",$O365Object.TenantID);
77+
Process {
78+
$msg = @{
79+
MessageData = ($message.MonkeyGenericTaskMessage -f $collectorId,"Microsoft Fabric: Tenant",$O365Object.TenantID);
8180
callStack = (Get-PSCallStack | Select-Object -First 1);
8281
logLevel = 'info';
83-
InformationAction = $InformationAction;
84-
Tags = @('AzurePortalMFASettings');
82+
InformationAction = $O365Object.InformationAction;
83+
Tags = @('FabricTenantInfo');
8584
}
8685
Write-Information @msg
87-
#Get MFA settings
88-
$params = @{
89-
Authentication = $AADAuth;
90-
Query = "MultiFactorAuthentication/TenantModel";
91-
Environment = $Environment;
92-
ContentType = 'application/json';
93-
Method = "GET";
86+
$p = @{
9487
InformationAction = $O365Object.InformationAction;
9588
Verbose = $O365Object.Verbose;
9689
Debug = $O365Object.Debug;
9790
}
98-
$ad_mfa_properties = Get-MonkeyAzurePortalObject @params
91+
$fabric_tenant = Get-MonkeyPowerBITenantInfo @p
9992
}
100-
end {
101-
if ($ad_mfa_properties) {
102-
$ad_mfa_properties.PSObject.TypeNames.Insert(0,'Monkey365.EntraID.mfa.properties')
93+
End {
94+
If ($fabric_tenant) {
95+
$fabric_tenant.PSObject.TypeNames.Insert(0,'Monkey365.Fabric.Tenant')
10396
[pscustomobject]$obj = @{
104-
Data = $ad_mfa_properties;
97+
Data = $fabric_tenant;
10598
Metadata = $monkey_metadata;
10699
}
107-
$returnData.aad_mfa_settings = $obj
100+
$returnData.m365_fabric_tenant = $obj
108101
}
109-
else {
102+
Else {
110103
$msg = @{
111-
MessageData = ($message.MonkeyEmptyResponseMessage -f "Microsoft Entra ID MFA settings",$O365Object.TenantID);
104+
MessageData = ($message.MonkeyEmptyResponseMessage -f "Microsoft Fabric: Tenant",$O365Object.TenantID);
112105
callStack = (Get-PSCallStack | Select-Object -First 1);
113106
logLevel = "verbose";
114107
InformationAction = $O365Object.InformationAction;
115-
Tags = @('AzurePortalMFAEmptyResponse');
108+
Tags = @('FabricTenantInfoEmptyResponse');
116109
Verbose = $O365Object.Verbose;
117110
}
118111
Write-Verbose @msg
119112
}
120113
}
121-
}
122-
123-
124-
125-
126-
127-
128-
129-
130-
114+
}
Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
# Monkey365 - the PowerShell Cloud Security Tool for Azure and Microsoft 365 (copyright 2022) by Juan Garrido
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specIfic language governing permissions and
13+
# limitations under the License.
14+
15+
16+
function Get-MonkeyFabricWorkspace {
17+
<#
18+
.SYNOPSIS
19+
Collector to get information about workspaces from Microsoft Fabric
20+
21+
.DESCRIPTION
22+
Collector to get information about workspaces from Microsoft Fabric
23+
24+
.INPUTS
25+
26+
.OUTPUTS
27+
28+
.EXAMPLE
29+
30+
.NOTES
31+
Author : Juan Garrido
32+
Twitter : @tr1ana
33+
File Name : Get-MonkeyFabricWorkspace
34+
Version : 1.0
35+
36+
.LINK
37+
https://github.com/silverhack/monkey365
38+
#>
39+
40+
[CmdletBinding()]
41+
param(
42+
[Parameter(Mandatory = $false,HelpMessage = "Background Collector ID")]
43+
[string]$collectorId
44+
)
45+
Begin {
46+
#Collector metadata
47+
$monkey_metadata = @{
48+
Id = "fabric002";
49+
Provider = "Microsoft365";
50+
Resource = "MicrosoftFabric";
51+
ResourceType = $null;
52+
resourceName = $null;
53+
collectorName = "Get-MonkeyFabricWorkspace";
54+
ApiType = $null;
55+
description = "Collector to get information about workspaces from Microsoft Fabric";
56+
Group = @(
57+
"MicrosoftFabric"
58+
);
59+
Tags = @(
60+
61+
);
62+
references = @(
63+
"https://silverhack.github.io/monkey365/"
64+
);
65+
ruleSuffixes = @(
66+
"m365_fabric_workspaces"
67+
);
68+
dependsOn = @(
69+
70+
);
71+
enabled = $true;
72+
supportClientCredential = $true
73+
}
74+
#set null
75+
$workspaces = $null
76+
}
77+
Process {
78+
$msg = @{
79+
MessageData = ($message.MonkeyGenericTaskMessage -f $collectorId,"Microsoft Fabric: Workspaces",$O365Object.TenantID);
80+
callStack = (Get-PSCallStack | Select-Object -First 1);
81+
logLevel = 'info';
82+
InformationAction = $O365Object.InformationAction;
83+
Tags = @('FabricWorkspacesInfo');
84+
}
85+
Write-Information @msg
86+
$p = @{
87+
Expand = 'users','datasets','reports';
88+
InformationAction = $O365Object.InformationAction;
89+
Verbose = $O365Object.Verbose;
90+
Debug = $O365Object.Debug;
91+
}
92+
$workspaces = Get-MonkeyPowerBiWorkspace @p
93+
}
94+
End {
95+
If ($workspaces) {
96+
$workspaces.PSObject.TypeNames.Insert(0,'Monkey365.Fabric.Workspaces')
97+
[pscustomobject]$obj = @{
98+
Data = $workspaces;
99+
Metadata = $monkey_metadata;
100+
}
101+
$returnData.m365_fabric_workspaces = $obj
102+
}
103+
Else {
104+
$msg = @{
105+
MessageData = ($message.MonkeyEmptyResponseMessage -f "Microsoft Fabric: Workspaces",$O365Object.TenantID);
106+
callStack = (Get-PSCallStack | Select-Object -First 1);
107+
logLevel = "verbose";
108+
InformationAction = $O365Object.InformationAction;
109+
Tags = @('FabricWorkspacesInfoEmptyResponse');
110+
Verbose = $O365Object.Verbose;
111+
}
112+
Write-Verbose @msg
113+
}
114+
}
115+
}

0 commit comments

Comments
 (0)