mirror of
https://github.com/urbanadventurer/WhatWeb
synced 2026-06-21 14:12:19 +00:00
45 lines
1.2 KiB
Ruby
45 lines
1.2 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://www.morningstarsecurity.com/research/whatweb
|
|
##
|
|
Plugin.define do
|
|
name "TypoLight"
|
|
authors [
|
|
"Andrew Horton",
|
|
# v0.2 # removed :certainty=>100 & :name
|
|
]
|
|
version "0.2"
|
|
description "TypoLight is an OpenSource CMS written in PHP"
|
|
website "www.typolight.org"
|
|
|
|
|
|
|
|
matches [
|
|
{:name=>"typolight.css", :text=>'<link rel="stylesheet" href="system/typolight.css" type="text/css" media="screen" />'},
|
|
{:text=>'This website is powered by TYPOlight Open Source CMS :: Licensed under GNU/LGPL'},
|
|
{:text=>'<!-- indexer::continue -->'}
|
|
]
|
|
|
|
# /typolight page
|
|
# <title>Hydro Energie Roth :: TYPOlight Open Source CMS 2.8</title>
|
|
# TYPOlight webCMS :: TYPOlight webCMS 2.7
|
|
|
|
aggressive do
|
|
m=[]
|
|
|
|
target = URI.join(@base_uri.to_s,"/typolight/").to_s
|
|
status,url,ip,body,headers=open_target(target)
|
|
|
|
if body =~ /<title>[^<]+TYPOlight[^<]+CMS ([^<]+)<\/title>/
|
|
version=body.scan(/<title>[^<]+TYPOlight[^<]+CMS ([^<]+)<\/title>/)[0][0]
|
|
m << {:name=>"login page version", :version=>version}
|
|
end
|
|
m
|
|
end
|
|
|
|
|
|
end
|
|
|