-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathhttp-default-creds-ice
74 lines (62 loc) · 1.98 KB
/
http-default-creds-ice
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
65
66
67
68
69
70
71
72
73
74
##
# This module requires Metasploit: http://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
require 'msf/core'
class Metasploit3 < Msf::Auxiliary
include Msf::Auxiliary::Report
include Msf::Exploit::Remote::HttpClient
include Msf::Auxiliary::Scanner
def initialize
super(
'Name' => 'GE Security - Integrated Configuration Tool - Default Login',
'Description' => %q{
This module attempts to login to a GE Security - Integrated Configuration
Tool web application using the default username and password.
Tested on version 124.00.01.
},
'Author' => 'Scott Sutherland (@_nullbind)',
'License' => MSF_LICENSE
)
register_options(
[
Opt::RPORT(80),
OptString.new('TARGETURI',
[ true, "The base path.", '/cgi-bin/Dataframe.cgi' ]),
], self.class)
end
def run_host(ip)
# Create HTTP request
begin
print_status("#{peer} - Testing default credentials - install/install")
res = send_request_cgi({
'method' => 'GET',
'uri' => datastore['TARGETURI'],
'vars_get' => {
'userName' => 'ohurgjj',
'passWord' => 'ohurgjj',
'referring_page' => '0',
'html_version' => '124.00.01'
}#,
#'vars_post' => {
# 'name' => name,
# 'code' => encoded_value
#},
#'cookie' => {
# 'operation' => 'COPY',
#}
})
# Check server response for success
res.inspect
if (res and res.code == 200 and res.body.match(/Logon accepted/))
print_good("#{peer} - Found default credentials - install/install")
else
print_error("#{peer} - No default credentials - install/install")
end
# Connection fail
rescue Rex::ConnectionError
print_error("#{peer} - Could not connect.")
return
end
end
end