Results 1 to 3 of 3

Thread: How To Remove Any Malware-related File or Locked files from the Harddisk Drive

  1. #1
    coolcool1227's Avatar
    coolcool1227 is offline Advance Member
    Last Online
    4th March 2022 @ 12:29 AM
    Join Date
    23 May 2009
    Location
    Sialkot
    Gender
    Male
    Posts
    2,219
    Threads
    62
    Credits
    1,575
    Thanked
    139

    Default How To Remove Any Malware-related File or Locked files from the Harddisk Drive

    Sometimes it is the case that more conventional methods (like booting into safe mode) or even extreme methods (like using Unlocker) fail to deliver any result. Below you can find a method which you can use in this case.

    What you need:

    1) A Windows XP installation CD (the process works similarly with other versions of the NT family like Windows 2003 or Vista, however the screenshots are made using XP)

    2) The password of the Administrator account (this is usually set during the installation of the system. If you don't know it, you can reset it issuing the following command:

    CODE

    net user Administrator <the password you want to set>

    (If the password includes space, you should surround it with quotes).


    The steps:

    1) Write down (or print out) the list of files you wish to remove. If you take the list from a BitDefender log file, make sure to ignore any strings after "=>" (which means extracted from). So for example from "C:\aaaaa=>bbbbb" you would only write down "C:\aaaaa"

    2) Put the Cd-Rom in your CD drive and boot from it. For this you need to make sure that the CD drive is before the hard-drive in the BIOS boot sequence (consult the manual of your motherboard to find out how to change the boot order) and also to press a key when the message "Press any key to boot from CD" is displayed.

    3) At the screen show below select "repair a Windows XP installation" by pressing R
    (http://hype.free.googlepages.com/repairwindows.png)

    4) At the next screen select your Windows installation by pressing the corresponding number followed by Enter (usually you will have only one choice - so press 1. Multiple choices are present only if you have multiple versions of Windows installed on separate partitions)
    (http://hype.free.googlepages.com/sel...stallation.png)

    5) Enter the Administrator password (if it is empty, just press Enter), and you will be greeted by a command prompt where you can manage the files. You can:
    Delete a file by issuing the

    CODE

    del <filename>

    command. If the filename contains spaces, surround it with quotes. If you get an error message (like "No matching files were found"), it is possible that the file you want to delete has the hidden / system / read-only attributes set. To remove them issue the following three commands (again, if the filename contains spaces, surround it with quotes):

    CODE

    attrib -H <filename>
    attrib -R <filename>
    attrib -S <filename>
    Rename the files by issuing the
    CODE
    ren <oldname> <newname>

    command. (Again, if any of the file names contain spaces, they have to be surrounded by quotes for them to be interpreted correctly). If you wish to get detailed information about the files (by sending them to us for example), you should use this instead of deleting the files. For example you might do:

    CODE

    ren infected.exe c:\file0001.dat
    ren infected.sys c:\file0002.dat

    Two important advices on choosing the file names are: use a non executable extension (for example .dat or .inf) to avoid execution of the files by mistake. Also, move them to a different directory and use a file name which is unlike the original (like file0001, file0002 and so on). This is important because if you have a rootkit and you boot your machine normally (to send the files to us for example), the rootkit might hide the files based on their name and / or the directory they are in. Also, if you get an error during the moving of the files, you should try removing any hiddent / system / read-only attributes as shown above.

    If the files are in ADS's (Alternate Data Streams - they are an alternate way to store files, using which one file can contain multiple data streams and are used by malware like the Rustock family because many tools don't support working with them - you can read more about them here), you can remove them by doing

    CODE

    echo><name of the file>
    for example

    CODE

    echo>C:\Windows\System32:lzx32.sys

    Files in ADS's can be identified by the fact that they contain an additional colon beside the one after the drive. In the previous example this would be the one written with underline C:\Windows\System32:lzx32.sys.

    When you are done, remove the Windows XP cd-rom and reboot your computer (by typing exit or by using the reboot button if you computer has one). Don't forget to undo any changes to the boot order you might have done (again, consult the documentation of your motherboard).

  2. #2
    Devilish is offline Senior Member+
    Last Online
    23rd January 2012 @ 10:28 AM
    Join Date
    26 Dec 2011
    Age
    31
    Gender
    Male
    Posts
    805
    Threads
    2
    Credits
    575
    Thanked
    38

    Default

    zabrdast hy jee bht he achi post dear wah.....

  3. #3
    Join Date
    21 Dec 2008
    Location
    Karachi
    Gender
    Male
    Posts
    1,478
    Threads
    127
    Credits
    1,716
    Thanked
    94

    Default

    ufff...
    thkk gaya parh parh k...
    gud work bro

Similar Threads

  1. Sites For Uploading
    By editorshahid in forum General Discussion
    Replies: 12
    Last Post: 8th November 2017, 10:53 PM
  2. Replies: 15
    Last Post: 11th June 2016, 03:38 PM
  3. 138 Commands of Commond Prompt ( DOS ) with their descriptio
    By don_asia in forum General Discussion
    Replies: 5
    Last Post: 18th October 2014, 03:53 PM
  4. پ لوڊ سايٽس کا خزانه
    By aliali14 in forum Website Reviews
    Replies: 25
    Last Post: 23rd November 2011, 07:55 AM
  5. agar aap ko hit man ke.............
    By mohaik47 in forum PC Games
    Replies: 2
    Last Post: 14th April 2009, 12:52 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •