# 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.4 # 2016-04-23 # Andrew Horton # Moved patterns from passive function to matches[] ## # Version 3.0 by Andrew Horton # new routine for POST requests ## # Version 2.0 by Andrew Horton # Added meta generator match and vendor matches. bug fixes. new random string function ## # Version 0.1 # detection works mainly for default installation state # tomatocms is based on zend framework ## WhatWeb::Plugin.define "Zend" do @author = "Aung Khant " @version = "0.4" @description = "Zend PHP Framework (http://framework.zend.com/) and Zend Server (http://zend.com) Detection" @matches = [ # 2010-10-14 # About 1,640,000 results (0.24 seconds) # "Powered by Zend Framework" site:www.survivethedeepend.com/ { name: 'GHDB: "Powered by Zend Framework"', certainty: 75, ghdb: '"Powered by Zend Framework"' }, { string: 'PoweredBy Image', url: 'images/PoweredBy_ZF.gif', md5: 'eecf384879cde19f8f7f80c768c12295' }, { string: 'Zend Logo Small', url: 'images/logo_small.gif', md5: '0f76017aa12a3dcb9cabbff26e37ff5c' }, { string: 'Footer Link', text: ' alt="Powered by Zend Framework!" />' }, { string: 'Null Controller', url: randstr, text: 'controllers/images/PoweredBy_ZF.gif" alt="Powerd by Zend Framework!" />' }, { string: 'Null Controller', url: randstr, regexp: /

Controller\/action not found!<\/h1>(\r\n|\n)

Controller\/action not found!<\/p>/ }, { string: 'Zend_Controller_Dispatcher_Exception', url: randstr, text: '( ! ) Zend_Controller_Dispatcher_Exception: Invalid controller specified (application) in' }, { string: 'Zend_Controller_Dispatcher_Exception', url: randstr, text: "Fatal error: Uncaught exception 'Zend_Controller_Dispatcher_Exception" }, { string: 'Zend_Controller_Router_Exception', url: randstr, text: "Uncaught exception 'Zend_Controller_Router_Exception' with message 'No route matched the request'" }, { string: 'Zend_Controller_Router_Exception', url: randstr, text: "/Zend/Controller/Router/Rewrite.php on line " }, { version: /Application error!

#

An application error occured!

m = [] response = HTTP.post(target.uri.to_s, form: { whatweb: true }) aggressive_target = WhatWeb::Target.new(target.uri.to_s, response) # open_url unless aggressive_target.body.nil? if /

Application error!<\/h1>(\r\n|\n)

An application error occured!<\/p>/.match?(aggressive_target.body) m << { string: "Invalid Post Method" } end end m end end