Nmap Development mailing list archives

ioctl issue scanning /24 networks


From: Nicolas Greneche <nicolas.greneche () univ-paris13 fr>
Date: Fri, 06 Jun 2014 11:25:27 +0200

Hello,

I use python-nmap to scan /24 networks sequentially (loop on a networks list). Sometimes it works well : every /24 bloc is scanned successfully. Sometimes the nmap command forked by the python API never exit. The nmap command is the following :

nmap -oX - X.X.X.X/24 -O -sV

When I attach an strace on the process I get those messages :

epoll_wait(4, {}, 128, 50)              = 0
ioctl(3, TIOCGPGRP, [0]) = -1 ENOTTY (Inappropriate ioctl for device)
epoll_wait(4, {}, 128, 50)              = 0
ioctl(3, TIOCGPGRP, [0]) = -1 ENOTTY (Inappropriate ioctl for device)
epoll_wait(4, {}, 128, 50)              = 0
ioctl(3, TIOCGPGRP, [0]) = -1 ENOTTY (Inappropriate ioctl for device)

Those messages loop forever. Nmap process never exit.

Do you have any clue about this problem ?

My nmap version :

# /usr/local/bin/nmap -V

Nmap version 6.46 ( http://nmap.org )
Platform: x86_64-unknown-linux-gnu
Compiled with: nmap-liblua-5.2.3 openssl-1.0.1e libpcre-8.30 libpcap-1.3.0 nmap-libdnet-1.12 ipv6
Compiled without:
Available nsock engines: epoll poll select

My python version :

# python3 -V
Python 3.2.3

And my python-nmap API is current version 0.3.3
http://xael.org/norman/python/python-nmap/

Regards,

--
Nicolas Grenèche

URL : http://blog.etcshadow.fr
Tel : 01 49 40 40 35
Fax : 01 48 22 81 50
_______________________________________________
Sent through the dev mailing list
http://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/


Current thread: