Giter VIP home page Giter VIP logo

Comments (4)

takeshixx avatar takeshixx commented on July 18, 2024

This is not related to the NSE script but rather a property of Nmap. Nmap has a "special" feature for this, here is a quote from the Nmap manpage (man 1 nmap):

There are two special features for advanced users only. One is to prefix script names and expressions with + to force them to run even if they normally wouldn't (e.g. the relevant service wasn't detected on the target port).

So for your example you could run:

nmap -sU -p8888 --script +knx-gateway-info.nse 8.8.8.8

This should then run the script also on UDP port 8888.

from nmap-scripts.

marssys avatar marssys commented on July 18, 2024

Thank you for explanations! Yes, "+knx-gateway-info.nse" works with one port number. Should it works with port range? If I run "nmap -v -sU -p3600-3700 --script +knx-gateway-info.nse 192.168.88.212" it doesn't detect KNX gateway in local net:

3

from nmap-scripts.

takeshixx avatar takeshixx commented on July 18, 2024

AFAIK it should also work for port ranges. However, I guess it will only run on ports that Nmap found to be open. As this is UDP I'm not really sure how reliable this would be for large port ranges. I think using NSE scripts for large port ranges with UDP is not the best way to tackle this task.

The better solution will (hopefully) soon be available in Nmap: a service probe for KNXnet/IP. This will allow to detect gateways even faster and more reliable (as reliable as it gets with UDP..). I've submitted it to Nmap and I hope that it will be included in the next few days. But you could use the patch from the mailinglist to already test it.

from nmap-scripts.

marssys avatar marssys commented on July 18, 2024

Thanks agian! It's clear. I close this issue.

from nmap-scripts.

Related Issues (2)

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.