|
@@ -71,8 +71,11 @@ public class SyncUtils {
|
|
|
|
|
|
static {
|
|
|
protocolsTypeMap = new HashMap<String, Integer>();
|
|
|
+ protocolsTypeMap.put("UNKNOWN", 0);
|
|
|
protocolsTypeMap.put("ECHO", 1);
|
|
|
protocolsTypeMap.put("GHOST", 2);
|
|
|
+ protocolsTypeMap.put("PORTSCAN", 11);
|
|
|
+ protocolsTypeMap.put("SSH", 20);
|
|
|
protocolsTypeMap.put("MySQL", 31);
|
|
|
protocolsTypeMap.put("SMB", 40);
|
|
|
protocolsTypeMap.put("SIP", 50);
|
|
@@ -134,7 +137,7 @@ public class SyncUtils {
|
|
|
if(entry.getValue() == p) return entry.getKey();
|
|
|
}
|
|
|
|
|
|
- return null;
|
|
|
+ return "UNKNOWN";
|
|
|
}
|
|
|
|
|
|
public static void appendRecordToStringWriter(Record record, Writer stream){
|