Well, well. I was looking for a program online. And so, it appeared as a .bat file. However, It looked suspiciously small at 53 kB. So, before I ran it, I opened it up in notepad and voila, a virus. So, I shredded the file with the windows 7 shredder, but not before copying the code. Can someone tell me what this code snippet would do?

@echo off
:loop
cd "C:/"
md "PC Killar"
goto loop

Whatever you do, don't run it in command prompt!
Just let me know what would happen.

Thanks,
Emanfman

Recommended Answers

All 3 Replies

It executes line 3 and 4 over and over again:

cd "C:/"
md "PC Killar"
cd "C:/"
md "PC Killar"
cd "C:/"
md "PC Killar"
cd "C:/"
md "PC Killar"
cd "C:/"
md "PC Killar"
..etc...

I wouldn't really call that a virus. Just a nuisance batch file.

It executes line 3 and 4 over and over again:

cd "C:/"
md "PC Killar"
cd "C:/"
md "PC Killar"
cd "C:/"
md "PC Killar"
cd "C:/"
md "PC Killar"
cd "C:/"
md "PC Killar"
..etc...

I wouldn't really call that a virus. Just a nuisance batch file.

I knew that... But what is PC Killar?

Just a random directory someone picked when they wrote that file

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.