# 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 "Winmail-Server" do @author = "Brendan Coles " # 2011-06-27 @version = "0.1" @description = "Winmail Server is an enterprise class mail server software system offering a robust feature set, including extensive security measures. Winmail Server supports SMTP, POP3, IMAP, Webmail, LDAP, multiple domains, SMTP authentication, spam protection, anti-virus protection, SSL/TLS security, RBL ,SPF, SpamAssassin, Network Storage, remote access, Web-based administration, and a wide array of standard email options such as filtering, signatures, real-time monitoring, archiving, and public email folders." @website = "http://www.magicwinmail.net/" # Google results as at 2011-06-27 # # 343 for intitle:"Powered by Winmail Server - Login" +Username +Password # Dorks # @dorks = [ 'intitle:"Powered by Winmail Server - Login" "Username" "Password"' ] # Matches # @matches = [ # Title { text: 'WebMail | Powered by Winmail Server - Login' }, { text: 'Web Administration | Powered by Winmail Server - Login' }, # Register Page { text: ' *' }, # Login Page # Powered by text { text: 'Powered by Winmail Server ' }, # Admin Page # Powered by text { text: 'Powered by Winmail Server' }, # Logo { text: '' }, # Mail Server Detection { string: /    POP3,SMTP Server: ([^\s^<]+)<\/font><\/td><\/tr>/ }, # Remember me link { text: 'Automatically login at next time' }, # Version Detection # HTML Comment { version: //, offset: 1 }, ] # Passive # def passive(target) m = [] # magicwinmail_default_language cookie m << { name: "magicwinmail_default_language cookie" } if target.headers["set-cookie"] =~ /magicwinmail_default_language=[^;]+;/ # magicwinmail_domain_name cookie m << { name: "magicwinmail_domain_name cookie" } if target.headers["set-cookie"] =~ /magicwinmail_domain_name=[^;]+;/ # magicwinmail_login_userid cookie m << { name: "magicwinmail_login_userid cookie" } if target.headers["set-cookie"] =~ /magicwinmail_login_userid=[^;]+;/ # Return passive matches m end end