Author Topic: I think I may have downloaded a virus (SOLVED)  (Read 2533 times)

Offline Jim Dandy

  • Full Member
  • ***
  • Posts: 185
Re: I think I may have downloaded a virus
« Reply #15 on: December 03, 2012, 10:31:50 PM »
Thanks. When I did that it asked me remove whatever and had a question mark at the end. I typed in yes, didn't really know what to do but that seems to have done the trick. I ran the command again after I typed in yes and it informed me there was no such file or directory. And now I can't find an avi file when I search for it. Thank you very much.

Let's hope it don't come back. LOL

Linux don't like filenames with "spaces" in them.

Next time you download a file, add a "_" where the spaces are or just delete them out BEFORE you "Save File As" in the dialog box.

Good luck. ;) 

Thank you. That was a great help to me. I could have done a fresh install and I will probably do that sometime just to make the root partition bigger. I just let it do all the formatting automatically when I installed the disc to the drive and it all went smoothly but I don't think it gave enough room for root. (It is my understanding that that is where all the programs go)

Offline Jim Dandy

  • Full Member
  • ***
  • Posts: 185
Re: I think I may have downloaded a virus
« Reply #16 on: December 03, 2012, 10:34:29 PM »
Thank you. The name of the file, at least the name it was given on PB, is this:  Life of Pi from Cam but Very Good.avi

I am familiar with su and password, have used it many times. But could you tell me specifically how to remove this whatever it is that keeps coming back every time I delete it? I should have known better from the title--it said it was very good but the quality sucked. I have still not had any luck with clam.

I see somebody has beaten me to this, but I will post anyway, as some of this may be still relevant.

If "Life of Pi from Cam but Very Good.avi" is the file you wish to delete, try this:

1.)  Figure out where this file is stored.  It may prove useful to run the slocate or find commands to accomplish this - you may be surprised to find the file in question resides in more than one place!

2.)  Once you've figured out where all the copies are, delete them as root from a shell using the rm command with the -f option {WARNING!  Sit on your fingers for a few seconds, and read the command carefully before pressing the ENTER key - a character or space out of place in an rm command can have disastrous consequences.  As an example, say you found a copy of this file in /home/xxxxx/Videos (where xxxxx represents a user name), you could delete it from a root shell prompt by issuing the command:

Code: [Select]
[root@localhost xxxxx]rm -f "Life of Pi from Cam but Very Good.avi"
Note the double quotes around the file name?  Very necessary since this file name contains spaces!

Another way to attack the problem would be to use Midnight Commander as root.  To open it as root, issue the following command from a root shell:
Quote
[root@localhost xxxxx]mc

You will find that Midnight Commander has some very powerful file search and manipulation tools.  (I suggest this as the file name you are working with may have non-visible/non-printable characters in it that are hindering your deletion efforts.)

Hope this helps you out.  You may wish to reconsider Pirate Bay as a source for torrents.  There are safer sites out there.  Google it, friend.

Later On,
D

Thank you very much for the info. I seem to be rid of the thing finally and that is a great thing. As for PB I don't plan on using it again. I had never had any problem with it before but it only takes one time to sour you on something like that.

Offline Rudge

  • Hero Member
  • *****
  • Posts: 9773
  • I'm Just A Dog.
Re: I think I may have downloaded a virus (SOLVED)
« Reply #17 on: December 03, 2012, 10:49:33 PM »
As long as we are on the subject, maybe I can also add knowledge ;)

The reason that Linux don't like spaces in file names is because of how the command interpreter works.

With a command like "rm" for instance, it expects..

the command rm  (space)  followed by options if any (space) more options (space) and then after the LAST (space) the_file_name

As you can see, a (space) indicates that the data "before" the space was supposed to be "options".

When you have a (space) in a file name, the rm command tries to interpret the first part of the file name as an "option".

Needless to say, it is never a "valid one" so the command dies right there.     ;D
  
