📓
Everything I Know
  • index
  • #
    • 3D Printing
  • A
    • Abandoned Spaces
    • ADHD
    • Aging
    • Algorithms & Data Structures
      • Array
      • Constraint Satisfaction Problem
      • Dynamic Programming
      • Graph
      • Hash Table
      • Heap
      • Linked List
      • Queue
      • Recursion
      • Set
      • Stack
      • Tree
      • Trie
      • Union Find
    • Amazon Web Services
    • Android
    • Anime, Comics & Manga
    • APIs
    • Artificial Intelligence
    • Assembly
      • ARM
      • MIPS
      • x86
    • Audio / Video Editing
    • Awesome
    • Azure
  • B
    • Board Games
    • Books
  • C
    • C (programming language)
    • C++
    • Cars
    • Cascading Style Sheets
    • Chess
    • Comedy
    • Command Line
      • Autotools
      • Awk
      • Bash scripting
      • Grep
      • Lsof
      • Sed
      • SSH
    • Competitive Programming
    • Compilers
    • Computer Graphics
      • OpenGL
      • Vulkan
      • WebGPU
    • Computer Networks
    • Computer Science
    • Concurrency
    • Continuous Integration / Delivery
    • Cooking
    • Cryptography
    • Cryptocurriencies
    • Curriculum Vitae
  • D
    • Databases
      • PostgreSQL
      • SQL
      • SQLite
    • Design Patterns
    • Digital Minimalism
    • Distributed Systems
    • Docker
    • Documentaries
    • Documentation
    • Domain Name System
    • Dopamine
    • Drawing
  • E
    • eCommerce
    • Electronics
      • Repairs
    • Engineering
    • Entrepreneurship
    • Events
  • F
    • Fashion
    • Fitness
      • Exercise
      • Nutrition
      • Weight Loss
    • Focus
    • Football
  • G
    • Game Development
      • Godot
      • LibGDX
      • Unity
      • Unreal Engine
    • Git
    • Goals
    • Guitar
  • H
    • Habits
    • Happiness
    • House
      • Tradespeople
      • Buying
      • Renting
  • I
    • Interviews
      • Behavioural Interviews
      • Coding Interviews
      • System Design Interviews
  • J
    • Java
    • JavaScript
      • Astro
      • Bun
      • Electron
      • Jest
      • Node.js
      • Nue.js
      • React.js
      • Redux
      • Vue.js
    • Journaling
  • K
    • Karting
    • Knots
    • Knowledge Bases
    • Kotlin
    • Kubernetes
  • L
    • LaTeX
    • Learning
      • Drawing
      • Languages
        • Certificate of Proficiency in English
        • Japanese
      • Piano
    • Legacy Code
    • LEGO
    • Lifestyle
    • Life Hacks
    • Linux
    • LISP
  • M
    • Machine Learning
      • Deep Learning
    • MacOS
    • Maths
    • Meditation
    • Movies
    • Music
      • Music Production
      • Music Theory
  • N
    • Negotiation
    • News
  • O
    • Operating Systems
      • Linux
  • P
    • Parenting
    • Personal Finance
      • ISAs
      • Pensions
    • PHP
    • Physics
    • Podcasts
    • Procrastination
    • Productivity
    • Programming
      • Functional Programming
      • Performance
    • Prometheus
    • Psychology
    • Public Speaking
    • Purpose
    • Puzzles
    • Python
      • Django
      • Pandas
  • Q
    • Quantum Computing
    • Quotes
  • R
    • Regular Expressions
    • Relationships
    • Reverse Engineering
    • Rust
      • Cargo
  • S
    • Security
      • Android
      • Binary Exploitation
      • CompTIA Security+ SYO-701
      • CTFs
      • Forensics
      • Linux
      • Web
      • Windows
    • Self Improvement
    • Shaving
    • Sitting
    • Sleep
    • Social Skills
    • Spring (framework)
    • Stoicism
    • Strength Training
      • Deadlifts
      • Push Ups
    • Success
    • System Design
      • Site Reliability Engineering
  • T
    • Table Tennis
    • Testing
    • Thinking
    • Touch Typing
    • Travel
      • Japan
        • Fukuoka
        • Hiroshima
        • Kyoto
        • Okinawa
        • Osaka
        • Tokyo
      • London
      • Rome
    • TV Series & Programmes
    • Twitch
    • TypeScript
    • Typography
  • V
    • Virtual Tours
    • Vim
    • Video Games
      • Emulation
      • Mods
      • Music
      • Speedrunning
      • Warzone
  • W
    • Web Apps
    • Web Cams
    • Web Development
      • Selenium
      • Web Assembly
    • Windows
      • Windows Development
    • Work
      • Freelancing
      • GitHub Profile
      • Interesting Companies
      • Job Boards
      • Remote Work
      • Startup
    • Writing
Powered by GitBook
On this page
  • Notes
  • Registry
  • Resources
  • Articles
  • GitHub Repositories
  • Tools
  • TryHackMe Rooms
  • Websites

Was this helpful?

  1. S
  2. Security

Windows

Notes

