You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
performs an operation against each item in a collection of input objects
Where-Object
?
selects objects from a collection based on their property values
Windows Directories to examine
#dns file"C:\Windows\System32\drivers\etc\hosts"#network config file"C:\Windows\System32\drivers\etc\networks"#usernames and passwords"C:\Windows\System32\config\SAM"#security log"C:\Windows\System32\config\SECURITY"#software log"C:\Windows\System32\config\SOFTWARE"#windows event logs"C:\Windows\System32\winevt\*"#backup of user and password"C:\Windows\repair\SAM"#Windows xp all users start up"C:\Documents and Settings\All Users\Start Menu\Programs\Startup\*"#windows xp user startup"C:\Documents and Settings\User\Start Menu\Programs\Startup"#windows all user startup"C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp"#windows user startup"C:\Users\*\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\StartUp"#prefetch files"C:\Windows\Prefetch"#amcache.hve"C:\Windows\AppCompat\Programs\Amcache.hve"#NTUSER.dat"C:\Windows\Users\*\NTUSER.dat"
Windows Process with wmic
Get a brief output of running processes
wmic process list brief
Get a large amount of output from running processes
wmic process list full
Get specific information about running processes
wmic process get name,parentprocessid,processid,commandline
Focus in on a specific process
wmic process where processid=pid_number get commandline
Network Connections
Overview of connections
netstat -na
Show the owning process ID and associated exe's / DLLs
netstat -naob
Refresh network connections every 5 seconds
netstat -naob 5
Examine the built-in firewall settings Windows 7 -- Windows 10
net user
net user <username>
net localgroup Administrators
Scheduled Tasks
View using the GUI
schtasks
Remember if using the CLI the at command will only show tasked where at was used to set up the task, schtasks shows all tasks.
Unusual Log Entries
Suspicious Log entiries to look for, low hanging fruit
Event log services was stopped
Windows File Protection is not active on this system
A member was added to a security-enabled local group
##Several Failed logon attempts##
This provides basic information about the image, will suggest which volatility plugin to use
./vol.py imageinfo
#OR on windows cmd
ver
#Output
Microsoft Windows [Version 10.0.20348.1249]
#now search for the build version
python vol.py --info | grep 20348
Listing Processes
vol.py pslist
Parent and Child Processes
vol.py pstree
Network Connections
vol.py netscan
UserAssist
UserAssist registry keys track any program run from the GUI, create for creating IR timelines
vol.py userassist
Processs Command Line
See full command line used to start processes
vol.py cmdline
Guidelines
Suspicious process --> pslist, pstree
Network Listener --> netscan, check processes
Suspicious program --> userassist , cmdline , processes
Others --> hivelistprintkeysvcscandllist
Detecting PSEXEC in logs
Get-WinEvent -FilterHashTable @{ Logname='System'; ID='7045'} | where {$_.Message.contains("PSEXEC")}
Folder where the application is stored
C:\Windows\System32
C:\Windows\System
C:\Windows
Current Directory
Directories listed in system path #see with env/set