Class: Aspisec::Modules::Theharvester — Documentation by YARD 0.9.36

# Class: Aspisec::Modules::Theharvester

Inherits:
  Aspisec::Module
  - Object
  - Aspisec::Module
  - Aspisec::Modules::Theharvester
  show all

Defined in:
  lib-ruby/aspisec/modules/theharvester.rb

## Overview

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

Examples:

    # Get the global config
    conf = Aspisec::Config.new.conf
    # Create a Theharvester module instance
    th = Aspisec::Modules::Theharvester.new(conf)
    # Locations available
    th.locations_list # => ["stash"]

See Also:

- https://github.com/laramies/theHarvester

## Instance Attribute Summary collapse

- #stash ⇒ Location readonly

  see Config::DEFAULT_CONFIG or call Aspisec::Module::Location#description.

### Attributes inherited from Aspisec::Module

#base, #conf, #locations_list, #name

## Instance Method Summary collapse

- #initialize(conf, logger: nil) ⇒ Theharvester constructor

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

### Methods inherited from Aspisec::Module

#check_config, #enabled?, #locations

## Constructor Details

### #initialize(conf, logger: nil) ⇒ `Theharvester`

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

Parameters:

- conf (`Aspisec::Config`) —

  an instance of the global configuration

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

    def initialize(conf, logger: nil)
      super(conf, 'theharvester', logger:)
      @stash = Location.new(@conf, 'stash')
      @locations_list = %w[stash]
    end

## Instance Attribute Details

### #stash ⇒ `Location` (readonly)

see Config::DEFAULT_CONFIG or call Aspisec::Module::Location#description.

Returns:

- (`Location`)

    21
    22
    23
    # File 'lib-ruby/aspisec/modules/theharvester.rb', line 21

    def stash
      @stash
    end