Sha256: 537ea4c767377a93f89704cf6ce77352cc2eff15cee14dacef5f2045066be1e0
Contents?: true
Size: 904 Bytes
Versions: 3
Compression:
Stored size: 904 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 ## WhatWeb::Plugin.define "PasswordField" do @author = "Caleb Anderson" @version = "0.1" @description = "find password fields" # Matches # @matches = [ { name: "input type", regexp: /<input [^>]*?type=["']password["'][^>]*>/i }, ] # Passive # def passive(target) m = [] fields = target.body.scan(/<input [^>]*?type=["']password["'][^>]*>/i) fields.each do |field| name = begin field.scan(/name=["'](.*?)["']/i).first.first rescue StandardError nil end m << { name: "field name", string: name } if name end m end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
simple_whatweb-0.4.1 | lib/whatweb/plugins/password_field.rb |
simple_whatweb-0.4.0 | lib/whatweb/plugins/password_field.rb |
simple_whatweb-0.3.0 | lib/whatweb/plugins/password_field.rb |