@@ -18,10 +18,9 @@ def initialize(info={})
18
18
super ( update_info ( info ,
19
19
'Name' => 'RFCode Reader Web Interface Login Utility' ,
20
20
'Description' => %{
21
- This module simply attempts to login to a RFCode Reader web interface. Please note that
22
- by default there is no authentication. In such a case, password brute force will not be performed.
23
- If there is authentication configured, the module will attempt to find valid login credentials and
24
- capture device information.
21
+ This module simply attempts to login to a RFCode Reader web interface.
22
+ Please note that by default there is no authentication. In such a case, password brute force will not be performed.
23
+ If there is authentication configured, the module will attempt to find valid login credentials and capture device information.
25
24
} ,
26
25
'Author' =>
27
26
[
@@ -33,7 +32,6 @@ def initialize(info={})
33
32
34
33
register_options (
35
34
[
36
- Opt ::RPORT ( 80 ) ,
37
35
OptString . new ( 'STOP_ON_SUCCESS' , [ true , 'Stop guessing when a credential works for a host' , true ] )
38
36
] , self . class )
39
37
@@ -176,6 +174,13 @@ def collect_info(user, pass)
176
174
vprint_status ( "Collecting device platform info..." )
177
175
print_good ( "Release version: '#{ release_ver } ', Product Name: '#{ product_name } '" )
178
176
177
+ report_note (
178
+ :host => datastore [ 'RHOST' ] ,
179
+ :proto => 'tcp' ,
180
+ :port => datastore [ 'RPORT' ] ,
181
+ :data => 'Release Version: #{release_ver}, Product: #{product_name}'
182
+ )
183
+
179
184
res = send_request_cgi (
180
185
{
181
186
'uri' => '/rfcode_reader/api/userlist.json' ,
@@ -191,6 +196,14 @@ def collect_info(user, pass)
191
196
vprint_status ( "Collecting user list..." )
192
197
print_good ( "User list & role: #{ userlist } " )
193
198
199
+ report_note (
200
+ :host => datastore [ 'RHOST' ] ,
201
+ :proto => 'tcp' ,
202
+ :port => datastore [ 'RPORT' ] ,
203
+ :data => 'User List & Roles: #{userlist}'
204
+ )
205
+
206
+
194
207
res = send_request_cgi (
195
208
{
196
209
'uri' => '/rfcode_reader/api/interfacestatus.json' ,
@@ -206,6 +219,13 @@ def collect_info(user, pass)
206
219
vprint_status ( "Collecting interface info..." )
207
220
print_good ( "Interface eth0 info: #{ eth0_info } " )
208
221
222
+ report_note (
223
+ :host => datastore [ 'RHOST' ] ,
224
+ :proto => 'tcp' ,
225
+ :port => datastore [ 'RPORT' ] ,
226
+ :data => 'Interface eth0: #{eth0_info}'
227
+ )
228
+
209
229
return
210
230
end
211
231
end
0 commit comments