Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

empty the trash

Hi everybody and thanks in advance..!

Found an adware ("Switchyardportention") and tried to delete it, but when I try to empty the trash (through the Terminal app) I'm asked for a password.

(Already tried to unblock folder and files, but had no results)

Can anybody help me in forcing this password, or is there any other way to bypass it, or again anyother way to force-force the trash?


Thanks for your help.


I'm using a MacBook Pro 13" 2009 - Mac Os 10.7.5 -


Daniela

Posted on Aug 31, 2015 7:54 AM

Reply
Question marked as Best reply

Posted on Aug 31, 2015 7:58 AM

Remove the 'sudo' from the front of the command. If doing so produces a permissions error message, put it back and type your password normally; nothing will be displayed onscreen in response.


If you get any other error messages, post them here.


(132646)

4 replies

Aug 31, 2015 8:24 AM in response to dandesp

Never use the shell (Terminal) to empty the Trash. It sounds like you're trying to remove "VSearch."

You may have installed one or more variants of the "VSearch" ad-injection malware. Follow Apple Support's instructions to remove it.

If you have trouble following those instructions, see below.

Malware is always changing to get around the defenses against it. This procedure works as of now, as far as I know. It may not work in the future. Anyone finding this comment a few days or more after it was posted should look for a more recent discussion, or start a new one.

The VSearch malware tries to hide itself by varying the names of the files it installs. To remove it, you must first identify the naming pattern.

Triple-click the line below on this page to select it, then copy the text to the Clipboard by pressing the key combination command-C:

/Library/LaunchDaemons

In the Finder, select

Go Go to Folder...

from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.

A folder named "LaunchDaemons" may open. Look inside it for two files with names of the form

com.something.daemon.plist

and

com.something.helper.plist

Here something is a variable string of characters, which can be different in each VSearch infection. So far it has always been an alphanumeric string without punctuation, such as "cloud," "dot," "highway," "submarine," or "trusteddownloads." Sometimes it's a meaningless string such as "e8dec5ae7fc75c28" rather than a word. Sometimes the string is "apple," and then you must be especially careful not to delete the wrong files, because many built-in OS X files have similar names.

You could have more than one copy of the malware, with different values of something.

If you find these files, leave the LaunchDaemons folder open, and open the following folder in the same way:

/Library/LaunchAgents

In this folder, there may be a file named

com.something.agent.plist

where the string something is the same as before.

If you feel confident that you've identified the above files, back up all data, then drag just those three files—nothing else—to the Trash. You may be prompted for your administrator login password. Close the Finder windows and restart the computer.

Don't delete the "LaunchAgents" or "LaunchDaemons" folder or anything else inside either one.

The malware is now permanently inactivated, as long as you never reinstall it. You can stop here if you like, or you can remove two remaining components for the sake of completeness.

Open this folder:

/Library/Application Support

If it has a subfolder named just

something

where something is the same string you saw before, drag that subfolder to the Trash and close the window.

Don't delete the "Application Support" folder or anything else inside it.

Finally, in this folder:

/System/Library/Frameworks

there may be an item named exactly

v.framework

or else an item named

something.framework

Again, something is the same string as before.

This item is actually a folder, though it has a different icon than usual. Drag it to the Trash and close the window.

Don't delete the "Frameworks" folder or anything else inside it.

If you didn't find the files or you're not sure about the identification, post what you found.

If in doubt, or if you have no backups, change nothing at all.

The trouble may have started when you downloaded and ran an application called "MPlayerX." That's the name of a legitimate free movie player, but the name is also used fraudulently to distribute VSearch. If there is an item with that name in the Applications folder, delete it. I don't recommend that you install the genuine "MPlayerX," because it's hosted on the rogue "SourceForge" website and is bundled with other malware.

This trojan is often found on illegal websites that traffic in pirated content such as movies. If you, or anyone else who uses the computer, visit such sites and follow prompts to install software, you can expect more of the same, and worse, to follow. Never install any software that you downloaded from a bittorrent, or that was downloaded by someone else from an unknown source.

In the Security & Privacy pane of System Preferences, select the General tab. The radio button marked Anywhere should not be selected. If it is, click the lock icon to unlock the settings, then select one of the other buttons. After that, don't ignore a warning that you are about to run or install an application from an unknown developer.

Then, still in System Preferences, open the App Store or Software Update pane and check the box marked

Install system data files and security updates (OS X 10.10 or later)

or

Download updates automatically (OS X 10.9 or earlier)

if it's not already checked.

Sep 1, 2015 1:18 AM in response to Linc Davis

Sorry for my late answer (due to Milan time/office zone) 🙂 Thank you very much! following your instruction I found other files with the same name here and there and deleted them.

I downloaded the malware while trying to quickly update a video helper plug-in, therefore probably clicked a wrong button...

I'll never do it again!!


Thank you again.


Daniela

Sep 1, 2015 1:25 AM in response to Niel

Thanks! I did it! (this morning though, Milan time zone..)

Finally I could get rid of the folder in the trash.

I opened (with the Inspector) the folder/subfolders and files and changed their privilege, closed them and then did what you suggested and now the trash is empty...


Thank you again.



Daniela

empty the trash

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.