Skip to content

Commit ccb2663

Browse files
committed
List all (listable) modules from a rsync daemon
1 parent f12b97e commit ccb2663

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

modules/auxiliary/scanner/rsync/rsync_modules_list.rb

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ class Metasploit3 < Msf::Auxiliary
1414
def initialize
1515
super(
1616
'Name' => 'Rsync Unauthenticated List Command',
17-
'Description' => 'List rsync available modules',
18-
'Author' => 'avuko',
17+
'Description' => 'List all (listable) modules from a rsync daemon',
18+
'Author' => 'ikkini',
1919
'License' => MSF_LICENSE
2020
)
2121
register_options(
@@ -36,16 +36,17 @@ def run_host(ip)
3636
connect()
3737
version = sock.recv(1024)
3838
# making sure we match the version of the server
39-
sock.puts("#{version}" )
39+
sock.puts("#{version}")
40+
# the listing command
4041
sock.puts("\n")
4142
listing = sock.get()
4243
# not interested in EXIT message
4344
listing = listing.to_s.gsub('@RSYNCD: EXIT', '')
4445
disconnect()
4546

46-
listing_santized = Rex::Text.to_hex_ascii(listing.to_s.strip)
47-
print_status("#{ip}:#{rport} #{version.rstrip.to_s} #{listing_santized}")
48-
report_service(:host => rhost, :port => rport, :name => "rsync", :info => listing_santized)
47+
listing_sanitized = Rex::Text.to_hex_ascii(listing.to_s.strip)
48+
print_status("#{ip}:#{rport} #{version.rstrip} #{listing_sanitized}")
49+
report_service(:host => rhost, :port => rport, :name => 'rsync', :info => listing_sanitized)
4950
end
5051
rescue ::Rex::ConnectionError
5152
rescue Timeout::Error

0 commit comments

Comments
 (0)