Giter Club home page Giter Club logo

Comments (5)

savon-noir avatar savon-noir commented on June 22, 2024

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.

 avatar commented on June 22, 2024

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.

savon-noir avatar savon-noir commented on June 22, 2024

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.

savon-noir avatar savon-noir commented on June 22, 2024

added in version 0.4.5 in parse.py, see commit: 12e9ad3

from python-libnmap.

 avatar commented on June 22, 2024

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)

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.