Class: Mdm::Listener

Inherits:
ApplicationRecord
  • Object
show all
Defined in:
app/models/mdm/listener.rb

Overview

A listener spawned by a #task that is waiting for connection on #address:#port.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#addressString

The IP address to which the listener is bound.

Returns:

  • (String)


# File 'app/models/mdm/listener.rb', line 22

#created_atDateTime

When this listener was created. Not necessarily when it started listening.

Returns:

  • (DateTime)


# File 'app/models/mdm/listener.rb', line 27

#enabledtrue, false

Whether listener is listening on #address:#port.

Returns:

  • (true)

    listener is listening.

  • (false)

    listener is not listening.



# File 'app/models/mdm/listener.rb', line 32

#macroString

Name of macro run when a connect is made to the listener.

Returns:

  • (String)


# File 'app/models/mdm/listener.rb', line 38

#ownerString

The name of the user that setup this listener.

Returns:

  • (String)

See Also:



# File 'app/models/mdm/listener.rb', line 43

#payloadString

Reference name of the payload module that is sent when a connection is made to the listener.

Returns:

  • (String)


# File 'app/models/mdm/listener.rb', line 49

#portInteger

Port on #address that listener is listening.

Returns:

  • (Integer)


# File 'app/models/mdm/listener.rb', line 54

#updated_atDateTime

The last time this listener was updated.

Returns:

  • (DateTime)


# File 'app/models/mdm/listener.rb', line 59

Instance Method Details

#optionsHash

Options used to spawn this listener.

Returns:

  • (Hash)


71
# File 'app/models/mdm/listener.rb', line 71

serialize :options, MetasploitDataModels::Base64Serializer.new