Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Windows 7 hosts file


  • Please log in to reply
4 replies to this topic

#1 sumorunner

sumorunner

  • Members
  • 3 posts
  • OFFLINE
  •  
  • Local time:08:48 PM

Posted 19 August 2011 - 10:54 AM

I've got a browser search redirect imbedded somewhere in my hosts configuration but can't find the file to edit it out and hijackthis cannot fix it. The c:/windows/system32/etc/hosts is merely a sample and it's not buried in the registry. Where is the file that contains this rubbish?

Hosts: 64.27.9.109 www.google.com.
Hosts: 64.27.9.109 google.com.
Hosts: 64.27.9.109 google.com.au.
Hosts: 64.27.9.109 www.google.com.au.
... many more

BC AdBot (Login to Remove)

 


#2 Jacee

Jacee

    Bleeping around


  • Malware Response Team
  • 3,716 posts
  • OFFLINE
  •  
  • Gender:Female
  • Local time:06:48 PM

Posted 19 August 2011 - 11:37 AM

Copy and paste these lines in Note pad.

@Echo on
pushd\windows\system32\drivers\etc
attrib -h -s -r hosts
echo 127.0.0.1 localhost>HOSTS
attrib +r +h +s hosts
popd
ipconfig /release
ipconfig /renew
ipconfig /flushdns
netsh winsock reset all
netsh int ip reset all
shutdown -r -t 1
del %0


Save as flush.bat to your desktop.
Right click on the flush.bat file to run it as Administrator. Your computer will reboot itself.

If that doesn't work, then post a new topic in this forum --> Am I infected? What do I do? http://www.bleepingcomputer.com/forums/forum103.html

MS_MVP.gif
MS MVP Windows-Security 2006-2016
Member of UNITE, the Unified Network of Instructors and Trusted Eliminators

Admin PC Pitstop


#3 sumorunner

sumorunner
  • Topic Starter

  • Members
  • 3 posts
  • OFFLINE
  •  
  • Local time:08:48 PM

Posted 19 August 2011 - 12:48 PM

Thanks.

By the time you posted that I had figured most of it out already. After 40 years in the biz you'd think it would have been a snap for me, but the SOBs got me with a beginners trick. I just didn't look at the scroll indicator.

The hosts file looked OK when it was opened in an editor but they put about 200 blank lines before their aliases, so one doesn't see the redirects unless he scrolls way down to the bottom of the file. Simple thing to get rid of after that.

Others be warned, it's important to return the attributes to +R +S +H when done.

#4 Ghillie3

Ghillie3

  • Members
  • 10 posts
  • OFFLINE
  •  
  • Local time:08:48 PM

Posted 09 October 2011 - 11:34 AM

how did u fix it

#5 coxchris

coxchris

  • Members
  • 1,151 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Atwater
  • Local time:06:48 PM

Posted 09 October 2011 - 10:05 PM

Ghillie3

a batch file is a file that has several commands in it Its like a run once command


that batch file will reset host file, release your ip, renew your ip and flushes your DNS caches and reset your window catalog files and restarts

AA in Computer Networking Technology

BS in Information Technology 

Comptia A+, Project+, L+

Renewable:  N+,S+

CIW Web Design Specialist, JavaScript Specialist,  Database Design Specialist 

LPIC-1, SUSE 





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users