1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
|
if(description)
{
script_id(12641);
script_version ("$Revision: 1.6 $");
script_cve_id("CVE-1999-0502");
name["english"] = "Default password router Pirelli AGE mB";
name["francais"] = "Router Pirelli AGE mB default mot de passe";
script_name(english:name["english"]);
desc["english"] = "
The remote host is a Pirelli AGE mB (microBusiness) router with its
default password set (admin/microbusiness).
An attacker could telnet to it and reconfigure it to lock the owner out
and to prevent him from using his Internet connection, and do bad things.
Solution : Telnet to this router and set a password immediately.
Risk factor : High";
script_description(english:desc["english"]);
summary["english"] = "Logs into the router Pirelli AGE mB";
script_summary(english:summary["english"]);
script_category(ACT_GATHER_INFO);
script_copyright(english:"This script is free");
script_family(english:"Misc.", francais:"Divers");
script_require_ports(23);
exit(0);
}
include("default_account.inc");
port = 23;
if(get_port_state(port))
{
banner = get_telnet_banner(port:port);
if ( ! banner || "USER:" >!< banner ) exit(0);
#First try as Admin
soc = open_sock_tcp(port);
if(soc)
{
r = recv_until(socket:soc, pattern:"(USER:|ogin:)");
if ( "USER:" >!< r ) exit(0);
s = string("admin\r\nmicrobusiness\r\n");
send(socket:soc, data:s);
r = recv_until(socket:soc, pattern:"Configuration");
close(soc);
if( r && "Configuration" >< r )
{
security_hole(port);
exit(0);
}
}
#Second try as User (reopen soc beacause wrong pass disconnect)
soc = open_sock_tcp(port);
if(soc)
{
r = recv_until(socket:soc, pattern:"(USER:|ogin:)");
if ( "USER:" >!< r ) exit(0);
s = string("user\r\npassword\r\n");
send(socket:soc, data:s);
r = recv_until(socket:soc, pattern:"Configuration");
close(soc);
if( r && "Configuration" >< r )
{
security_hole(port);
}
}
}
|