1## 2# This file is part of WhatWeb and may be subject to 3# redistribution and commercial restrictions. Please see the WhatWeb 4# web site for more information on licensing and terms of use. 5# http://www.morningstarsecurity.com/research/whatweb 6## 7Plugin.define "Warcraft-3-Frozen-Throne-Mod-Config-File" do 8author "Brendan Coles <bcoles@gmail.com>" # 2010-09-04 9version "0.1" 10description "The Warcraft 3 mod for AMX-Mod-X for Half-Life uses a config file which contains mySQL username, password, server, database name, table name. This plugin grabs the mySQL username, password and server." 11 12# 4 results for inurl:war3ft.cfg ext:cfg @ 2010-09-04 13 14 15matches [ 16 17{ :text=>'// Radius to give XP to teammates near where the special objective is completed (rescued hosties, bomb planted, killed vip, vip escaped, default is 750)' }, 18 19] 20 21# Grab mySQL username, server and database details 22def passive 23 m=[] 24 25 if @body =~ /wc3_sql_dbhost "([^\"]+)"/ and @body =~ /wc3_sql_dbuser "([^\"]+)"/ and @body =~ /wc3_sql_dbpass "([^\"]*)"/ 26 version=@body.scan(/wc3_sql_dbuser "([^\"]+)"/)[0][0] + ":" + @body.scan(/wc3_sql_dbpass "([^\"]*)"/)[0][0] + "@" + @body.scan(/wc3_sql_dbhost "([^\"]+)"/)[0][0] 27 m << {:version=>version} 28 end 29 30 m 31 32end 33 34 35end 36 37