« Last Edit: December 03, 2012, 11:00:20 PM by Rudge »


-If you wish to make an apple pie from scratch, you must first invent the universe-  Carl Sagan

Offline Xenaflux

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3829
Re: I think I may have downloaded a virus (SOLVED)
« Reply #18 on: December 04, 2012, 12:28:27 AM »
Quote
As for PB I don't plan on using it again. I had never had any problem with it before but it only takes one time to sour you on something like that.

Pretty easy solution for that  ;D

Install pclinuos in a different partition and call that " my playground ".
If you mess up, just delete and install again ( or use clonezilla : is faster )
The great thing in this world is not so much where we stand,
as in what direction we are moving.
                                                    (Oliver Wendell Holmes )

Offline GOTHBITES

  • Hero Member
  • *****
  • Posts: 753
  • Oh I get it now. Windows 8 is a Bigger Sham
Re: I think I may have downloaded a virus
« Reply #19 on: December 04, 2012, 02:28:11 AM »
Thank you. The name of the file, at least the name it was given on PB, is this:  Life of Pi from Cam but Very Good.avi

I am familiar with su and password, have used it many times. But could you tell me specifically how to remove this whatever it is that keeps coming back every time I delete it? I should have known better from the title--it said it was very good but the quality sucked. I have still not had any luck with clam.

I see somebody has beaten me to this, but I will post anyway, as some of this may be still relevant.

If "Life of Pi from Cam but Very Good.avi" is the file you wish to delete, try this:

1.)  Figure out where this file is stored.  It may prove useful to run the slocate or find commands to accomplish this - you may be surprised to find the file in question resides in more than one place!

2.)  Once you've figured out where all the copies are, delete them as root from a shell using the rm command with the -f option {WARNING!  Sit on your fingers for a few seconds, and read the command carefully before pressing the ENTER key - a character or space out of place in an rm command can have disastrous consequences.  As an example, say you found a copy of this file in /home/xxxxx/Videos (where xxxxx represents a user name), you could delete it from a root shell prompt by issuing the command:

Code: [Select]
[root@localhost xxxxx]rm -f "Life of Pi from Cam but Very Good.avi"
Note the double quotes around the file name?  Very necessary since this file name contains spaces!

Another way to attack the problem would be to use Midnight Commander as root.  To open it as root, issue the following command from a root shell:
Quote
[root@localhost xxxxx]mc

You will find that Midnight Commander has some very powerful file search and manipulation tools.  (I suggest this as the file name you are working with may have non-visible/non-printable characters in it that are hindering your deletion efforts.)

Hope this helps you out.  You may wish to reconsider Pirate Bay as a source for torrents.  There are safer sites out there.  Google it, friend.

Later On,
D

I myself am glad to see you got it worked out lol also Piratebay is not so bad but this thread will prove use full in the future.

Thank you very much for the info. I seem to be rid of the thing finally and that is a great thing. As for PB I don't plan on using it again. I had never had any problem with it before but it only takes one time to sour you on something like that.
UPDATED!! ASUS U52F Notebook i5 CPU,  4Gb ram, 640Gb Hard drive Dual-Boot Win 7Pro/KDE 4 3.2.18-pclos2.bfs

ASUS U50F notebook i3 4Gb Ram. 500 GB hard drive dual-boot Win 7/ KDE 3.2.18-pclos2.pae.bfs    Of course thats just my opinion I could wrong

Offline Jim Dandy

  • Full Member
  • ***
  • Posts: 185
Re: I think I may have downloaded a virus
« Reply #20 on: December 04, 2012, 07:54:06 AM »
Thanks. When I did that it asked me remove whatever and had a question mark at the end. I typed in yes, didn't really know what to do but that seems to have done the trick. I ran the command again after I typed in yes and it informed me there was no such file or directory. And now I can't find an avi file when I search for it. Thank you very much.

Let's hope it don't come back. LOL

