Sha256: a2fe0121c14dc2cdb04034ffaae2e8028bb4e8aad756cbf381f1b4d007084100

Contents?: true

Size: 564 Bytes

Versions: 6

Compression:

Stored size: 564 Bytes

Contents

# frozen_string_literal: true

##
# This file is part of WhatWeb and may be subject to
# redistribution and commercial restrictions. Please see the WhatWeb
# web site for more information on licensing and terms of use.
# http://www.morningstarsecurity.com/research/whatweb
##

# Version 0.2
# added - unless @ip.empty?

WhatWeb::Plugin.define "IP" do
  @author = "Andrew Horton"
  @version = "0.2"
  @description = "IP address of the target, if available."

  def passive(_target)
    m = []

    m << { string: @ip } unless @ip.nil? || @ip.empty?
    m
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
simple_whatweb-0.4.1 lib/whatweb/plugins/ip.rb
simple_whatweb-0.4.0 lib/whatweb/plugins/ip.rb
simple_whatweb-0.3.0 lib/whatweb/plugins/ip.rb
simple_whatweb-0.2.1 lib/whatweb/plugins/ip.rb
simple_whatweb-0.2.0 lib/whatweb/plugins/ip.rb
simple_whatweb-0.1.0 lib/whatweb/plugins/ip.rb