forked from urbanadventurer/WhatWeb
/
Java-Password-Log.rb
54 lines (43 loc) · 1.5 KB
/
Java-Password-Log.rb
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
##
# 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 "Java-Password-Log" do
author "Brendan Coles <bcoles@gmail.com>" # 2010-10-15
version "0.1"
description "This plugin detects Java password.log files and retrieves the usernname, password and URL."
# 68 results for password END_FILE ext:log @ 2010-10-15
# Dorks #
dorks [
'password END_FILE ext:log'
]
# Examples #
examples %w|
140.116.71.92/cmdme/2/Java_applet2/password.log
ayura.udea.edu.co/cursos/aprobar/password.log
egma1.e-technik.tu-ilmenau.de/~bartl/urlaub/passwort/passwort.log
mitglied.multimania.de/Rick_Cooper/mbr/password.log
mitglied.multimania.de/vns/password.log
sites.google.com/site/benmcclintock/password.log
talko.helia.fi/sivut/password.log
utopia.duth.gr/~sdelis/stoixeia/password.log
homepage.ntlworld.com/stags/password.log
www.freewebs.com/line-web/bruger/password.log
www.oocities.com/tansaauckland/password.log
www.ting.com.tw/zh-tour/club/password.log
www.ugn-umweltconsult.de/deutsch/projektsite/projekt1/password.log
|
# Extract username, password and URL
def passive
m=[]
if @body =~ /END_FILE/
if @body =~ /^name: = "([^\"]+)";[\r]?\npassword: = "([^\"]+)";[\r]?\nURL: = "([^\"]+)";/
modules=@body.scan(/^name: = "([^\"]+)";[\r]?\npassword: = "([^\"]+)";[\r]?\nURL: = "([^\"]+)";/)
m << {:module=>modules}
end
end
m
end
end