Class: Aspisec::Modules::Mobsf

Inherits:
Aspisec::Module show all
Defined in:
lib-ruby/aspisec/modules/mobsf.rb

Overview

MobSF module.
Inherits Aspisec::Module.
For more examples of methods, see Sqlmap.

Examples:

# Get the global config
conf = Aspisec::Config.new.conf
# Create a Mobsf module instance
mob = Aspisec::Modules::Mobsf.new(conf)
# Locations available
mob.locations_list # => ["logs", "downloads", "uploads", "database"]

See Also:

Instance Attribute Summary collapse

Attributes inherited from Aspisec::Module

#base, #conf, #locations_list, #name

Instance Method Summary collapse

Methods inherited from Aspisec::Module

#check_config, #enabled?, #locations

Constructor Details

#initialize(conf, logger: nil) ⇒ Mobsf

Inherits from Aspisec::Module but has only the conf argument,
tool_name is hardcoded for each module.

Parameters:



39
40
41
42
43
44
45
46
# File 'lib-ruby/aspisec/modules/mobsf.rb', line 39

def initialize(conf, logger: nil)
  super(conf, 'mobsf', logger:)
  @logs = Location.new(@conf, 'logs')
  @downloads = Location.new(@conf, 'downloads')
  @uploads = Location.new(@conf, 'uploads')
  @database = Location.new(@conf, 'database')
  @locations_list = %w[logs downloads uploads database]
end

Instance Attribute Details

#databaseLocation (readonly)

Returns:



34
35
36
# File 'lib-ruby/aspisec/modules/mobsf.rb', line 34

def database
  @database
end

#downloadsLocation (readonly)

Returns:



26
27
28
# File 'lib-ruby/aspisec/modules/mobsf.rb', line 26

def downloads
  @downloads
end

#logsLocation (readonly)

Returns:



22
23
24
# File 'lib-ruby/aspisec/modules/mobsf.rb', line 22

def logs
  @logs
end

#uploadsLocation (readonly)

Returns:



30
31
32
# File 'lib-ruby/aspisec/modules/mobsf.rb', line 30

def uploads
  @uploads
end