// Faraday Penetration Test IDE
// Copyright (C) 2013  Infobyte LLC (http://www.infobytesec.com/)
// See the file 'doc/LICENSE' for the license information
function(doc) {
    if(doc.type == "Vulnerability" || doc.type == "VulnerabilityWeb"){
        if(doc.confirmed) {
            emit(doc.severity, 1);
        }
    }
}
