cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: work around the hosts-file (system32/drivers/etc) Windows

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Tue, 13 Jan 2009 13:02:38 -0800

On Tue, Jan 13, 2009 at 08:52:57PM +0000, finn johansen wrote:
> >From time to time computers get infected by malware and the hosts-file gets
> hijacked - preventing the victim from downloading programs that could clean
> there computers. Is there a way - using cURL - to "navigate" to an URL
> circumventing the hosts-file. It would be convinient to direct a victim with an
> infected computer to use cURL to download relevant programs without trying to
> clean the hosts-file first...

curl uses the standard Windows resolving mechanisms by default, so if they
are configured to look at the hosts file first, then so will curl. It's
possible to rebuild curl using a modified version of the c-ares resolver
that ignores the hosts file that would accomplish what you want. But I
imagine it would be much easier to explain to a user how to delete the hosts
file than how to download a modified version of curl that might not even
be accessible because of a hacked hosts file.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2009-01-13