class Metasploit::Model::Search::Operator::Deprecated::App

Emulates the deprecated `app` operator by converting it to the union of `authors.name:<value>`, `email_addresses.local<value before '@'>`, and `email_addresses.domain:<value before '@'>` in {#operate_on}.

Constants

STANCE_BY_APP

Maps values passed to deprecated `app` operator to the equivalent value for the `stance` operator.

Public Instance Methods

operate_on(formatted_value) click to toggle source

Converts `app:client` to `stance:passive` and `app:server` to `stance:aggressive`.

@return [Metasploit::Model::Search::Operation::Base]

# File app/models/metasploit/model/search/operator/deprecated/app.rb, line 21
def operate_on(formatted_value)
  stance_value = STANCE_BY_APP[formatted_value]
  stance_operator = operator('stance')

  stance_operator.operate_on(stance_value)
end