Skip to content

0xJs/install_Windows11

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 

Repository files navigation

Installation notes from when I install my Windows 11 machine for penetration testing. Focussing on On-Prem Active Directory and Azure. I wrote these notes down so it is easier to reinstall my system. Posted it publicly as inspiration for others. If you have any good tool recommendations feel free to DM me on discord 0xjs#9027.

Install W11

  • Download W11 ISO from Evaluation Center or with the Media Creation Tool and install Windows 11 Enterprise or Pro
  • Install all updates, restart and repeat till there are no more updates
  • Disable stuff you want (cortana, search, task, news and interest etc) from the taskbar and update windows! Restart the machine a couple of times till there are no updates left.
  • Open defender and disable Cloud-delivered protection and Automatic sample submission

Download tools manually

  • Vistual Studio 2022 and install it.
    • Make sure to select ".Net Desktop Development" and "Desktop Development with C++", select the latest Windows SDK and MSVC v version and the Windows Driver kit
  • Open internet explorer and select use recommended settings.
  • Process hacker
  • PE Bear
  • APIMonitor
  • DebugView

Tools PowerShell

# Create directories
Set-Location C:\; New-Item "C:\Tools\" -ItemType "Directory"; New-Item "C:\Tools\AD" -ItemType "Directory"; New-Item "C:\Tools\Azure" -ItemType "Directory"; New-Item "C:\Tools\Evasion" -ItemType "Directory"; New-Item "C:\Tools\Misc" -ItemType "Directory"

# Add exclusion for C:\Tools\ and set execution policy unrestricted
Set-MpPreference -ExclusionPath C:\Tools\*, C:\users\*\.nxc\*, C:\users\*\source\*

# Download some tools with winget
winget install -e --id Python.Python.3.13 --accept-package-agreements --accept-source-agreements
winget install -e --id Notepad++.Notepad++ --accept-package-agreements --accept-source-agreements
winget install -e --id Git.Git --accept-package-agreements --accept-source-agreements
winget install -e --id OpenVPNTechnologies.OpenVPN --accept-package-agreements --accept-source-agreements
winget install -e --id Mozilla.Firefox --accept-package-agreements --accept-source-agreements
winget install -e --id Microsoft.Sysinternals.ProcessMonitor --accept-package-agreements --accept-source-agreements
winget install -e --id SystemExplorer.SystemExplorer --accept-package-agreements --accept-source-agreements
winget install -e --id dnSpyEx.dnSpy --accept-package-agreements --accept-source-agreements
winget install -e --id Microsoft.VisualStudioCode --accept-package-agreements --accept-source-agreements
winget install Microsoft.WinDbg --accept-package-agreements --accept-source-agreements
winget install -e --id WinsiderSS.SystemInformer --accept-package-agreements --accept-source-agreements
winget install -e --id x64dbg.x64dbg --accept-package-agreements --accept-source-agreements
winget install -e --id Hex-Rays.IDA.Free --accept-package-agreements --accept-source-agreements

Set-ExecutionPolicy -ExecutionPolicy Unrestricted
Get-WindowsCapability -Name RSAT* -Online | Add-WindowsCapability -Online

# Setup pipx
python -m pip install pipx
python -m pipx ensurepath

# Setup virtualenv
pipx install virtualenv

# Pipx tools install
python -m pipx install graphspy

# Download AD tools
Set-Location C:\Tools\AD
git clone https://github.com/samratashok/ADModule
git clone https://github.com/PowerShellMafia/PowerSploit
git clone https://github.com/samratashok/nishang
git clone https://github.com/r3motecontrol/Ghostpack-CompiledBinaries
git clone https://github.com/PowerShell/GPRegistryPolicyParser
git clone https://github.com/Kevin-Robertson/Invoke-TheHash
git clone https://github.com/Kevin-Robertson/Powermad
git clone https://github.com/S3cur3Th1sSh1t/PowerSharpPack
git clone https://github.com/NetSPI/PowerUpSQL
git clone https://github.com/itm4n/PrivescCheck
git clone https://github.com/Dliv3/SharpGPO
git clone https://github.com/leechristensen/SpoolSample
git clone https://github.com/maaaaz/impacket-examples-windows
git clone https://github.com/dafthack/MailSniper
git clone https://github.com/BloodHoundAD/BloodHound
git clone https://github.com/mandiant/ADFSDump
git clone https://github.com/szymex73/ADFSpoof
git clone https://github.com/PowerShellMafia/PowerSCCM

