Class: OffensiveComputing::MalwareResult

Inherits:
Struct
  • Object
show all
Defined in:
lib/offensivecomputing/offensivecomputing.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#addedObject

Returns the value of attribute added

Returns:

  • (Object)

    the current value of added



150
151
152
# File 'lib/offensivecomputing/offensivecomputing.rb', line 150

def added
  @added
end

#avresultsObject

Returns the value of attribute avresults

Returns:

  • (Object)

    the current value of avresults



150
151
152
# File 'lib/offensivecomputing/offensivecomputing.rb', line 150

def avresults
  @avresults
end

#dlurlObject

Returns the value of attribute dlurl

Returns:

  • (Object)

    the current value of dlurl



150
151
152
# File 'lib/offensivecomputing/offensivecomputing.rb', line 150

def dlurl
  @dlurl
end

#filenameObject

Returns the value of attribute filename

Returns:

  • (Object)

    the current value of filename



150
151
152
# File 'lib/offensivecomputing/offensivecomputing.rb', line 150

def filename
  @filename
end

#magicObject

Returns the value of attribute magic

Returns:

  • (Object)

    the current value of magic



150
151
152
# File 'lib/offensivecomputing/offensivecomputing.rb', line 150

def magic
  @magic
end

#malwaresearchObject

Returns the value of attribute malwaresearch

Returns:

  • (Object)

    the current value of malwaresearch



150
151
152
# File 'lib/offensivecomputing/offensivecomputing.rb', line 150

def malwaresearch
  @malwaresearch
end

#md5Object

Returns the value of attribute md5

Returns:

  • (Object)

    the current value of md5



150
151
152
# File 'lib/offensivecomputing/offensivecomputing.rb', line 150

def md5
  @md5
end

#packerObject

Returns the value of attribute packer

Returns:

  • (Object)

    the current value of packer



150
151
152
# File 'lib/offensivecomputing/offensivecomputing.rb', line 150

def packer
  @packer
end

#sha1Object

Returns the value of attribute sha1

Returns:

  • (Object)

    the current value of sha1



150
151
152
# File 'lib/offensivecomputing/offensivecomputing.rb', line 150

def sha1
  @sha1
end

#sha256Object

Returns the value of attribute sha256

Returns:

  • (Object)

    the current value of sha256



150
151
152
# File 'lib/offensivecomputing/offensivecomputing.rb', line 150

def sha256
  @sha256
end

#tagsObject

Returns the value of attribute tags

Returns:

  • (Object)

    the current value of tags



150
151
152
# File 'lib/offensivecomputing/offensivecomputing.rb', line 150

def tags
  @tags
end

Instance Method Details

#download(filename = nil) ⇒ Object



151
152
153
# File 'lib/offensivecomputing/offensivecomputing.rb', line 151

def download(filename=nil)
	self.malwaresearch.download(self,filename)
end