gushitong / libzmap Goto Github PK
View Code? Open in Web Editor NEWzmap lib for python
License: Other
zmap lib for python
License: Other
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'
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.