know if someone ping me

Gerhard Häring gerhard.nospam at
Thu Aug 23 09:38:27 CEST 2001

On Wed, 22 Aug 2001 22:59:17 -0700 (PDT), noprianto <opennopri at> wrote:
>Hello all,
>How do i know if someone ping my system ?

Hi "noprianto"!

This is a strange question for comp.lang.python.

Python has no concept of a ping, but this isn't comp.lang.c++ but
comp.lang.python, so I am supposed to be more friendly ;-)

I've lost my crystal ball, so I can't know which operating system you want a
solution for.

I'll just assume that you use Linux or *BSD. These OS have something called
netfilter/ipchains/... You can configure these to log ICMP (ping) requests to
the syslog. With a Python script, you could continuously read from the log file
and do whatever pleases you if you find an ICMP request.


PS: It's considered nice to use a realname on Usenet.

PPS: Could it be that a cracker group called "Python" was recently founded.
I've seen some strange posts here recently ...
mail:   gerhard <at> bigfoot <dot> de       registered Linux user #64239
web:    public key at homepage
public key fingerprint: DEC1 1D02 5743 1159 CD20  A4B6 7B22 6575 86AB 43C0
reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))

More information about the Python-list mailing list