Linux don't like filenames with "spaces" in them.

Next time you download a file, add a "_" where the spaces are or just delete them out BEFORE you "Save File As" in the dialog box.

Good luck. ;) 

I checked just now and it is back. It is a persistent thing, I will have to give whoever wrote it credit for that. Not that I wouldn't like to see him or her doing hard time.

Offline Jim Dandy

  • Full Member
  • ***
  • Posts: 185
Re: I think I may have downloaded a virus
« Reply #21 on: December 04, 2012, 08:01:20 AM »
Thank you. The name of the file, at least the name it was given on PB, is this:  Life of Pi from Cam but Very Good.avi

I am familiar with su and password, have used it many times. But could you tell me specifically how to remove this whatever it is that keeps coming back every time I delete it? I should have known better from the title--it said it was very good but the quality sucked. I have still not had any luck with clam.

I see somebody has beaten me to this, but I will post anyway, as some of this may be still relevant.

If "Life of Pi from Cam but Very Good.avi" is the file you wish to delete, try this:

1.)  Figure out where this file is stored.  It may prove useful to run the slocate or find commands to accomplish this - you may be surprised to find the file in question resides in more than one place!

2.)  Once you've figured out where all the copies are, delete them as root from a shell using the rm command with the -f option {WARNING!  Sit on your fingers for a few seconds, and read the command carefully before pressing the ENTER key - a character or space out of place in an rm command can have disastrous consequences.  As an example, say you found a copy of this file in /home/xxxxx/Videos (where xxxxx represents a user name), you could delete it from a root shell prompt by issuing the command:

Code: [Select]
[root@localhost xxxxx]rm -f "Life of Pi from Cam but Very Good.avi"
Note the double quotes around the file name?  Very necessary since this file name contains spaces!

Another way to attack the problem would be to use Midnight Commander as root.  To open it as root, issue the following command from a root shell:
Quote
[root@localhost xxxxx]mc

You will find that Midnight Commander has some very powerful file search and manipulation tools.  (I suggest this as the file name you are working with may have non-visible/non-printable characters in it that are hindering your deletion efforts.)

Hope this helps you out.  You may wish to reconsider Pirate Bay as a source for torrents.  There are safer sites out there.  Google it, friend.

Later On,
D

Thank you very much for the info. I seem to be rid of the thing finally and that is a great thing. As for PB I don't plan on using it again. I had never had any problem with it before but it only takes one time to sour you on something like that.

slocate=command not found

Offline gseaman

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3881
Re: I think I may have downloaded a virus (SOLVED)--spoke too soon, not solved
« Reply #22 on: December 04, 2012, 08:16:28 AM »
slocate won't find recently added files until you do this:
su -c updatedb
Then try it again.

Galen

Offline Jim Dandy

  • Full Member
  • ***
  • Posts: 185
Re: I think I may have downloaded a virus (SOLVED)--spoke too soon, not solved
« Reply #23 on: December 04, 2012, 08:20:03 AM »
slocate won't find recently added files until you do this:
su -c updatedb
Then try it again.

Galen

Thanks--it still told me command not found when I did that.

Offline Mike

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 7573
  • Saved from the Fire
Re: I think I may have downloaded a virus (SOLVED)--spoke too soon, not solved
« Reply #24 on: December 04, 2012, 08:44:40 AM »
As a thought, since this is a "exe" file, you might try adding a virtual system using XP...then D/L the free version of Avast, it should find and remove the offending
"exe" file, or at least quarantine it so you can delete it . Then return your system to its normal state...;  :-\ ??? :)
I'm not upset that you lied to me,
I'm upset that from now on I can't believe you.
~Friedrich Nietzsche~


Joe Gable
Dave "Exwintech"
Linux Counter #288984

Offline Jim Dandy

  • Full Member
  • ***
  • Posts: 185
