Coder Social home page Coder Social logo

keepnote_import_nmap's Introduction

Hi there ๐Ÿ‘‹

  • ๐Ÿ”ญ I'm Felipe Molina, currently working at SensePost group of Orange Cyberdefense ๐ŸŸง.
  • โž• Many of my personal repos are from the past, but some others are recent and can be found in the SensePost github.
  • โšก Fun fact about me: I am not an AI!
  • ๐Ÿ“ซ My Mastodon profile: Mastodon

keepnote_import_nmap's People

Stargazers

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

Watchers

 avatar  avatar

keepnote_import_nmap's Issues

osclass is no longer a child of osmatch in nmap output

The plugin throws an error on line 259

                osfamily = osmatch.getElementsByTagName("osclass")[0].getAttribute("family")
                osvendor = osmatch.getElementsByTagName("osclass")[0].getAttribute("vendor")
                ostype = osmatch.getElementsByTagName("osclass")[0].getAttribute("type")

This is due to osclass no longer being a child of osmatch i.e. from a recent nmap xml output

<os><portused state="open" proto="tcp" portid="XXX" /> 
<osclass type="general purpose" vendor="OpenBSD" osfamily="OpenBSD" osgen="4.X" accuracy="85" />
<osmatch name="OpenBSD 4.3" accuracy="85" line="30610"/>
<osmatch name="OpenBSD 4.0" accuracy="85" line="30351"/>
</os>

Locally I have changed this to

                osfamily = hostnode.getElementsByTagName("os")[0].getElementsByTagName("osclass")[0].getAttribute("family")
                osvendor = hostnode.getElementsByTagName("os")[0].getElementsByTagName("osclass")[0].getAttribute("vendor")
                ostype   = hostnode.getElementsByTagName("os")[0].getElementsByTagName("osclass")[0].getAttribute("type")

To allow this to work; however I am unsure of the intent in the code at first glance is intended to append the multple match results or take the first osclass in each case? once clarified I'll create a fork (if needed) and submit a pull request.

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.