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 23

#created_atDateTime

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

Returns:

  • (DateTime)


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

#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 33

#macroString

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

Returns:

  • (String)


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

#ownerString

The name of the user that setup this listener.

Returns:

  • (String)

See Also:



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

#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 50

#portInteger

Port on #address that listener is listening.

Returns:

  • (Integer)


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

#updated_atDateTime

The last time this listener was updated.

Returns:

  • (DateTime)


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

Instance Method Details

#optionsHash

Options used to spawn this listener.

Returns:

  • (Hash)


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

serialize :options, MetasploitDataModels::Base64Serializer.new