diff --git a/lib/msf/core/db.rb b/lib/msf/core/db.rb index 4bd33ae2c7..4836366a11 100644 --- a/lib/msf/core/db.rb +++ b/lib/msf/core/db.rb @@ -1194,6 +1194,7 @@ class DBManager sname = svc.attributes['name'].to_s sprot = svc.attributes['protocol'].to_s.downcase sport = svc.attributes['port'].to_s.to_i + next if sport == 0 name = sname.split('(')[0].strip info = ''