jekyc / wig

WebApp Information Gatherer
BSD 2-Clause "Simplified" License
538 stars 141 forks source link

Change the DiscoverIP result to a IP set. #19

Closed cwll2009 closed 8 years ago

cwll2009 commented 8 years ago

Sometimes a domain have more than one ip address. In the file "results.py", class "Results" ,function "init" ,change the "site_info.ip" to a set. In the file "discovery.py",class "DiscoverIP" ,function "run",change line "ip = socket.gethostbyname(hostname)" to "ip = socket.gethostbyname_ex(hostname)[2]".

jekyc commented 8 years ago

Hi cwll2009,

Thanks for the suggestion.

I've implemented it in the latest series of commits. Could you please pull the latest version, and check it is working for you?

cwll2009 commented 8 years ago

Hi jekyc, I tried. It works.