From 56e2f73e5940926e8b19c865188df825960adb97 Mon Sep 17 00:00:00 2001 From: HD Moore Date: Sat, 27 Mar 2010 02:31:14 +0000 Subject: [PATCH] Dont import port 0 git-svn-id: file:///home/svn/framework3/trunk@8936 4d416f70-5f16-0410-b530-b9f4589650da --- lib/msf/core/db.rb | 1 + 1 file changed, 1 insertion(+) 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 = ''