faucetsdn / daq

DEPRECATED -- DAQ (Device Automated Qualification) framework in no longer in use, supported, or maintained. It is here for archival purposes only.
Apache License 2.0
41 stars 32 forks source link

Scan all ports with nmap #32

Closed pisuke closed 4 years ago

pisuke commented 6 years ago

Expand to scan other ports, especially the ones relevant for building systems.

grafnu commented 6 years ago

Can you be more specific? AFAIK nmap does scan all ports.

Keep in mind that UDP ports can't easily be scanned because they will likely "do nothing" if probed with bogus data.

pisuke commented 5 years ago

nmap scans the first 1000 TCP ports with default options. To add UDP scan the -sU option can be used. To scan all 65535 ports the -p- option can be used. This might make the scan very slow though, what do you think? Perhaps we could have a configuration file to scan for relevant building systems ports?

grafnu commented 5 years ago

I played around with this and scanning all ports is ridiculously slow. This is effected by microsegmentation, which makes it slower, so it might be there's two different scans that are done at different times.

Scanning UDP didn't do anything useful -- the protocol has on built-in reply so it doesn't generally respond to random probes. Then it made it slower.

And yes, a config file for building ports would be good.

We need to break this down into smaller items since "scan all ports" is too big to be actionable.

aidanparkinson commented 5 years ago

Still an issue preventing sing-off of security.ports.nmap test. Need a -p1 option when running nmap

InBrewJ commented 4 years ago

Sample commands for TCP/UDP

TCP: nmap -p0- -v -A UDP: nmap -sUV -F