"Fossies" - the Fresh Open Source Software Archive

Member "WhatWeb-0.5.5/plugins/adobe-flash.rb" (15 Jan 2021, 1194 Bytes) of package /linux/www/WhatWeb-0.5.5.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Ruby source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 ##
    2 # This file is part of WhatWeb and may be subject to
    3 # redistribution and commercial restrictions. Please see the WhatWeb
    4 # web site for more information on licensing and terms of use.
    5 # https://www.morningstarsecurity.com/research/whatweb
    6 ##
    7 Plugin.define do
    8 name "Adobe-Flash"
    9 authors [
   10   "Caleb Anderson",
   11   "Brendan Coles <bcoles@gmail.com>", # v0.2 # Added JavaScript detection. Added <embed> element detection. Added flash file path retrieval. 
   12   "Andrew Horton", # v0.3 # 2019-07-10 # Added website field.
   13 ]
   14 version "0.3"
   15 description "This plugin identifies instances of embedded adobe flash files."
   16 website "https://get.adobe.com/flashplayer/"
   17 
   18 # Google results as at 2010-10-14 #
   19 # 244 for "your browser does not support flash"
   20 
   21 # Dorks #
   22 dorks [
   23 'filetype:swf'
   24 ]
   25 
   26 
   27 # Matches #
   28 matches [
   29 
   30 # Object tag
   31 { :regexp=>/<object[^>]+application\/x-shockwave-flash[^>]+>/i },
   32 
   33 # flash file path from <embed> elements
   34 { :regexp=>/<embed[^>]+src[\s]*=[\s]*["']?[^\s^'^"^>]+/i },
   35 
   36 # flash file path from Javascript
   37 { :regexp=>/new[\s]+FlashObject[\s]*\([\s]*['"]?[^'^"]+/ },
   38 { :regexp=>/new[\s]+SWFObject[\s]*\([\s]*['"]?[^'^"]+/ },
   39 { :regexp=>/\.embedSWF[\s]*\([\s]*["']?[^'^"]+/ },
   40 
   41 ]
   42 
   43 end
   44