wyx85

Q: Safari couldn't connect to google.com

I cannot connect to google with safari on my macbook but my iphone can with the same wifi. There is the result of ping from Network Utility:

 

PING www.google.com (37.232.201.38): 56 data bytes

64 bytes from 37.232.201.38: icmp_seq=0 ttl=110 time=278.511 ms

64 bytes from 37.232.201.38: icmp_seq=1 ttl=110 time=254.570 ms

64 bytes from 37.232.201.38: icmp_seq=2 ttl=110 time=264.972 ms

64 bytes from 37.232.201.38: icmp_seq=3 ttl=110 time=256.143 ms

64 bytes from 37.232.201.38: icmp_seq=4 ttl=110 time=261.437 ms

64 bytes from 37.232.201.38: icmp_seq=5 ttl=110 time=416.728 ms

64 bytes from 37.232.201.38: icmp_seq=6 ttl=110 time=256.237 ms

64 bytes from 37.232.201.38: icmp_seq=7 ttl=110 time=361.203 ms

64 bytes from 37.232.201.38: icmp_seq=8 ttl=110 time=256.802 ms

64 bytes from 37.232.201.38: icmp_seq=9 ttl=110 time=408.243 ms

 

--- www.google.com ping statistics ---

10 packets transmitted, 10 packets received, 0.0% packet loss

round-trip min/avg/max/stddev = 254.570/301.485/416.728/63.254 ms

 

 

I've found some similar problems from previous years of discussion which says the hosts is modified by some trojan. I did everything said in the thread (https://discussions.apple.com/thread/3245104?start=30&tstart=0) however here is my problem:

1) There's nothing in my hosts.

2) I did what the thread says and replaced the hosts.

3) Still it doesn't work.

4) I do remember there was a warning saying that I need to upgrade my flash a few days ago.

 

Please help! Thanks!

MacBook Pro with Retina display, OS X Mavericks (10.9.2)

Posted on Feb 28, 2014 10:28 AM

Close

Q: Safari couldn't connect to google.com

  • All replies
  • Helpful answers

