Jump to content

Featured Replies

  • Author
Yes, I know, but I don't understand it. I don't know enough about C++ to understand how to do half that stuff, I need someone to walk me through it. Half the functions don't work in the examples, I'm guessing because I haven't included the proper headers and don't have the right libraries, but those pages make no mention of that... that's why I need help...

I took the tutorial here (the zip file wasn't available), and I quickly cleaned up his code and made a quick dialog to work with his code.

 

Here's the MSVC++ 6 workspace:

http://s26.yousendit.com/d.aspx?id=2O64IM6ZTP1270KDE1QMQ9PT6U

 

Pretty simple, if you understand the Windows message loop, you know WM_COMMAND handles menus, buttons, dialog text items, etc.

 

The loword of wParam ( LOWORD(wParam) ) holds the ID number of the item that was triggered (defined in resource.h in this case). So when you see IDOK, that means a button "named" IDOK was pressed.

 

(if you open the .rc file in a resource editor, and right click -> properties, you can view the names/settings of all the items used.)

 

I didn't edit the names, these are the ones from the tutorial:

 

http://img7.exs.cx/img7/5884/proggie0pv.png

 

Set Owner Name = IDOK

Show Owner Name = IDGETOWN

Create New Reg Key = IDBOOM

Quit = IDCANCEL

 

--------------------------------------------------------------

 

When you click Set Owner Name, GetDlgItemText() copies the text out of the edit box, and checks to see if there was anything there. If there was no text, it errors. If there was text, it updates the value of the "RegisteredOwner" key with the string of text you entered.

 

When you click Show Owner Name, it simply retrieves and displays the current owner name.

 

The Create New Reg Key button makes a new "folder" in Software\\Microsoft\\Windows\\CurrentVersion called "Whee543", and creates a key called "RegisteredOwner45435345".

 

Quit simply kills the dialog and causes WinMain to exit.

 

--------------------------------------------------------------

 

Should be pretty easy to follow. Again, I didn't write this, I simply cleaned up the author's code and made the new dialog (since his file wasn't available for download).

  • Author
Thanks for the tutorial Asterix, and Urza, I already know about that, it makes no mention of registry keys, but thank you anyway.
  • Author
I'm not good enough to write a good virus, but yes, I'm writing a crappy one :) Basically, when you run it, it copies itself to some obscure system folder and then fills up your desktop with textfiles, every time you turn on the comp. Sounds annoying, doesn't it?

u shuld also protect the virus process from being shut down by creating several files that surstain eachother (ie 2 processes that when 1 of them is closed the other starts it back up again) :naughty:

 

arg I last received a virus through msn.. it was some kind of link to a .pif file, so I thought.. I klik on it, and get a popup saying to open or download, I download it, scan it for virusses, and when detected I put it in my virus archive..

 

but noooo, it had to work already just by clicking on the link ffs..

 

arg I spent like 5 minutes removing it again from my comp..

 

I mean seriously, did virus developpers just run out of ideas? cuz all the virusses ive had lately were TOO easy to remove again :wow:

There's nastier things you can do. Have it install itself as an NT service like sp0rk-eh and Back Orifice do.

 

Check out the Back Orifice source code for a good example of multiple installation options, and the ability for the trojan to "upgrade" it's installation.

err, then ud have to disable windows detection system for new hardware, or delete the .dll files for the drivers, so when it tries to install them when u plug the mouse back in again it gives an error :rolleyes:
  • Author
Unfortunately, I'm still an idiot when it comes to C++, so I probably won't be able to create anything you're suggesting.
learn a bit of file I/O, then make some programs tat delete important files n send em to your friends =P
  Erondial said:
Unfortunately, I'm still an idiot when it comes to C++, so I probably won't be able to create anything you're suggesting.

 

Don't worry, you're not as much of an idiot as dark_urza. :naughty:

Guest
This topic is now closed to further replies.