Comments (5)
yep, I didn't implemented a partial xml block parser. This could be achieved with a pull-dom type parser but I haven't. The basic idea is already there but I only did it partially to collect the percentage done but no other events (see def __process_event in process.py).
If you fee like implementing this, do not hesitate, fork and issue a pull request, I would be happy to merge such feature but I will probably not have the time to do this myself for the moment.
from python-libnmap.
Hi, in fact, the workaround that I use is hard adding at the
end of the partial xml returned, this work for me. I'm not sure this is
the solution that you expect ^^.
Thanks for your work
| David SORIA | Security Engineer
| ITrust France | IT Security Services & SaaS Editor
| Email: [email protected] | Fixe 05.67.34.67.87
| Bâtiment ACTYS/1 55 l'Occitane 31670 LABEGE
On 16/03/2014 12:32, Ronald wrote:
yep, I didn't implemented a partial xml block parser. This could be
achieved with a pull-dom type parser but I haven't. The basic idea is
already there but I only did it partially to collect the percentage
done but no other events (see def __process_event in process.py).If you fee like implementing this, do not hesitate, fork and issue a
pull request, I would be happy to merge such feature but I will
probably not have the time to do this myself for the moment.—
Reply to this email directly or view it on GitHub
#13 (comment).
from python-libnmap.
Hey,
I'll add an attribute to parse() method "incomplete" which will basically enable you to parse interrupted or not yet finished scan.
I've tested you raw style method of appending a at the end of the stream and it seems to work (although the best would be to add another xml stream based parser engine, but I know, i'll never do this :p)
If, from your experience, you have improved the proposed method, do not hesitate to issue a pull request or provide me with some comments :)
feedback is always good.
Cheers!
Ronald
from python-libnmap.
added in version 0.4.5 in parse.py, see commit: 12e9ad3
from python-libnmap.
Hi,
I have not improved this method, it was sufficient for all my test cases.
But in fact, I have to switch to python-nmap because of CPU consumption.
You are using python thread, but this is not as performant as
muti-processing:
Sometimes, it takes 90% of one processor.
With python-nmap: less than 1%
So you should probably consider to use multi-processing.
Thanks for your reactivity
Good job
| David SORIA | Security Engineer
| ITrust France | IT Security Services & SaaS Editor
| Email: [email protected] | Fixe 05.67.34.67.87
| Bâtiment ACTYS/1 55 l'Occitane 31670 LABEGE
On 06/04/2014 13:23, Ronald wrote:
Hey,
I'll add an attribute to parse() method "incomplete" which will
basically enable you to parse interrupted or not yet finished scan.I've tested you raw style method of appending a at the end of the
stream and it seems to work (although the best would be to add another
xml stream based parser engine, but I know, i'll never do this :p)If, from your experience, you have improved the proposed method, do
not hesitate to issue a pull request or provide me with some comments :)feedback is always good.
—
Reply to this email directly or view it on GitHub
#13 (comment).
from python-libnmap.
Related Issues (20)
- Issue parsing NSE output from xml HOT 3
- parsing hostnames should return the type of the hostname detected i.e user or PTR HOT 2
- Project still alive? Wrong XML structure: cannot parse data HOT 7
- CC-BY Licence is not recommended for code - should move to an equivalent OSS licence HOT 2
- parser detect if xml is incomplete
- Install fails on windows 10 due to characer encoding issue in README.rst HOT 1
- Script results may contain "None" dict keys HOT 2
- handle the <hosthint> xml tag
- Running with sudo without passwordless setup hangs
- Release of 0.7.3 HOT 4
- Any plan to fix CVE-2022-30284 [Critical] - python-libnmap 0.7.2 ? HOT 3
- Does python-libnmap library require "nmap" binary to be installed? HOT 2
- Syntax for printing the vulnerblities
- Python 2 compatibility
- Wrong XML structure error when using arg: -sV -T4 -O -F HOT 1
- XML Injection DoS attack HOT 5
- Multiprocess nmap problem. HOT 2
- Basic indentation/syntax errors in 3.6? HOT 4
- Require overriding of nmap arguments
- process.py returns 'Object has no attribute Format' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-libnmap.