From e02c62aab22f8aa1606720bc1c7e07a1e260f265 Mon Sep 17 00:00:00 2001 From: ATAO Date: Tue, 28 May 2024 15:34:42 +0200 Subject: [PATCH 1/2] Improve output --- windows-hardening/basic-powershell-for-pentesters/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows-hardening/basic-powershell-for-pentesters/README.md b/windows-hardening/basic-powershell-for-pentesters/README.md index b7900a783..c7595bfaa 100644 --- a/windows-hardening/basic-powershell-for-pentesters/README.md +++ b/windows-hardening/basic-powershell-for-pentesters/README.md @@ -263,7 +263,7 @@ Get-Hotfix -description "Security update" #List only "Security Update" patches ## Environment ```powershell -Get-ChildItem Env: | ft Key,Value #get all values +Get-ChildItem Env: | ft Key,Value -AutoSize #get all values $env:UserName @Get UserName value ``` From 1b3c7fab665321c7169607eb70dc83b4362b0009 Mon Sep 17 00:00:00 2001 From: ATAO Date: Tue, 28 May 2024 15:35:44 +0200 Subject: [PATCH 2/2] Improve output --- windows-hardening/windows-local-privilege-escalation/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows-hardening/windows-local-privilege-escalation/README.md b/windows-hardening/windows-local-privilege-escalation/README.md index b54fe3086..343263726 100644 --- a/windows-hardening/windows-local-privilege-escalation/README.md +++ b/windows-hardening/windows-local-privilege-escalation/README.md @@ -96,7 +96,7 @@ Any credential/Juicy info saved in the env variables? ```bash set dir env: -Get-ChildItem Env: | ft Key,Value +Get-ChildItem Env: | ft Key,Value -AutoSize ``` ### PowerShell History