Find the answer to your Linux question:
Results 1 to 4 of 4
Hi - I Have a program (Virus) in my pendrive.(When i used the pendrive in a net cafe,it got into my pendrive via M$ windows) It renames all directories/files to ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,757

    Smile How to Kill this Virus using Linux ?


    Hi -
    I Have a program (Virus) in my pendrive.(When i used the pendrive in a net cafe,it got into my
    pendrive via M$ windows)

    It renames all directories/files to .exe

    From my Linux Machine ,i can view these files- all ends with .exe
    When trying rm command it gave permission denied / read-only file system

    Code:
    rm -rf /media/*.exe
    it's a Vfat FS.
    I tried using debugfs /dev/sdb1 in write mode,

    Code:
    debugfs -w /dev/sdb1
    It throws an error saying "Read-Only File system"


    How to get rid-off this virus? Formatting is the *only* way?
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Try to remount partition with umask=0 option.
    Code:
    umount /dev/sdb1
    mount -t vfat  /dev/sdb1 /media/sdb1 -o defaults,umask=0
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,757

    Exclamation

    Thanks devils casper ,I will try this out and let u know the results
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

  4. #4
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,757

    Smile

    Thanks devils casper , It worked perfectly. I removed all the .exe files from pendrive ..I got one final issue,i have directory (g444) whose permission bits are not set.

    It comes as question ? and i can't remve this directory and it's files.
    This directories file name are contains ??? and some other junk character.


    How to remove this directory.?rmdir or rm -rf is not working with this directory.
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

Posting Permissions

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