Invoke-WebRequest https://www.heidisql.com/downloads/releases/HeidiSQL_12.8_64_Portable.zip -OutFile HeidiSQL_12.8_64_Portable.zip; Expand-Archive HeidiSQL_12.8_64_Portable.zip; Remove-Item HeidiSQL_12.8_64_Portable.zip
Invoke-WebRequest https://github.com/MichaelGrafnetter/DSInternals/releases/download/v4.14/DSInternals_v4.14.zip -OutFile DSInternals_v4.14.zip; Expand-Archive DSInternals_v4.14.zip; Remove-Item DSInternals_v4.14.zip
Invoke-WebRequest https://github.com/Pennyw0rth/NetExec/releases/download/v1.3.0/nxc.exe.zip -OutFile nxc.exe.zip; Expand-Archive nxc.exe.zip; Remove-Item nxc.exe.zip

# Download Evasion tools
Set-Location C:\Tools\Evasion\
git clone https://github.com/iomoath/PowerShx
git clone https://github.com/rasta-mouse/ThreatCheck
git clone https://github.com/yoda66/PowerStrip
git clone https://github.com/hfiref0x/UACME
git clone https://github.com/danielbohannon/Invoke-Obfuscation

Invoke-WebRequest https://github.com/mkaring/ConfuserEx/releases/download/v1.6.0/ConfuserEx-GUI.zip -OutFile ConfuserEx-GUI.zip; Expand-Archive ConfuserEx-GUI.zip; Remove-Item ConfuserEx-GUI.zip

# Download Azure Tools
Set-Location C:\Tools\Azure\

# Azure AD
Invoke-WebRequest https://psg-prod-eastus.azureedge.net/packages/azuread.2.0.2.182.nupkg -OutFile azuread.2.0.2.182.zip; Expand-Archive azuread.2.0.2.182.zip; Remove-Item azuread.2.0.2.182.zip

# Azure AD Preview
Invoke-WebRequest https://psg-prod-eastus.azureedge.net/packages/azureadpreview.2.0.2.183.nupkg -OutFile azureadpreview.2.0.2.183.zip; Expand-Archive azureadpreview.2.0.2.183.zip; Remove-Item azureadpreview.2.0.2.183.zip

# MS ONline
Invoke-WebRequest https://psg-prod-eastus.azureedge.net/packages/msonline.1.1.183.81.nupkg -OutFile msonline.1.1.183.81.zip; Expand-Archive msonline.1.1.183.81.zip; Remove-Item msonline.1.1.183.81.zip

# Bloodhound
Invoke-WebRequest https://github.com/BloodHoundAD/AzureHound/releases/download/v2.2.1/azurehound-windows-amd64.zip -OutFile azurehound-windows-amd64.zip; Expand-Archive azurehound-windows-amd64.zip; Remove-Item azurehound-windows-amd64.zip

git clone https://github.com/NetSPI/MicroBurst
git clone https://github.com/Gerenios/AADInternals
git clone https://github.com/dafthack/MSOLSpray
git clone https://github.com/dafthack/MFASweep
git clone https://github.com/Azure/Stormspotter
git clone https://github.com/dirkjanm/ROADtools
git clone https://github.com/0xJs/AzurePowerCommands
git clone https://github.com/rvrsh3ll/TokenTactics
New-Item TokenTacticsEST -ItemType Directory; Set-Location C:\Tools\Azure\TokenTacticsEST; git clone https://github.com/rotarydrone/TokenTactics; Set-Location C:\Tools\Azure\
git clone https://github.com/RedByte1337/GraphSpy; Set-Location C:\Tools\Azure\GraphSpy; python3 -m pip install -r requirements.txt; Set-Location C:\Tools\Azure\
git clone https://github.com/dafthack/GraphRunner

Install-Module -Name Az -Repository PSGallery -Force -Confirm
Install-Module -Name Microsoft.Graph -Repository PSGallery -Force -Confirm
Install-Module -Name Microsoft.Graph.Intune -Repository PSGallery -Force -Confirm
Install-Module ExchangePowerShell -Repository PSGallery -Force -Confirm
Install-Module ExchangeOnlineManagement -Repository PSGallery -Force -Confirm

# General tools
Set-Location C:\Tools\Misc
Invoke-WebRequest https://github.com/islamadel/bat2exe/archive/refs/tags/2.0.zip -outfile 2.0.zip; Expand-Archive 2.0.zip; Remove-Item 2.0.zip; Move-Item .\2.0\bat2exe-2.0\ C:\Tools\Misc\; Remove-Item C:\Tools\Misc\2.0\
Invoke-WebRequest https://github.com/microsoft/etl2pcapng/releases/download/v1.7.0/etl2pcapng.zip -OutFile etl2pcapng.zip; Expand-Archive etl2pcapng.zip; Remove-Item etl2pcapng.zip
Invoke-WebRequest https://download.sysinternals.com/files/SysinternalsSuite.zip -OutFile SysinternalsSuite.zip; Expand-Archive SysinternalsSuite.zip; Remove-Item SysinternalsSuite.zip

About

No description, website, or topics provided.

Resources

Stars

8 stars

Watchers

2 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors