[svlug] tracking a errant web client

Karsten M. Self kmself at ix.netcom.com
Sun Sep 19 18:03:36 PDT 2004


on Fri, Sep 17, 2004 at 07:04:59AM -0700, Rick Kwan (kwanrj03 at comcast.net) wrote:
> Summary:  I'm trying to track down someone's errant web client; it
> may be someone I know whose machine is behaving strangely.
> 
> Details...
> 
> I'm looking at an Apache weekly "error_log" file.  Of 2000 entries
> in there, about 1000 come from the same client IP address.  Given
> the nature of the filenames requested, I suspect the client machine
> either belongs to someone I know or someone with similar professional
> interests (outside of computing).  (Or possibly, some crawler is
> going nuts.)
> 
> The web client seems to be doing permutations of interesting
> filenames, but looking for them in subdirectories named for certain
> organizations, including the site's and possibly the person's
> employer.
> 
> The simplistic approaches of pinging the client or telnet to port
> 80 do not get any response.
> 
> Any suggestions for figuring out what company or ISP this address
> belongs to?  If I can get that far, I might be able to narrow it
> down to the person's machine by discretely asking around.

If you want a packaged tool with a few built-in queries, try 'hinfo'
(available for Debian if not other distros) which will run a number of
remote lookups.

For the basics, 'dig' and 'whois' will return information on the
specific IP.

If you want to know upstream routing, 'mtr' (both gtk and curses
versions available) is an updated traceroute client.

Several DNS-based queries are possible, of which asn.routeviews.org is
one of the more interesting in that it provides the CIDR and ASN of the
IP in question.  Query is:

    host -t txt <reversed IP>.asn.routeviews.org

Google for "spam by asn" for more discussions (mostly by me).


You can always run nmap against the IP to find out what ports are open
and (maybe) what OS it's running.  Useful in identifying, say, RATed DSL
boxen:

    nmap -O <ip>


I've bundled a number of queries into a 'spam-lookup-all' shell script
in my SpamTools kit at:

    http://linuxmafia.com/~karsten/Download/SpamTools.tar.gz

...largely the above and a number of spam-related DNSBL lookups.



Peace.

-- 
Karsten M. Self <kmself at ix.netcom.com>        http://kmself.home.netcom.com/
 What Part of "Gestalt" don't you understand?
    I've been specializing in groups. Battling gangs for local charities,
    that kind of thing.
    - Princess Bride
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.svlug.org/archives/svlug/attachments/20040919/370ff5df/attachment.bin


More information about the svlug mailing list