Giter Site home page Giter Site logo

libzmap's People

Contributors

gushitong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

libzmap's Issues

AttributeError: 'NoneType' object has no attribute 'poll'

from libzmap import ZmapProcess
proc = ZmapProcess(targets='101.200.188.97/20', options='-B 100M', probe_module='icmp_echoscan')
proc.stop()
Traceback (most recent call last):
File "", line 1, in
File "build/bdist.linux-x86_64/egg/libzmap/libzmap.py", line 162, in stop
AttributeError: 'NoneType' object has no attribute 'poll'

Use case yields no result

Hi,

When I tried running your use case example on Centos 7 with python 2.7 I got no results or errors. Zmap is however running without issue from the Linux command line.

(venv) [root@svr01/scripts]# zmap 192.168.96.0/24 -B100M -M icmp_echoscan -qv0 -fsaddr,ttl
saddr,ttl
192.168.96.10,254
192.168.96.12,254
192.168.96.11,254

(venv) [root@svr01/scripts]# ipython
Python 2.7.5 (default, Aug 4 2017, 00:39:18)
Type "copyright", "credits" or "license" for more information.

IPython 5.6.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
In [1]:
In [1]: from libzmap import ZmapProcess
In [2]: proc = ZmapProcess(targets='192.168.96.0/24', options='-B 100M', probe_module='icmp_echoscan')
In [3]: for obj in proc.run():
...: print vars(obj)
...:
In [4]:
In [4]: proc.state
Out[4]: 4
In [6]: proc.is_running
Out[6]: <bound method ZmapProcess.is_running of <ZmapProcess(Thread-356, initial)>>
In [7]: proc.start()
In [8]: proc.is_running
Out[8]: <bound method ZmapProcess.is_running of <ZmapProcess(Thread-356, stopped 140549797275392)>>
In [9]: for obj in proc.run():
...: print vars(obj)
...:

How can I enable debug flags or increase verbosity to identify the cause?

Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.