-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRunRoadRecon.ps1
More file actions
23 lines (19 loc) · 788 Bytes
/
RunRoadRecon.ps1
File metadata and controls
23 lines (19 loc) · 788 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Run RoadRecon
function Run-RoadRecon{
Write-Host "Running RoadRecon"
roadrecon auth --device-code
Write-Host "Gathering"
roadrecon gather --mfa
Write-Host "Dumping"
roadrecon dump
Write-Host "Checking Policies"
roadrecon plugin policies
}
Run-RoadRecon
# Read device code auth and store into a variable
$auth = Get-Content -Path "C:\Users\$([Environment]::UserName)\Desktop\AzFiles\.roadtools_auth"
# Save the contents of the variable to a new file
Set-Content -Path "C:\Users\$([Environment]::UserName)\Desktop\AzFiles\.roadtools_auth.bak" -Value $auth
RunRoadRecon
roadrecon-gui
Write-Host "RoadRecon Complete, check http://127.0.0.1:5000 for results"