socket programming and port scans
millerch
simba at simba.eclipse.co.uk
Wed May 18 17:35:49 EDT 2005
Are you explicitly referencing the port for nmap, or is it a general
port scan?
The version of nmap I run only checks common ports unless a port range
is specified.
rbt wrote:
> I don't fully understand sockets, I just know enough to be dangerous.
> The below is not detected by nmap, but is affected by iptables or ipsec.
> Can anyone explain why that is?
>
> s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
> s.bind((ip_param, port_param))
> while 1:
> s.listen(5)
>
> I can connect to the socket server and even transmit data so I know it's
> there.
>
> Thanks,
> rbt
More information about the Python-list
mailing list