Warning

 

Close
Confirm Action

Are you sure you wish to do this?

Cancel Confirm
AR15.COM
4/14/2009 11:50:42 AM EDT
Sc config nod32krn start= disabled
Sc config nod32drv start= disabled

@echo off
rem set up phase 2 batch file to %windir%\temp
rem Clear autologin
echo reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /f  >%windir%\temp\phase2.cmd
echo reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /t REG_SZ /d Spardom /f >>%windir%\temp\phase2.cmd
echo reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultUserName /f    >>%windir%\temp\phase2.cmd
echo reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultPassword /f    >>%windir%\temp\phase2.cmd
echo reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoAdminLogon /t REG_SZ /d 0 /f >>%windir%\temp\phase2.cmd
rem uninstall nod32
echo sc delete nod32krn >>%windir%\temp\phase2.cmd
echo sc delete nod32drv >>%windir%\temp\phase2.cmd
echo reg delete hklm\SYSTEM\CurrentControlSet\Services\nod32drv /f >>%windir%\temp\phase2.cmd
echo reg delete hklm\SOFTWARE\Eset /f >>%windir%\temp\phase2.cmd
echo reg delete hklm\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v nod32kui /f >>%windir%\temp\phase2.cmd
echo rd /s /q "C:\Program Files\Eset" >>%windir%\temp\phase2.cmd
echo del /f "C:\WINDOWS\system32\drivers\nod32drv.sys" >>%windir%\temp\phase2.cmd
echo del /f "C:\WINDOWS\system32\drivers\amon.sys" >>%windir%\temp\phase2.cmd
echo del /f "C:\WINDOWS\system32\imon.dll" >>%windir%\temp\phase2.cmd
echo rd /s /q "%allusersprofile%\STARTM~1\Programs\Eset" >>%windir%\temp\phase2.cmd
echo rd /s /q "%ProgramFiles%\Eset" >>%windir%\temp\phase2.cmd
rem install Vipre
echo start /w %windir%\system32\msiexec.exe /i %windir%\temp\SBEAgent-Workstation_Default.msi /q >>%windir%\temp\phase2.cmd
echo del %windir%\temp\SBEAgent-Workstation_Default.msi          >>%windir%\temp\phase2.cmd
rem Reboot
echo Shutdown -f -r -t 0    >>%windir%\temp\phase2.cmd
rem end of phase2.cmd ====================================

@echo on
rem copy VIPRE msi to local drive
copy \\{removed}.com\dfs\install\SBEAgent-Workstation_Default.msi %windir%\temp

rem Set up autologin
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /t REG_SZ /d "" /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultUserName /t REG_SZ /d administrator /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultPassword /t REG_SZ /d "my local admin password" /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoAdminLogon /t REG_SZ /d 1 /f

rem set up to run phase2.cmd on reboot
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Runonce" /v phase2 /t REG_SZ /d "%windir%\temp\phase2.cmd" /f

