INNER CODE UNIT · Ruby
exploitability
thesp0nge/dawnscanner · lib/cvss/cvss.rb:39
exploitability = 20 * av[@base[:av].to_sym] * ac[@base[:ac].to_sym] * au[@base[:au].to_sym]
c = {:N=>0, :P=>0.275, :C=>0.660}
i = {:N=>0, :P=>0.275, :C=>0.660}
a = {:N=>0, :P=>0.275, :C=>0.660}
impact = 10.41 * (1 - (1-c[@base[:c].to_sym]) * (1-i[@base[:i].to_sym]) * (1-a[@base[:a].to_sym]))
f = 0
f = 1.176 unless impact == 0
(((0.6 * impact) + (0.4*exploitability) - 1.5) * f).round(1)
end
end
end