Initial changes to directory structure

This commit is contained in:
Connor Wilson
2016-03-08 21:12:47 +00:00
committed by thomashaw
parent 0ebfbd6069
commit 401db4b0c5
35 changed files with 397 additions and 156 deletions

View File

@@ -0,0 +1,25 @@
class Vulnerability
attr_accessor :type, :privilege, :access ,:puppets, :details, :ports, :cve, :files, :scripts
def eql? other
# checks if type matches vulns.xml from scenario.xml
other.kind_of?(self.class) && @type == other.type
end
def initialize(type="", privilege="", access="", puppets=[], details="", ports=[], cve="", files=[], scripts=[])
@type = type
@privilege = privilege
@access = access
@puppets = puppets
@details = details
@ports = ports
@cve = cve
@files = files
@scripts = scripts
end
def id
return @type + @privilege + @access
end
end