A diferent way to write registry keys using cmd

Post Reply
ds2020
Posts: 170
Joined: 27 Aug 2020, 17:39
Contact:

A diferent way to write registry keys using cmd

Post by ds2020 » 22 Sep 2020, 15:21

This is a command line to write registry keys. It takes advantage of mshta which uses vbs interpretor to execute a shell command. This shell command is RegWrite which will write the registry value calc. Once executed this command line it will autostart the calculator with windows.

Code: Select all

mshta vbscript:(CreateObject("WScript.Shell").RegWrite("HKCU\Software\Microsoft\Windows\CurrentVersion\Run\calc","calc.exe"))(Window.Close)
Install Brave Browser for 30 days and earn money. - http://bit.ly/_brave_browser

Post Reply