File tree Expand file tree Collapse file tree 1 file changed +3
-13
lines changed
modules/auxiliary/scanner/nessus Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -99,17 +99,7 @@ def do_login(user='nessus', pass='nessus')
99
99
100
100
if res . code == 200
101
101
if res . body =~ /<status>OK<\/ status>/
102
- print_good ( "SUCCESSFUL LOGIN. '#{ user } ' : '#{ pass } '" )
103
-
104
- report_hash = {
105
- :host => datastore [ 'RHOST' ] ,
106
- :port => datastore [ 'RPORT' ] ,
107
- :sname => 'nessus-xmlrpc' ,
108
- :user => user ,
109
- :pass => pass ,
110
- :active => true ,
111
- :type => 'password' }
112
-
102
+ print_good ( "SUCCESSFUL LOGIN. '#{ user } ':'#{ pass } '" )
113
103
report_cred (
114
104
ip : datastore [ 'RHOST' ] ,
115
105
port : datastore [ 'RPORT' ] ,
@@ -120,7 +110,7 @@ def do_login(user='nessus', pass='nessus')
120
110
return :next_user
121
111
end
122
112
end
123
- vprint_error ( "FAILED LOGIN. '#{ user } ' : '#{ pass } '" )
113
+ vprint_error ( "FAILED LOGIN. '#{ user } ': '#{ pass } '" )
124
114
return :skip_pass
125
115
end
126
116
@@ -143,7 +133,7 @@ def report_cred(opts)
143
133
144
134
login_data = {
145
135
core : create_credential ( credential_data ) ,
146
- status : Metasploit ::Model ::Login ::Status ::UNTRIED ,
136
+ status : Metasploit ::Model ::Login ::Status ::SUCCESSFUL ,
147
137
} . merge ( service_data )
148
138
149
139
create_credential_login ( login_data )
You can’t perform that action at this time.
0 commit comments