1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
##
# 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
##
Plugin.define "Posterous" do
author "Brendan Coles <bcoles@gmail.com>" # 2011-05-19
version "0.1"
description "Posterous publishing platform. If you can email, you can manage a website and share it with small groups or the world using Posterous. - https://posterous.com/"
# ShodanHQ results as at 2011-05-19 #
# 13 for _sharebymail_session_id
# Matches #
matches [
# Meta Generator
{ :text=>'<meta name="generator" content="Posterous" />' },
# div class "posterous_site_data"
{ :text=>'<div class="posterous_site_data" data-post-id="' },
# Account Detection
{ :account=>/<meta property="og:site_name" content="([^"]+)'s posterous" \/>/ },
# Protected Page
{ :text=>'<li class="first"><a href="http://posterous.com/login?jumpto=http' },
# Redirect Page
{ :regexp=>/<html><body>You are being <a href="http:\/\/([^"]+)\.posterous\.com\/">redirected<\/a>\.<\/body><\/html>/ },
]
# Passive #
def passive
m=[]
# _sharebymail_session_id cookie
m << { :name=>"_sharebymail_session_id cookie" } if @headers["set-cookie"] =~ /^_sharebymail_session_id=/
# x-posteroushostname header
m << { :name=>"x-posteroushostname header" } unless @headers["x-posteroushostname"].nil?
# Return passive matches
m
end
end
|