File: TMSoft-MyAuth-Gateway.rb

package info (click to toggle)
whatweb 0.4.8~git20120606-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 7,956 kB
  • sloc: ruby: 53,738; sh: 577; makefile: 34
file content (64 lines) | stat: -rw-r--r-- 2,360 bytes parent folder | download
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
53
54
55
56
57
58
59
60
61
62
63
64
##
# 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 "TMSoft-MyAuth-Gateway" do
author "Brendan Coles <bcoles@gmail.com>" # 2010-10-30
version "0.1"
description "MyAuth Gateway 3 is a software for the administration of users to providers of advanced networks, enabling full management of customers, access users, groups, bandwidth control, with administrative access level and access logs of actions of technical support for complete control and ticket, statistics and central billing system via bank transfer of the major national banks. [Translated from Portuguese] - homepage: http://www.myauth.com.br/?console=myauth3_info&site=myauth3"

# About 6144 ShodanHQ results for "X-Manager-By:"
# About 4794 ShodanHQ results for "X-Powered-By: TMSoft MyAuth Gateway"
examples %w|
186.194.3.225
186.200.70.130
187.62.107.141
187.63.203.62
187.111.193.35
189.17.122.162
189.39.108.156
189.42.251.108
189.53.131.252
189.84.120.251
189.39.106.237
189.39.107.138
189.39.108.77
200.192.146.116
200.192.147.216
200.192.149.2
200.192.153.240
201.39.19.152
201.48.39.5
201.56.234.116
|

# Passive # HTTP Header
def passive
	m=[]

	# Cookie
	m << { :version=>@headers["set-cookie"].scan(/MyAuth([0-9]{1})=[a-z0-9]{26}/) } if @headers["set-cookie"] =~ /MyAuth([0-9]{1})=[a-z0-9]{26}/

	# X-Powered-By
	m << { :version=>@headers["x-powered-by"].scan(/TMSoft MyAuth Gateway ([^\s^\r^\n]+)/) } if @headers["x-powered-by"] =~ /TMSoft MyAuth Gateway ([^\s^\r^\n]+)/

	# X-Manager-By
	m << { :version=>@headers["x-manager-by"].scan(/MyAuth Gateway ([^\s]+)/) } if @headers["x-manager-by"] =~ /MyAuth Gateway ([^\s]+)/

	# X-Software-*
	if @headers["x-software-info"] =~ /MyAuth Gateway/ and @headers["x-software-owner"] =~ /Patrick Brandao, contato@tmsoft.com.br/

		m << { :name=>"X-Software HTTP Headers" }
		m << { :version=>@headers["x-software-info"].scan(/MyAuth Gateway ([\d\.]+), TMSoft Solucoes \(www.tmsoft.com.br\)/) } if @headers["x-software-info"] =~ /MyAuth Gateway ([\d\.]+), TMSoft Solucoes \(www.tmsoft.com.br\)/
		m << { :version=>@headers["x-software-version"].scan(/([^\r^\n]*)/) } if @headers["x-software-version"] =~ /([^\r^\n]*)/

	end

	m

end

end