Re: I think I may have downloaded a virus (SOLVED)
« Reply #25 on: December 04, 2012, 08:47:16 AM »
Quote
As for PB I don't plan on using it again. I had never had any problem with it before but it only takes one time to sour you on something like that.

Pretty easy solution for that  ;D

Install pclinuos in a different partition and call that " my playground ".
If you mess up, just delete and install again ( or use clonezilla : is faster )

Thanks. If you knew how little I know about partitioning you might not have suggested that.  :D Seriously though, if I can't get rid of whatever this thing is that seems to have hundreds more lives than a hundred cats I will, when I can, just do a fresh install and be done with it. If I have to do that then the next time I do want to give root more room since I didn't think the automatic install left enough for that.

Offline Jim Dandy

  • Full Member
  • ***
  • Posts: 185
Re: I think I may have downloaded a virus (SOLVED)--spoke too soon, not solved
« Reply #26 on: December 04, 2012, 08:56:48 AM »
As a thought, since this is a "exe" file, you might try adding a virtual system using XP...then D/L the free version of Avast, it should find and remove the offending
"exe" file, or at least quarantine it so you can delete it . Then return your system to its normal state...;  :-\ ??? :)

Thanks. I don't have Windows XP anymore. It was the last Windows I ever used but the hard drive it was on crashed and the one I have now has never head anything but Linux on it.

Offline µT6

  • Hero Member
  • *****
  • Posts: 2088
Re: I think I may have downloaded a virus (SOLVED)--spoke too soon, not solved
« Reply #27 on: December 04, 2012, 09:12:21 AM »
the vitual machine only covers the files inside the virtual machine, the antivirus only affects the local files inside the virtual machine so if the avi/exe file is not inside the virtual machine, the antivirus will do nothing with it

the quarantine is a folder where a suspicious file can be moved and is added to a list to be avoided until a decision on what to do with it is taken so it is a valid option
“Out of everything I've lost, I miss my mind the most!”

Ozzy Osbourne

Offline Bald Brick

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6470
  • I'm going South
Re: I think I may have downloaded a virus (SOLVED)--spoke too soon, not solved
« Reply #28 on: December 04, 2012, 10:03:40 AM »
slocate won't find recently added files until you do this:
su -c updatedb
Then try it again.

Galen

Thanks--it still told me command not found when I did that.

I think slocate has been replaced by mlocate. But you won't find a binary called mlocate either; the mlocate binary is just called "locate".
Feed the trolls!
They need it!

AMD Athlon 7450 Dual-Core Processor, 7.80 GiB RAM, Nvidia GeForce GT 120/PCIe/SSE2, OpenGL/ES-version: 3.3 0 NVIDIA 295.40, SBx00 Azalia (Intel HDA) soundcard, ‎Logitech B500 webcam, SAA7146 DVB card, HDDs: Seagate 250824AS, Western Digital WD10EAVS-00D

AndrzejL

  • Guest
Re: I think I may have downloaded a virus (SOLVED)--spoke too soon, not solved
« Reply #29 on: December 04, 2012, 11:46:14 AM »
Are You freakin kidding me?

So You have downloaded an avi file and You played it... under PCLinuxOS... and what happened? Did You got blue screen of death? Did You PCLinuxOS started to be sluggish and did it sent messages with spam to Your friends and family? C'Mon! I am a paranoid bugger but I know one thing... I was messing around with linux for 6 years now or something like that and never got myself infected. The viruses for linux are almost non-existing.

You have _possibly_ downloaded a windows virus. The only thing that it can affect is Your wine folder in Your home folder so delete it...

rm -Rf ~/.wine

as user from terminal will do it for You.

If You insist on scanning Your machine I wrote a avast installation howto it's here:

http://sparewotw.wordpress.com/2011/07/08/avast-antivirus-home-edition-on-pclinuxos-2011-6/

Install it as instructed. Scan Your system.

I really doubt that You caught a virus Dude.

Regards.

Andrzej