Previous Page 2
  • by wyx85,

    wyx85 wyx85 Feb 28, 2014 8:51 PM in response to Linc Davis
    Level 1 (0 points)
    Feb 28, 2014 8:51 PM in response to Linc Davis

    I just change the DNS of my router to 8.8.8.8 and 8.8.4.4 and it works again. Don't know if the problem is going to rebounce. Is the problem solved?

    Sorry I don't remember the website that asked me to update my flash.

  • by Linc Davis,

    Linc Davis Linc Davis Feb 28, 2014 9:27 PM in response to wyx85
    Level 10 (208,037 points)
    Applications
    Feb 28, 2014 9:27 PM in response to wyx85

    I think you ran some kind of a Trojan that changed the DNS settings. Whether that's all it did, I can't be sure.

  • by wyx85,

    wyx85 wyx85 Feb 28, 2014 9:54 PM in response to Linc Davis
    Level 1 (0 points)
    Feb 28, 2014 9:54 PM in response to Linc Davis

    Is there a way to fix this?

  • by Linc Davis,Helpful

    Linc Davis Linc Davis Feb 28, 2014 10:38 PM in response to wyx85
    Level 10 (208,037 points)
    Applications
    Feb 28, 2014 10:38 PM in response to wyx85

    You can either leave things as they are and hope for the best, or do as below.

    The only way you can be sure that the computer is not compromised is to erase at least the startup volume and restore it to something like the status quo ante. The easiest approach is to recover your entire system from a backup that predates the attack. Obviously, that's only practical if you know when the attack took place, and it was recent, and you have such a backup. You will lose all changes to your data, such as email, that were made after the time of the snapshot. Some of those changes can be restored from a later backup.

    If you don't know when the attack happened, or if it was too long ago for a complete rollback to be feasible, then you should erase and install OS X. If you don't already have at least two complete, independent backups of your data, then you must make them first. One backup is not enough to be safe.

    When you reboot after the installation, you'll be prompted to go through the initial setup process for a new computer. That’s when you transfer the data from one of your backups in Setup Assistant.

       

    Select only users in the Setup Assistant dialog — not Applications, Other files and folders, or Computer & Network Settings. Don't transfer the Guest account, if it was enabled.

     

    Reinstall your third-party software from original media or fresh downloads — not from a backup, which may be contaminated.

     

    That being done, change all Internet passwords and check all financial accounts for unauthorized transactions. Do this after your system has been secured, not before.
  • by wyx85,

    wyx85 wyx85 Mar 1, 2014 6:13 AM in response to Linc Davis
    Level 1 (0 points)
    Mar 1, 2014 6:13 AM in response to Linc Davis

    Unfortunately I don't have any backup. I guess I'll cross my fingers and hope for the best. BTW is there any anti-attacking/virus/malware I can use to fix/make sure my system is secure?

  • by Linc Davis,Helpful

    Linc Davis Linc Davis Mar 1, 2014 6:28 AM in response to wyx85
    Level 10 (208,037 points)
    Applications
    Mar 1, 2014 6:28 AM in response to wyx85
    1. This is a comment on what you should and should not do to protect yourself from malicious software ("malware") that circulates on the Internet. It does not apply to software, such as keystroke loggers, that may be installed deliberately by an intruder who has hands-on access to your computer, or who has been able to log in to it remotely. That threat is in a different category, and there's no easy way to defend against it. If you have reason to suspect that you're the target of such an attack, you need expert help.
      
    If you find this comment too long or too technical, read only sections 5, 6, and 10.
      
    OS X now implements three layers of built-in protection specifically against malware, not counting runtime protections such as execute disable, sandboxing, system library randomization, and address space layout randomization that may also guard against other kinds of exploits.

    2. All versions of OS X since 10.6.7 have been able to detect known Mac malware in downloaded files, and to block insecure web plugins. This feature is transparent to the user. Internally Apple calls it "XProtect."
    The malware recognition database used by XProtect is automatically updated; however, you shouldn't rely on it, because the attackers are always at least a day ahead of the defenders.
       
    The following caveats apply to XProtect:
    • It can be bypassed by some third-party networking software, such as BitTorrent clients and Java applets.
    • It only applies to software downloaded from the network. Software installed from a CD or other media is not checked.
    As new versions of OS X are released, it's not clear whether Apple will indefinitely continue to maintain the XProtect database of older versions such as 10.6. The security of obsolete system versions may eventually be degraded. Security updates to the code of obsolete systems will stop being released at some point, and that may leave them open to other kinds of attack besides malware.
      
    3. Starting with OS X 10.7.5, there has been a second layer of built-in malware protection, designated "Gatekeeper" by Apple. By default, applications and Installer packages downloaded from the network will only run if they're digitally signed by a developer with a certificate issued by Apple. Software certified in this way hasn't necessarily been tested by Apple, but you can be reasonably sure that it hasn't been modified by anyone other than the developer. His identity is known to Apple, so he could be held legally responsible if he distributed malware. That may not mean much if the developer lives in a country with a weak legal system (see below.)
       
    Gatekeeper doesn't depend on a database of known malware. It has, however, the same limitations as XProtect, and in addition the following:
    • It can easily be disabled or overridden by the user.
    • A malware attacker could get control of a code-signing certificate under false pretenses, or could simply ignore the consequences of distributing codesigned malware.
    • An App Store developer could find a way to bypass Apple's oversight, or the oversight could fail due to human error.
    For the reasons given above, App Store products, and other applications recognized by Gatekeeper as signed, are safer than others, but they can't be considered absolutely safe. "Sandboxed" applications may prompt for access to private data, such as your contacts, or for access to the network. Think before granting that access. Sandboxing security is based on user input. Never click through any request for authorization without thinking.
           
    4. Starting with OS X 10.8.3, a third layer of protection has been added: a "Malware Removal Tool" (MRT). MRT runs automatically in the background when you update the OS. It checks for, and removes, malware that may have evaded the other protections via a Java exploit (see below.) MRT also runs when you install or update the Apple-supplied Java runtime (but not the Oracle runtime.) Like XProtect, MRT is effective against known threats, but not against unknown ones. It notifies you if it finds malware, but otherwise there's no user interface to MRT.
     
    5. The built-in security features of OS X reduce the risk of malware attack, but they're not absolute protection. The first and best line of defense is always going to be your own intelligence. With the possible exception of Java exploits, all known malware circulating on the Internet that affects a fully-updated installation of OS X 10.6 or later takes the form of so-called "Trojan horses," which can only have an effect if the victim is duped into running them. The threat therefore amounts to a battle of wits between you and Internet criminals. If you're smarter than they think you are, you'll win. That means, in practice, that you always stay within a safe harbor of computing practices. How do you know when you're leaving the safe harbor? Below are some red flags that indicate danger.
      
    Software from an untrustworthy source
    • Software of any kind is distributed via BitTorrent or Usenet.
    • Software with a corporate brand, such as Adobe Flash Player, doesn't come directly from the developer’s website.
    • Rogue websites such as Softonic and CNET Download distribute free applications that have been packaged in a superfluous "installer."
    • The software is advertised by means of spam or intrusive web popups.
    Software that is plainly illegal or does something illegal
    • Software that you would otherwise have to pay for is "cracked" or "free."
    • An application helps you to infringe copyright, for instance by circumventing the copy protection on commercial software, or saving streamed media for reuse without permission.
    Conditional or unsolicited offers from strangers
    • A telephone caller or a web page tells you that you have a “virus” and offers to help you remove it. (Some reputable websites did legitimately warn visitors who were infected with the "DNSChanger" malware. That exception to this rule no longer applies.)
    • A web site offers free content such as video or music, but to use it you must install a “codec,” “plug-in,” "player," "downloader," "extractor," or “certificate” that comes from that same site, or an unknown one.
    • You win a prize in a contest you never entered.
    • Someone on a message board such as this one is eager to help you, but only if you download an application of his choosing.
    • A "FREE WI-FI !!!" network advertises itself in a public place such as an airport, but is not provided by the management.
    Unexpected events
    • You open what looks like a document and get an alert that it's "an application downloaded from the Internet." Click Cancel and delete the file or message.
    • An application does something you don't expect, such as asking for permission to access your contacts, your location, or the Internet for no obvious reason.
    • Software is attached to email that you didn't request, even if it comes (or seems to come) from someone you trust.
    I don't say that leaving the safe harbor just once will necessarily result in disaster, but making a habit of it will weaken your defenses against malware attack. Any of the above scenarios should, at the very least, make you uncomfortable.
      
    6. Java on the Web (not to be confused with JavaScript, to which it's not related, despite the similarity of the names) is a weak point in the security of any system. Java is, among other things, a platform for running complex applications in a web page, on the client. That was always a bad idea, and Java's developers have proven themselves incapable of implementing it without also creating a portal for malware to enter. Past Java exploits are the closest thing there has ever been to a Windows-style virus affecting OS X. Merely loading a page with malicious Java content could be harmful.
      
    Fortunately, client-side Java on the Web is obsolete and mostly extinct. Only a few outmoded sites still use it. Try to hasten the process of extinction by avoiding those sites, if you have a choice. Forget about playing games or other non-essential uses of Java.
       
    Java is not included in OS X 10.7 and later. Discrete Java installers are distributed by Apple and by Oracle (the developer of Java.) Don't use either one unless you need it. Most people don't. If Java is installed, disable itnot JavaScript — in your browsers.
       
    Regardless of version, experience has shown that Java on the Web can't be trusted. If you must use a Java applet for a task on a specific site, enable Java only for that site in Safari. Never enable Java for a public website that carries third-party advertising. Use it only on well-known, login-protected, secure websites without ads. In Safari 6 or later, you'll see a lock icon in the address bar with the abbreviation "https" when visiting a secure site.

    Stay within the safe harbor, and you’ll be as safe from malware as you can practically be. The rest of this comment concerns what you should not do to protect yourself.

    7. Never install any commercial "anti-virus" or "Internet security" products for the Mac, as they all do more harm than good, if they do any good at all. If you need to be able to detect Windows malware in your files, use one of the free security apps in the Mac App Store — nothing else.
      
    Why shouldn't you use commercial "anti-virus" products?
    • To recognize malware, the software depends on a database of known threats, which is always at least a day out of date. New threats are emerging on a daily basis. Research has shown that most successful attacks are "zero-day" — that is, previously unknown. Recognition-based malware scanners do not defend against such attacks.
    • Their design is predicated on the nonexistent threat that malware may be injected at any time, anywhere in the file system. Malware is downloaded from the network; it doesn't materialize from nowhere.
    • In order to meet that nonexistent threat, the software modifies or duplicates low-level functions of the operating system, which is a waste of resources and a common cause of instability, bugs, and poor performance.
    • By modifying the operating system, the software itself may create weaknesses that could be exploited by malware attackers.
    8. An anti-malware product from the App Store, such as "ClamXav," has the same drawback as the commercial suites of being always out of date, but it does not inject code into the operating system. That doesn't mean it's entirely harmless. It may report email messages that have "phishing" links in the body, or Windows malware in attachments, as infected files, and offer to delete or move them. Doing so will corrupt the Mail database. The messages should be deleted from within the Mail application.
        
    An anti-virus app is not needed, and should not be relied upon, for protection against OS X malware. It's useful only for detecting Windows malware, and even for that use it's not completely effective. Windows malware can't harm you directly (unless, of course, you use Windows.) Just don't pass it on to anyone else.
        
    A Windows malware attachment in email is usually easy to recognize. The file name will often be targeted at people who aren't very bright; for example:
      
    ♥♥♥♥♥♥♥♥♥♥♥♥♥♥!!!!!!!H0TBABEZ4U!!!!!!!.AVI♥♥♥♥♥♥♥♥♥♥♥♥♥♥.exe
       
    Anti-virus software may be able to tell you which particular trojan it is, but do you really care? In practice, there's seldom a reason to use the software unless an institutional policy requires it. Windows malware is so widespread that you should assume it's in every unknown email attachment until proven otherwise.
      
    The ClamXav developer won't try to "upsell" you to a paid version of the product. Other developers may do that. Don't be upsold. For one thing, you should not pay to protect Windows users from the consequences of their choice of computing platform. For another, a paid upgrade from a free app will probably have all the disadvantages mentioned in section 7.
      
    9. It seems to be a common belief that the built-in Application Firewall acts as a barrier to infection, or prevents malware from functioning. It does neither. It blocks inbound connections to certain network services you're running, such as file sharing. It's disabled by default and you should leave it that way if you're behind a router on a private home or office network. Activate it only when you're on an untrusted network, for instance a public Wi-Fi hotspot, where you don't want to provide services. Disable any services you don't use in the Sharing preference pane. All are disabled by default.
        
    10. As a Mac user you don't have to live in fear that your computer may be infected every time you install software, read email, or visit a web page. But neither should you assume that you will always be safe from exploitation, no matter what you do. The greatest harm done by security software is precisely its selling point: it makes people feel safe. They may then feel safe enough to take risks from which the software doesn't protect them. "Hmmmm, this torrent is a crack of that new game I want. I think I'll download it. It could be a trojan, but the antivirus will warn me if it is." Then they wonder why their Mac is so slow all of a sudden. It's slow because it's running flat out mining bitcoins for a hacker who has already sold their credit card number and banking passwords to a criminal gang. Maybe a week later the antivirus does warn them, but what good does that do?
        
    Nothing can lessen the need for safe computing practices.
  • by thomas_r.,

    thomas_r. thomas_r. Mar 1, 2014 4:32 PM in response to wyx85
    Level 7 (30,944 points)
    Mac OS X
    Mar 1, 2014 4:32 PM in response to wyx85

    The fact that the DNS numbers shown in your Network preferences were in gray means that they were the numbers in use by your router. They were not set directly on your Mac by any kind of malware or malicious individual, or they would have been in black text. If, as you say, you changed the DNS settings in your router and that fixed the problem, that's further evidence that the issue is in your router itself, and not the Mac.

     

    This is good news for your Mac, but could be bad news for your router. Unfortunately, some popular routers have serious vulnerability issues and can be easily hacked. In particular, many Linksys routers were found to be vulnerable to attack by a worm called "The Moon" last month. (If you're using a Linksys router, see this article for details on how to fix the issue.) It would probably be a good idea to reset it to factory settings, then set it back up again. Apply any available firmware updates. Make sure that it has any remote administration features disabled, and make sure to use WPA2 encryption on the wifi network. You'll need to consult the documentation for your router if you're not sure how to do any of this.

  • by Rodney2009,

    Rodney2009 Rodney2009 Mar 1, 2014 6:46 PM in response to wyx85
    Level 1 (0 points)
    Mar 1, 2014 6:46 PM in response to wyx85

    I am now having issues with Safari I had to reinstall CD and did not erase my stuff.

    when I went on Safari it opens but wont do anything else like log me out.

  • by MadMacs0,

    MadMacs0 MadMacs0 Mar 1, 2014 6:53 PM in response to Rodney2009
    Level 5 (4,801 points)
    Mar 1, 2014 6:53 PM in response to Rodney2009

    Rodney2009 wrote:

     

    I am now having issues with Safari

    Please start a new topic unless you know that your router has been hacked, which appears to be the issue here. Also try to explain your situation with more detail and clarity. Your profile doesn't even list a computer so you need to tell us that along with the version of OS X you are using.

     

    Otherwise you won't get the help you need. That's just the way this Forum works.

  • by Rodney2009,

    Rodney2009 Rodney2009 Mar 2, 2014 10:50 AM in response to MadMacs0
    Level 1 (0 points)
    Mar 2, 2014 10:50 AM in response to MadMacs0

    if ur not admin on here dont tell me what to do thanks and if U dont like my words on here dont reply.

  • by thomas_r.,

    thomas_r. thomas_r. Mar 2, 2014 11:07 AM in response to Rodney2009
    Level 7 (30,944 points)
    Mac OS X
    Mar 2, 2014 11:07 AM in response to Rodney2009

    Rodney2009 wrote:

     

    if ur not admin on here dont tell me what to do thanks and if U dont like my words on here dont reply.

     

    MadMacs0 is trying to help you get help. Your question has nothing whatsoever to do with this topic, thus, by posting it here, you're probably not going to get any help. The attitude you display in your response to MadMacs0 further reduces the chances of you getting assistance, since that's likely to turn off any of the regulars here who see it.

     

    Follow his advice and post your own topic.

  • by MadMacs0,

    MadMacs0 MadMacs0 Mar 2, 2014 5:21 PM in response to Rodney2009
    Level 5 (4,801 points)
    Mar 2, 2014 5:21 PM in response to Rodney2009

    Huh?

     

    This is an unmoderated forum run almost exclusively by users like you and I. Apple is our host who provides us with Community etiquette, but only shows up when summoned when there's a breach of the Terms of Service we all signed up to. We are all free to say whatever we want, to whoever is here as long as we abide by those terms.

     

    My comment to you was intended in the spirit of the first item, which states in part...

    Apple Support Communities is here to help people use Apple products and technologies more effectively.

    Note that I started it with "Please."

     

    Your comment back, on the other hand, violates the second item, IMHO:

    Be polite. Everyone should feel comfortable reading Submissions and participating in discussions. Apple will not tolerate flames or other inappropriate statements...

    There are only four other people involved in this discussion, chances are extremely high that nobody else will ever see it and none of those here seem to have any answers for you.

     

    Have a nice day.

  • by wyx85,

    wyx85 wyx85 Mar 3, 2014 5:11 AM in response to Linc Davis
    Level 1 (0 points)
    Mar 3, 2014 5:11 AM in response to Linc Davis

    It just happened again. I don't know if it's something on my mac or something on the router. The primary DNS is changed. If I download Mavericks from APP store, will I lose everything on my mac?

  • by thomas_r.,

    thomas_r. thomas_r. Mar 3, 2014 5:26 AM in response to wyx85
    Level 7 (30,944 points)
    Mac OS X
    Mar 3, 2014 5:26 AM in response to wyx85

    Downloading Mavericks will not fix this problem. If you choose to do that at some point, it should not cause you to lose everything (though you would be wise to back up just in case). However, I would not recommend making such changes until the problem is resolved.

     

    Did you see my recommendations regarding your wireless router?

  • by Linc Davis,

    Linc Davis Linc Davis Mar 3, 2014 10:05 AM in response to wyx85
    Level 10 (208,037 points)
    Applications
    Mar 3, 2014 10:05 AM in response to wyx85

    Restore the router to its factory settings. Change the settings so that it uses the DNS servers supplied by your ISP, and so that it cannot be administered remotely (from the WAN port.) For the wireless network, use WPA 2 security, and choose a random network password of at least 10 upper- and lower-case letters and digits. Any password that you can remember is too weak.

Previous Page 2