How to get rid of a virus

everytime I open my Safari a new window is opened with the next announcement: Your computer could be at risk from harmful viruses and malware. These programs are often installed on your computer without your knowledge whilst browsing adult or torrent related websites.


It makes noise also and I can't get rid of it..User uploaded file

I have mac-book air, OS X Yosemite Version 10.10.5 (I searched for updates and installed all of them)
I also attached a photo of the announcement.

I don't know if it's relevant but I have parallel windows.
when did it start? I tried to watch a movie few days ago and the site told me that I have to install something in order to watch it, I was stupid and did it and since then the mac got crazy.



can you please help me???

thanks,

Snir.

MacBook Air (13-inch Mid 2012), OS X Yosemite (10.10.5)

Posted on Jan 28, 2016 1:05 AM

Reply
5 replies

Jan 28, 2016 1:25 AM in response to snirazln

Use Malwarebytes Anti-Malware: http://www.adwaremedic.com/index.php

You can also remove the adware manually using the steps provided by Apple: https://support.apple.com/en-us/HT203987

After that, make sure your default search engine is set to the one you always use. To do so, Open Safari - Preferences - Search.

Go to Safari menu (At the very top right side of your screen next to Apple icon), choose "Quit Safari"

press "Shift" button and while holding this button on your keyboard single click on the Safari icon on your Dock.

Open Safari - Preferences - Privacy - Remove All Website Data.

Also, I believe it would be a good idea to install AdBlock.

Feb 7, 2016 2:35 AM in response to snirazln

This actually is not due to any adware or malware installed on your computer, it's just a scam website. To get Safari to stop loading it, just close that tab. If it asks you to confirm leaving the page, do so... don't allow it to bully you into staying on the page.


If the problem continues later, and Safari keeps trying to open the same tabs every time it opens, quit Safari, then go to the Finder and choose Go to Folder from the Go menu. In the window that opens, paste the following path:


~/Library/Saved Application State/


Now click the Go button. Inside the folder that opens, find the folder named com.apple.Safari.savedState. Drag that to the trash.


Next, go to the following folder:


~/Library/Safari/


In that folder, drag the LastSession.plist file to the trash.

Jan 28, 2016 7:02 AM in response to snirazln

As Safari keeps loading it -- make sure it is not in your top sites. Edit top sites - remove - will add it to a list of sites that should never be automatically added to top sites.


If you just use the option to clear top sites - it will reload apples defaults -- so it is better practice to keep an eye on them and remove the ones you do not want.

Jan 28, 2016 9:39 AM in response to snirazln

Don't use any kind of "anti-virus" or "anti-malware" product on a Mac. There is never a need for it, and relying on it for protection makes you more vulnerable to attack, not less.

Your problem is most likely not caused by malware. It's a Web scam that only affects the browser, and only temporarily. There are several ways to recover.

1. The easiest thing to do is to force quit the browser. Relaunch it by holding down the shift key and clicking its icon in the Dock, the LaunchPad, or the Applications folder.

You will lose the state of other open tabs and windows. Either Step 2 or Step 3 may enable you to keep that state information. If those steps don't work, fall back to Step 1.

2. Press the key combination command-W to close the tab or window. A huge box will pop up. Press the return key and both the box and the page may close. If that doesn't happen, press and hold command-W. You may hear repeating alert sounds. While holding the keys, click the OK button in the popup. A different popup may appear, which you can cancel out of as usual.

3. From the Safari menu bar, select

Safari ▹ Preferences... ▹ Security

and uncheck the box marked Enable JavaScript.

After closing the malicious page, select from the menu bar

Safari Preferences... Privacy Remove All Website Data

to get rid of any cookies or other data left by the server. Open the Downloads folder and delete anything you don't recognize.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to get rid of a virus

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