Skip to content

Commit 5c078f5

Browse files
committed
added report_note to store collected info. removed register rport for 80t. msftidy & module load checked. pushing it up.
1 parent 72a9c86 commit 5c078f5

File tree

1 file changed

+25
-5
lines changed

1 file changed

+25
-5
lines changed

modules/auxiliary/scanner/http/rfcode_reader_enum.rb

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,9 @@ def initialize(info={})
1818
super(update_info(info,
1919
'Name' => 'RFCode Reader Web Interface Login Utility',
2020
'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.
2524
},
2625
'Author' =>
2726
[
@@ -33,7 +32,6 @@ def initialize(info={})
3332

3433
register_options(
3534
[
36-
Opt::RPORT(80),
3735
OptString.new('STOP_ON_SUCCESS', [true, 'Stop guessing when a credential works for a host', true])
3836
], self.class)
3937

@@ -176,6 +174,13 @@ def collect_info(user, pass)
176174
vprint_status("Collecting device platform info...")
177175
print_good("Release version: '#{release_ver}', Product Name: '#{product_name}'")
178176

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+
179184
res = send_request_cgi(
180185
{
181186
'uri' => '/rfcode_reader/api/userlist.json',
@@ -191,6 +196,14 @@ def collect_info(user, pass)
191196
vprint_status("Collecting user list...")
192197
print_good("User list & role: #{userlist}")
193198

199+
report_note(
200+
:host => datastore['RHOST'],
201+
:proto => 'tcp',
202+
:port => datastore['RPORT'],
203+
:data => 'User List & Roles: #{userlist}'
204+
)
205+
206+
194207
res = send_request_cgi(
195208
{
196209
'uri' => '/rfcode_reader/api/interfacestatus.json',
@@ -206,6 +219,13 @@ def collect_info(user, pass)
206219
vprint_status("Collecting interface info...")
207220
print_good("Interface eth0 info: #{eth0_info}")
208221

222+
report_note(
223+
:host => datastore['RHOST'],
224+
:proto => 'tcp',
225+
:port => datastore['RPORT'],
226+
:data => 'Interface eth0: #{eth0_info}'
227+
)
228+
209229
return
210230
end
211231
end

0 commit comments

Comments
 (0)