Skip to content

shalevshagan1/BypassWinPass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bypass Windows Password

This software can bypass Windows' password!

Firstly, I want to mention that this is a hobby project intended for learning Linux (How does one learn Linux from such a project? Let's find out). You can easily accomplish the goal of this project by booting from a LIVE CD of any Linux distribution, mounting Windows' drive and replacing the necessary file.

DISCLAIMER! This software must not serve as an offensive tool; it's for EDUCATIONAL PURPOSES ONLY!

When does it work?

To make it work, a few conditions must be met:

  • The disk must not use BitLocker encryption (or if you know BitLocker's password, a live CD is your choice).
  • (Check for MS account availability)

How does it work?

When you boot the ISO, it loads the Initial RAM Filesystem, typically used in Linux to prepare the system for boot. But that's boring. We use it because of its comfortable characteristics: It operates outside of Windows, allowing us to modify Windows' files, and it loads into RAM, making it similar to a LiveCD but much lighter and automatic.

Anyway, on Windows, a 'feature' called "Sticky Keys" triggered when you press Shift 5 times. Who cares? Well, if you're logged in, no one. But if you're locked out of your system, you're in luck. When activated on the Lock Screen, the Sticky Keys executeable runs with SYSTEM Privilege, meaning that if we can replace the executeable, we can launch a Command Prompt as Administrator and run a command to REMOVE the user's password.

Getting Started

You can download a compiled ISO from the Releases Page.

Compiling Sethc

Optional, sethc comes precompiled.
Open the Solution in Visual Studio 2022, change to Release Mode, hit Ctrl+B and copy sethc.exe to the assets folder.

Creating the ISO

Tested only on Debian (Ubuntu), won't work on WSL.
Run:
python3 -m pip install -r requirements.txt
python3 ./build.py

Usage

  1. Download and Compile the project (optional).
  2. Create bootable USB from the ISO using a tool like Rufus.
  3. IMPORTANT: Shut Down Windows, and not Reboot. For those who are curious why, when you restart Windows, it enters hibernation mode, during which the contents of the memory are saved to a file, leaving the partition unwritable.
  4. Boot the the ISO, wait for it to finish and press Return.
  5. Boot Windows, reach the password screen, press Shift 5 times, and then enter your username in the console.
  6. Enter to your account with an empty password.

TODO

  • add hiberfile removal support
  • shrink size by remove unnecessary BusyBox tools
  • add 32 bit support
  • add support for UNICODE Account names
  • add Linux support