rem Reboot
Shutdown -f -r -t 0
4/14/2009 11:59:02 AM EDT
[#1]
Quoted:
echo reg delete hklm\SYSTEM\CurrentControlSet\Services\nod32drv /f >>%windir%\temp\phase2.cmd
echo reg delete hklm\SOFTWARE\Eset /f >>%windir%\temp\phase2.cmd



something right there looks very wrong to me
4/14/2009 12:12:23 PM EDT
[#2]
1. Much of the first section won't happen due to "REM and "ECHO" (didn't read much of it as it won't happen)



2. the copy of "SBEAgent-Workstation_Default.msi" may not happen without a "/Y" (if the file is already in place)



3. You may want to change the reg key for the defaultdomainname to %computername% for local auto login



What am I missing?



EDIT: I see what you're doing there with the echos......stand by.
4/14/2009 12:33:16 PM EDT
[#3]
Put a baseball inside of it, oil it, wrap rubber bands around it, put it between your matresses for a month. It'll fit like a glove.

Posted Via AR15.Com Mobile
4/14/2009 12:35:30 PM EDT
[#4]
when i see shit like that on my 'puter screen....i call PCR, because i just fucked something up.....


4/14/2009 12:50:27 PM EDT
[#5]
No habla computerese.
4/14/2009 12:56:59 PM EDT
[#6]
10 PRINT "Fuck Obama!"

20 GOTO 10




4/14/2009 1:16:38 PM EDT
[#7]
Wrong Operating System

4/14/2009 1:24:18 PM EDT
[#8]
Paging Zero_Din....
4/14/2009 1:41:06 PM EDT
[#9]
Quoted:
10 PRINT "Fuck Obama!"
20 GOTO 10



4/14/2009 5:22:11 PM EDT
[#10]
The only issue I see is that this registry addition should be of REG_EXPAND_SZ type.

reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Runonce" /v phase2 /t REG_SZ /d "%windir%\temp\phase2.cmd" /f

However, I have been taking lots of medication today so....
4/14/2009 5:36:49 PM EDT
[#11]
Quoted:
10 PRINT "Fuck Obama!"
20 GOTO 10



R-Basic.  

I bet most of the kids here don't even know what that is.
4/14/2009 7:02:06 PM EDT
[#12]
Quoted:
The only issue I see is that this registry addition should be of REG_EXPAND_SZ type.

reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Runonce" /v phase2 /t REG_SZ /d "%windir%\temp\phase2.cmd" /f

However, I have been taking lots of medication today so....


This.



Do I look smart now?
4/14/2009 7:59:11 PM EDT
[#13]
Sweet, thank guys.
4/14/2009 8:19:05 PM EDT
[#14]




Quoted:



Quoted:

10 PRINT "Fuck Obama!"

20 GOTO 10








R-Basic.




I bet most of the kids here don't even know what that is
.




Dunno about R-Basic, but those commands work on the Commodore-64 I've got buried somewhere out in the garage.  It's probably right next to the Atari 2600.  
4/14/2009 8:29:33 PM EDT
[#15]
Quoted:
The only issue I see is that this registry addition should be of REG_EXPAND_SZ type.

reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Runonce" /v phase2 /t REG_SZ /d "%windir%\temp\phase2.cmd" /f

However, I have been taking lots of medication today so....


A quick test showed me that %windir% gets expanded during the reg add so it is a full path in the registry and REG_EXPAND_SZ wouldn't be necessary in that case.

Unfortunately nothing else is jumping out at me as a problem.

Is this one of those "spot the defect" brainteasers?

4/14/2009 8:56:12 PM EDT
[#16]
Quoted:
Quoted:
The only issue I see is that this registry addition should be of REG_EXPAND_SZ type.

reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Runonce" /v phase2 /t REG_SZ /d "%windir%\temp\phase2.cmd" /f

However, I have been taking lots of medication today so....


A quick test showed me that %windir% gets expanded during the reg add so it is a full path in the registry and REG_EXPAND_SZ wouldn't be necessary in that case.

Unfortunately nothing else is jumping out at me as a problem.

Is this one of those "spot the defect" brainteasers?



No, it's a file where my manager said "I did some cool things and made a couple mistakes.  Can you find the errors?"  I was like sure, I'll see what I can find.  I didn't find any errors. (Like a knew wtf I was looking at)
4/14/2009 9:43:19 PM EDT
[#17]
C:\>DELTREE \Y C:\GAY_PORN\MIDGETS
4/14/2009 9:54:29 PM EDT
[#18]
Quoted:
Quoted:
10 PRINT "Fuck Obama!"
20 GOTO 10



R-Basic.  

I bet most of the kids here don't even know what that is.


My first programming experience was programming GW-BASIC 3.23.  
I miss "peeking" and "poking".
4/14/2009 10:09:25 PM EDT
[#19]
ps -ef grep|more


4/14/2009 10:19:02 PM EDT
[#20]
Would have avoided that by buying a Mac.
4/14/2009 11:14:00 PM EDT
[#21]
Quoted:
Quoted:
The only issue I see is that this registry addition should be of REG_EXPAND_SZ type.

reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Runonce" /v phase2 /t REG_SZ /d "%windir%\temp\phase2.cmd" /f

However, I have been taking lots of medication today so....


A quick test showed me that %windir% gets expanded during the reg add so it is a full path in the registry and REG_EXPAND_SZ wouldn't be necessary in that case.



My thoughts exactly.

4/14/2009 11:14:53 PM EDT
[#22]
Quoted:
Quoted:
The only issue I see is that this registry addition should be of REG_EXPAND_SZ type.

reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Runonce" /v phase2 /t REG_SZ /d "%windir%\temp\phase2.cmd" /f

However, I have been taking lots of medication today so....


A quick test showed me that %windir% gets expanded during the reg add so it is a full path in the registry and REG_EXPAND_SZ wouldn't be necessary in that case.



Double tap.

4/14/2009 11:56:27 PM EDT
[#23]
No, it's a file where my manager said "I did some cool things and made a couple mistakes.  Can you find the errors?"  I was like sure, I'll see what I can find.  I didn't find any errors. (Like a knew wtf I was looking at)


Ah, nice.  It's these "mind sharpening" puzzles that float around at work that have me thinking every piece of code I see is a trick question.
Now that I think about it, it's probably building paranoia more than anything else.
4/15/2009 4:29:50 AM EDT
[#24]
Quoted:
C:\>DELTREE /Y C:\GAY_PORN\MIDGETS


Thats a bug....

4/15/2009 9:11:24 AM EDT
[#25]
You are forgetting this:

public static string   Encrypt (string originalString)   {      if (string.IsNullOrEmpty (originalString))      {         throw new ArgumentNullException (            "originalString",            "The string which needs to be encrypted can not be null.");      }      using (var  cryptoProvider = new RijndaelManaged ())      using (var  memoryStream = new MemoryStream ())      using (var  cryptoStream = new CryptoStream (         memoryStream,         cryptoProvider.CreateEncryptor (rgbKey, rgbIV),         CryptoStreamMode.Write))      using (var  writer = new StreamWriter (cryptoStream))      {         writer.Write (originalString);         writer.Flush ();         cryptoStream.FlushFinalBlock ();         writer.Flush ();         return Convert.ToBase64String (memoryStream.GetBuffer (), 0, (int) memoryStream.Length);      }   }   public static string   Decrypt (string cryptedString)   {      if (string.IsNullOrEmpty (cryptedString))      {         throw new ArgumentNullException (            "cryptedString",            "The string which needs to be decrypted can not be null.");      }      using (var  cryptoProvider = new RijndaelManaged ())      using (var  memoryStream = new MemoryStream (              Convert.FromBase64String (cryptedString)))      using (var  cryptoStream = new CryptoStream (         memoryStream,         cryptoProvider.CreateDecryptor (rgbKey, rgbIV),         CryptoStreamMode.Read))      using (var  reader = new StreamReader (cryptoStream))      {         return reader.ReadToEnd ();      }   }   private static byte []  rgbKey = ASCIIEncoding.ASCII.GetBytes ("Ni=9OE=$i+62eprIuDr@ewOu5I9r34Ro"); // change to your own secure key   private static byte []  rgbIV = ASCIIEncoding.ASCII.GetBytes ("to$eO_e!maI*o3ut"); // change to your own secure initialization vector

....one must encrypt their scripts/code, the zombies are getting smarter......
4/15/2009 11:30:10 AM EDT
[#26]
Quoted:
You are forgetting this:

public static string   Encrypt (string originalString)   {      if (string.IsNullOrEmpty (originalString))      {         throw new ArgumentNullException (            "originalString",            "The string which needs to be encrypted can not be null.");      }      using (var  cryptoProvider = new RijndaelManaged ())      using (var  memoryStream = new MemoryStream ())      using (var  cryptoStream = new CryptoStream (         memoryStream,         cryptoProvider.CreateEncryptor (rgbKey, rgbIV),         CryptoStreamMode.Write))      using (var  writer = new StreamWriter (cryptoStream))      {         writer.Write (originalString);         writer.Flush ();         cryptoStream.FlushFinalBlock ();         writer.Flush ();         return Convert.ToBase64String (memoryStream.GetBuffer (), 0, (int) memoryStream.Length);      }   }   public static string   Decrypt (string cryptedString)   {      if (string.IsNullOrEmpty (cryptedString))      {         throw new ArgumentNullException (            "cryptedString",            "The string which needs to be decrypted can not be null.");      }      using (var  cryptoProvider = new RijndaelManaged ())      using (var  memoryStream = new MemoryStream (              Convert.FromBase64String (cryptedString)))      using (var  cryptoStream = new CryptoStream (         memoryStream,         cryptoProvider.CreateDecryptor (rgbKey, rgbIV),         CryptoStreamMode.Read))      using (var  reader = new StreamReader (cryptoStream))      {         return reader.ReadToEnd ();      }   }   private static byte []  rgbKey = ASCIIEncoding.ASCII.GetBytes ("Ni=9OE=$i+62eprIuDr@ewOu5I9r34Ro"); // change to your own secure key   private static byte []  rgbIV = ASCIIEncoding.ASCII.GetBytes ("to$eO_e!maI*o3ut"); // change to your own secure initialization vector

....one must encrypt their scripts/code, the zombies are getting smarter......


And obviously obfuscate their code, as well...
4/15/2009 1:38:03 PM EDT
[#27]
Quoted:
Quoted:
You are forgetting this:

public static string   Encrypt (string originalString)   {      if (string.IsNullOrEmpty (originalString))      {         throw new ArgumentNullException (            "originalString",            "The string which needs to be encrypted can not be null.");      }      using (var  cryptoProvider = new RijndaelManaged ())      using (var  memoryStream = new MemoryStream ())      using (var  cryptoStream = new CryptoStream (         memoryStream,         cryptoProvider.CreateEncryptor (rgbKey, rgbIV),         CryptoStreamMode.Write))      using (var  writer = new StreamWriter (cryptoStream))      {         writer.Write (originalString);         writer.Flush ();         cryptoStream.FlushFinalBlock ();         writer.Flush ();         return Convert.ToBase64String (memoryStream.GetBuffer (), 0, (int) memoryStream.Length);      }   }   public static string   Decrypt (string cryptedString)   {      if (string.IsNullOrEmpty (cryptedString))      {         throw new ArgumentNullException (            "cryptedString",            "The string which needs to be decrypted can not be null.");      }      using (var  cryptoProvider = new RijndaelManaged ())      using (var  memoryStream = new MemoryStream (              Convert.FromBase64String (cryptedString)))      using (var  cryptoStream = new CryptoStream (         memoryStream,         cryptoProvider.CreateDecryptor (rgbKey, rgbIV),         CryptoStreamMode.Read))      using (var  reader = new StreamReader (cryptoStream))      {         return reader.ReadToEnd ();      }   }   private static byte []  rgbKey = ASCIIEncoding.ASCII.GetBytes ("Ni=9OE=$i+62eprIuDr@ewOu5I9r34Ro"); // change to your own secure key   private static byte []  rgbIV = ASCIIEncoding.ASCII.GetBytes ("to$eO_e!maI*o3ut"); // change to your own secure initialization vector

....one must encrypt their scripts/code, the zombies are getting smarter......


And obviously obfuscate their code, as well...


Yeah....I didn't want to take up a whole page on the site just to syntactically display my code. [I'm not a zombie........yet]
4/15/2009 2:14:50 PM EDT
[#28]
I am so glad they let me shoot at stuff for a living. Reading that shit daily would make me insane.