Comments (4)
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.
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:
from nmap-scripts.
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.
Thanks agian! It's clear. I close this issue.
from nmap-scripts.
Related Issues (2)
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 nmap-scripts.