Skip to content

Latest commit

 

History

History
110 lines (77 loc) · 3.4 KB

File metadata and controls

110 lines (77 loc) · 3.4 KB

Enumeration Part

Links for Advance Enumeration

1. Netwoks
2. Windows Enumeration


PART 1 : Networking

Get All Stored Wifi-Passwords

1 . Get current basic network Information.

Get-NetIPConfiguration

if that doesnt work !

(netsh wlan show profiles) -match "All User Profile\s*: (.*)" | %{(netsh wlan show profile $_.trim() key=clear)} | Select-String "Key Content" | ForEach-Object {$_ -replace "Key Content\s*: ", ""}

To Display only Keys :

(netsh wlan show profile name=wifi-name key=clear) | Select-String "Key Content" | ForEach-Object { $_.ToString().Split(":")[1].Trim() }

Display only Wifi-Keys

IF IT DOES NOT WORK TRY THESE SIMPLE COMMAND ( Everyone Knows :)

netsh wlan show profile Name=* Key=clear

GET ALL PROFILE NAMES WITH PASSWORDS .

(netsh wlan show profiles) | Select-String "\:(.+)$" | %{$name=$_.Matches.Groups[1].Value.Trim(); $_} | %{(netsh wlan show profile name="$name" key=clear)} | Select-String "Key Content\W+\:(.+)$" | %{$pass=$_.Matches.Groups[1].Value.Trim(); $_} | %{[PSCustomObject]@{ PROFILE_NAME=$name;PASSWORD=$pass }} | Format-Table –AutoSize | Out-String -OutVariable dataCaptured

The Continuation of Network Part -> Click Here



WINDOWS ENUMERATION

1 . Check Partition and spaces

Get-PSDrive -PSProvider FileSystem | format-table -property Name,Root,@{n="Used (GB)";e={[math]::Round($_.Used/1GB,1)}},@{n="Free (GB)";e={[math]::Round($_.Free/1GB,1)}}

Display Mounted Partitions and they disk spaces

2 . List All services Running + stopped

Get-Service

list only Running part

Get-Service | Where-Object {$_.Status -eq "Running"}

3 . Restart Computer Dont kiddy me Guys, many members dont know this way of restarting PC . If you Know , U R Gud

Restart-Computer

Dont kiddy me Guys, many members dont know this way of restarting PC . If you Know , U R Gud

4 . Get Process id's , names and their CPU usage !

Get-Process | Format-Table -Property Id, @{Label="CPU(s)";Expression={$_.CPU.ToString("N")+"%"};Alignment="Right"}, ProcessName -AutoSize

5 . Check Disc Sync

param([string]$Drive = "")

try {
	if ($Drive -eq "" ) { $Drive = read-host "Enter drive (letter) to check" }

	$Result = repair-volume -driveLetter $Drive -scan
	if ($Result -ne "NoErrorsFound") { throw "'repair-volume' failed" }

	& "$PSScriptRoot/speak-english.ps1" "File system on drive $Drive is clean."
	exit 0 # success
} catch {
	"Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
	exit 1
}

6 . List out All System information

Get-ComputerInfo

These are just common methods that Normal It Guy's use . I Have created a seperate page for Each Topics. Please Visit it , Thank You

For Network Enumeration -> Click Here

For Windows Enumeration -> Click Here