-
Notifications
You must be signed in to change notification settings - Fork 8
/
PSHero.ps1
86 lines (84 loc) · 2.81 KB
/
PSHero.ps1
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<# PSHero Powershell Menu v1.0
https://github.com/dwmetz/PSHero/
All rights to 3rd party scripts remain with the original owners
Note: do a find/replace for D:\PowerShell\PSHero\ and subsititute the path where PSHero scripts are locally stored
#>
function Show-Menu
{
param (
[string]$Title = 'My Menu'
)
Clear-Host
Write-Host "=== $Title ==========="-ForegroundColor darkcyan
Write-Host "=== Logins ============================="-ForegroundColor darkgreen
Write-Host "LA: Alternate PS Login"
Write-Host "LO: O365 Admin Login"
Write-Host "LE: O365 Admin Login [Modern Auth]"
Write-Host "=== Hosts ============================="-ForegroundColor darkgreen
Write-Host "HB: Bitlocker Lookup"
Write-Host "HG: Get Computer Info"
Write-Host "HA: Host Alive"
Write-Host "=== Aquisition ======================="-ForegroundColor darkgreen
Write-Host "AI: IRMemPull Memory Acquistion"
Write-Host "AA: Axiom Cloud - O365 Connect to Collect"
Write-Host "=== Email ============================="-ForegroundColor darkgreen
Write-Host "EX: MX Header Analysis"
Write-Host "ES: SadPhishes - email search (E)"
Write-Host "=== Conversion ========================"-ForegroundColor darkgreen
Write-Host "CT: Unix time to Human Readable"
Write-Host "=== Exit =============================="-ForegroundColor darkgreen
Write-Host "Q: Press 'Q' to quit."
Write-Host "=== (E) = Requires Exchange Login =====" -ForegroundColor darkcyan
}
do
{
Show-Menu –Title 'PSHero - PowerShell Menu'
$input = Read-Host "Please make a selection"
switch ($input)
{
'LA' {
$script:userID = Read-Host -Prompt 'Enter the ID'
C:\Windows\System32\runas.exe /profile /user:$script:userID "powershell"
}
'LO' {
D:\PowerShell\PSHero\ExchangeOnline.ps1
}
'LE' {
D:\PowerShell\PSHero\Connect-ExchangeOnline.ps1
}
'HB' {
D:\PowerShell\PSHero\Bitlocker.ps1
}
'HG' {
D:\PowerShell\PSHero\GetComputer.ps1
}
'HA' {
D:\PowerShell\PSHero\HostAlive.ps1
}
'AI' {
Set-Location D:\Temp\IR
.\Irmempull.ps1
Set-Location D:\PowerShell\Scripts
}
'AA' {
D:\PowerShell\PSHero\AxCollect.ps1
}
'EX' {
D:\PowerShell\PSHero\Parse-EmailHeader.ps1
}
'ES' {
D:\PowerShell\PSHero\SadPhishes.ps1
}
'CT' {
D:\PowerShell\PSHero\UnixTime.ps1
}
'x' {
D:\PowerShell\PSHero\PSHero.ps1
}
'q' {
return
}
}
pause
}
until ($input -eq 'q')