-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathAzureSnake.ps1
More file actions
71 lines (63 loc) · 2.11 KB
/
AzureSnake.ps1
File metadata and controls
71 lines (63 loc) · 2.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
function Show-Menu {
param (
[string]$Title = 'AzureSnake'
)
Clear-Host
Write-host " ___
- -_, -_-/ ,,
( ~/|| (_ / _ ||
( / || /\\ \\ \\ ,._-_ _-_ (_ --_ \\/\\ < \, ||/\ _-_
\/==|| / || || || || \\ --_ ) || || /-|| ||_< || \\
/_ _|| /\\ || || || ||/ _/ )) || || (( || || | ||/
( - \\, || \\/\\ \\, \\,/ (_-_- \\ \\ \/\\ \\,\ \\,/
/
(,
"
Write-Host "1: Install Libraries "
Write-Host "2: Authenticate "
Write-Host "3: Enumerate Virtual Machines, NICS, and Public IP Addresses"
Write-Host "4: Pull a list of Entra ID User Properties & Groups"
Write-Host "5: Enumerate Properties of BLOBs"
Write-Host "6: Enumerate Azure Applications & Associated Properties"
# Add more options if needed
Write-Host "Q: Quit"
}
# Display the menu
Show-Menu
# Prompt user for input
$selection = Read-Host "Please enter the number of the attack/technique you want to execute"
# Execute the selected script based on user input
switch ($selection) {
'1' {
# Invoke Script 1
.\Setup.ps1
}
'2' {
# Invoke Script 2
Connect-AzAccount
}
'3' {
# Invoke Script 3
.\SnakePublicIPs.ps1
}
'4' {
# Invoke Script 4
.\SnakeEntraIDUsers.ps1
}
'5' {
# Invoke Script 5
.\SnakeBlobEnum.ps1
}
'6' {
# Invoke Script 6
.\SnakeApplications.ps1
}
# Add more cases for scripts if needed
'Q' {
# Quit
Write-Host "Exiting the menu."
}
default {
Write-Host "Invalid selection. Please choose a valid option."
}
}