stevenaldinger / decker

Declarative penetration testing orchestration framework
Mozilla Public License 2.0
288 stars 26 forks source link

Nmap protocol detection plugin port sanitization #33

Open acarnage opened 5 years ago

acarnage commented 5 years ago

Hello,

I noticed a problem in the Nmap plugin. The parsed port may contains spaces that could result in formating problems in other plugins.

The parsed value has to be cleaned, the following code makes the work for me :

parsedPort := strings.TrimSpace(portInfoSplit[0])