mirror of
https://github.com/urbanadventurer/WhatWeb
synced 2026-06-21 14:12:19 +00:00
37 lines
1.1 KiB
Ruby
37 lines
1.1 KiB
Ruby
##
|
|
# 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.
|
|
# https://morningstarsecurity.com/research/whatweb
|
|
##
|
|
Plugin.define do
|
|
name "JQuery"
|
|
authors [
|
|
"Andrew Horton",
|
|
# v0.2 # removed :probability.
|
|
# v0.3 # rewrite.
|
|
"Eric Sesterhenn", # v0.4 # added another match line
|
|
"Janosch Maier @Phylu", # v0.5 # 2018-04-20 # added a version detection.
|
|
"mkauschi" # v0.6 # 2021-10-21 # added a version
|
|
]
|
|
version "0.6"
|
|
description "A fast, concise, JavaScript that simplifies how to traverse HTML documents, handle events, perform animations, and add AJAX."
|
|
website "http://jquery.com/"
|
|
|
|
# Matches #
|
|
matches [
|
|
|
|
# JavaScript
|
|
{ :regexp=>/<script [^>]*jquery/ },
|
|
|
|
# JavaScript # Version Detection
|
|
{ :version=>/jquery(\.min)?\.js\?ver=([0-9\.]+)['"]/, :offset=>1 },
|
|
{ :version=>/jquery\/([0-9\.]+)\/jquery(\.min)?\.js/, :offset=>0 },
|
|
{ :version=>/jquery-([0-9\.]+)(\.min)?\.js/, :offset=>0 },
|
|
{ :version=>/jquery(\.min)?\.js(\.[a-z&=;\?]*)(\?|;)(v|ver)=([0-9\.]+)['"]/, :offset=>5 },
|
|
|
|
]
|
|
|
|
end
|
|
|