Registry

  • The Windows Registry is a collection of databases that contains the system's configuration data.

  • A Registry Hive is a group of Keys, subkeys, and values stored in a single file on the disk.

  • The registry on any Windows system contains the following five root keys:

    • HKEY_CURRENT_USER: Contains the root of the configuration information for the user who is currently logged on.

    • HKEY_USERS: Contains all the actively loaded user profiles on the computer.

    • HKEY_LOCAL_MACHINE: Contains configuration information particular to the computer (for any user).

    • HKEY_CLASSES_ROOT: The information that is stored here makes sure that the correct program opens when you open a file by using Windows Explorer.

    • HKEY_CURRENT_CONFIG: Contains information about the hardware profile that is used by the local computer at system startup.

  • The majority of the hives are located in the C:\Windows\System32\Config directory and are:

    • DEFAULT (mounted on HKEY_USERS\DEFAULT)

    • SAM (mounted on HKEY_LOCAL_MACHINE\SAM)

    • SECURITY (mounted on HKEY_LOCAL_MACHINE\Security)

    • SOFTWARE (mounted on HKEY_LOCAL_MACHINE\Software)

    • SYSTEM (mounted on HKEY_LOCAL_MACHINE\System)

  • The other hives that contain user information are located in:

    • C:\Users<username>\NTUSER.DAT (mounted on HKEY_CURRENT_USER when a user logs in)

    • C:\Users<username>\AppData\Local\Microsoft\Windows\USRCLASS.DAT (mounted on HKEY_CURRENT_USER\Software\CLASSES)

  • Another very important hive is called the AmCache hive, which is located in C:\Windows\AppCompat\Programs\Amcache.hve and contains information on programs that were recently run on the system.

  • The transaction logs can be considered as the journal of the changelog of the registry hive, which means that the transaction logs can often have the latest changes in the registry that haven't made their way to the registry hives themselves. The transaction log for each hive is stored as a .LOG file in the same directory as the hive itself. It has the same name as the registry hive, but the extension is .LOG.

  • Registry backups are the opposite of Transaction logs. These are the backups of the registry hives located in the C:\Windows\System32\Config directory. These hives are copied to the C:\Windows\System32\Config\RegBack directory every ten days.

Useful registry keys

  • NTUSER.DAT\Software\Microsoft\Office\VERSION - Office recent files

  • NTUSER.DAT\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs - Recent files

  • SAM\Domains\Account\Users - Users

  • SOFTWARE\Microsoft\Windows\CurrentVersion\Run - Autoruns

  • SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce - Autoruns

  • SOFTWARE\Microsoft\Windows NT\CurrentVersion - OS version

  • SOFTWARE\Microsoft\Windows Portable Devices\Devices - USB device volume names

  • SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName - Computer name

  • SYSTEM\CurrentControlSet\Enum\USB - USB devices information

  • SYSTEM\CurrentControlSet\Enum\USBSTOR - USB devices information

  • SYSTEM\CurrentControlSet\Control\TimeZoneInformation - Time zone information

  • SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces - Network interfaces

Resources

Articles

GitHub Repositories

Tools

TryHackMe Rooms

Websites

  • Windows Virtual Machines

PreviousWebNextSelf Improvement

Last updated 2 months ago

Was this helpful?

- 0xdf

- Adam Toscher

- Active Directory Security

- Ruben Boonen, Fuzzy Security

- Powershell tool to automate Active Directory enumeration

- Six Degrees of Domain Admin

- password recovery tool for Microsoft Operating Systems

- tool for enumerating data from Windows and Samba hosts

- A next generation version of enum4linux

- The ultimate WinRM shell for hacking/pentesting

- Just Another Windows (Enum) Script

- Another Windows Local Privilege Escalation from Service Account to System

- tool to perform Kerberos pre-auth bruteforcing

- A little tool to play with Windows security

- The swiss army knife of LSASS dumping

- Windows batch script that finds misconfiguration issues which can lead to privilege escalation

- Mimikatz implementation in pure Python

- Defeating Windows User Account Control

- Windows Privilege Escalation Techniques and Scripts

- Eric Zimmerman

- Curated list of every binary, script, and library that can be used for Living Off The Land techniques

- Curated list of Windows drivers used by adversaries to bypass security controls and carry out attacks

Playing with PrintNightmare
Top Five Ways I Got Domain Admin on Your Internal Network before Lunch (2018 Edition)
Unofficial Guide to Mimikatz & Command Reference
Windows Privilege Escalation Fundamentals
adPEAS
BloodHound
Cain & Abel
enum4Linux
enum4linux-ng
Evil-WinRM
JAWS
JuicyPotatoNG
kerbrute
mimikatz
NanoDump
Privesc
pypykatz
RegRipper3.0
UACMe
Windows-Exploit-Suggester
Windows-Privilege-Escalation
Windows Exploit Suggester - Next Generation
Windows Exploits
Registry Explorer
Active Directory Basics
Attacktive Directory
Blaster
Bypassing UAC
Ice
KAPE
Retro
Windows Forensics 1
Windows Fundamentals 1
Windows Fundamentals 2
Windows Fundamentals 3
Active Directory Security
LOLBAS
LOLDrivers
Windows 10 Enterprise
Windows 11 developer environment
Windows 11 Enterprise