spike_hodge has asked for the wisdom of the Perl Monks concerning the following question:

I need to scan a list of IP's (our clients) to see if any are running an open proxy on ports 8080 8000 3128 or 80. We don't want to block them - just see who is offering open proxies. I sure there is a module that can do this but my knowledge of proxies is such that I don't really know what i am looking for. Ant comments would be welcome. Thanks

Replies are listed 'Best First'.
Re: Scan for Open Proxies
by grantm (Parson) on Apr 14, 2003 at 08:45 UTC

    Just subscribe to openproxies.com - they'll let you know soon enough :-)

    Or perhaps more helpfully... this section of the LWP Cookbook man page has an example that should help.

Re: Scan for Open Proxies
by bronto (Priest) on Apr 14, 2003 at 09:30 UTC

    You could use nmap to scan those ports, it will tell you if they are open and it could guess what's listening on that port, which is much more informative than just knowing that the port is open and something's listening on it

    Ciao!
    --bronto


    The very nature of Perl to be like natural language--inconsistant and full of dwim and special cases--makes it impossible to know it all without simply memorizing the documentation (which is not complete or totally correct anyway).
    --John M. Dlugosz
Re: Scan for Open Proxies
by DrManhattan (Chaplain) on Apr 14, 2003 at 10:53 UTC

    If you need a perl solution, check out pxytest. At my company, we use Nessus instead because it scales well.

    On a related note, you won't find many open proxies on those ports. About 95% of the proxies we find on our customers' computers are trojans on non standard ports. You can find about half of them on ports 555, 657, 889, 1180-1185, 11012, 25318, 25791. Most of the rest are Backdoor-AML infections that run proxies on random high ports.

    -Matt