foxglovesec / Potato

685 stars 166 forks source link

spoof_host not fully works #4

Open jeky-- opened 8 years ago

jeky-- commented 8 years ago

Hi, I'm experticing some problem because my Windows 10 installation is part of a domain with a dns prefix like contoso.corp.com. In this case wpad is "wpad.contoso.corp.com". The spoofing part is working perfectly, but when something try to get the configuration file (wpad.dat) the requested URL is http://wpad.contoso.corp.com/wpad.dat and not http://127.0.0.1/wpad.dat so Potato is not replying with a config file but with an empty file. I guess that the problem is on line #136 of Program.cs <<else if (request.Url.AbsoluteUri.ToString().Equals("http://127.0.0.1/wpad.dat") || request.Url.AbsoluteUri.ToString().Equals("http://wpad/wpad.dat"))>> We sould probably add the case with the hostname given with -spoof_host ! At the moment I've tried to open the progect on my Vistual Studio 2005 but I'me having problems with Imports (c:\Microsotf.CSharp.targets not found). I'll try to solve my problems, but I think that many people will enjoin an official fix!

Thank you so much for your beautifull work ! Paolo