Advertisement
Guest User

Untitled

a guest
Jan 17th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.84 KB | None | 0 0
  1. #Baseline Registry
  2.  
  3.  
  4. Get-ItemProperty -path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run | Out-File -filepath C:\Users\Default\Desktop\baseline.txt
  5.  
  6. Get-ItemProperty -path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce | Out-File -append -filepath C:\Users\Default\Desktop\baseline.txt -noclobber
  7.  
  8. # This does not have a path. It was verified on regedit
  9. Get-ItemProperty -path "HKCU:\Software\Microsoft\Windows NT\CurrentVersion\run" | Out-File -append -filepath C:\Users\Default\Desktop\baseline.txt -noclobber
  10.  
  11. # This does not have a path. It was verifed on regedit
  12. Get-ItemProperty -path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\run' | Out-File -append -filepath C:\Users\Default\Desktop\baseline.txt -noclobber
  13.  
  14. Get-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\services\ | Out-File -append -filepath C:\Users\Default\Desktop\baseline.txt -noclobber
  15.  
  16. # Changed path from 'USBSTOR' to 'USB' since 'USBSTOR' does not exist.
  17. Get-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Enum\USB | Out-File -append -filepath C:\Users\Default\Desktop\baseline.txt -noclobber
  18.  
  19. Get-ItemProperty -Path 'HKCU:\Software\Microsoft\Internet Explorer\TypedURLs' | Out-File -append -filepath C:\Users\Default\Desktop\baseline.txt -noclobber
  20.  
  21. #This file DOES exit in registry, but output can't be found.
  22. Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\Profiles' | out-file -append -filepath C:\Users\Default\Desktop\baseline.txt -noclobber
  23.  
  24. #This shows content of consolidated output into the .txt file
  25. get-content C:\Users\Default\Desktop\baseline.txt
  26.  
  27. #Verify baseline output
  28. #Import this file to the VM
  29. #Run malware and collect registry output, out-file to another .txt file
  30. #Do a Compare-object between the two text files. Need to parse out what's differnt
  31. #Run unmalware. Rinse and repeat.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement