#
# This script was written by Michel Arboi <arboi@alussinan.org>
#
# GPL
#
# Note: this script is not very useful because mldonkey only allows
# connections from localhost by default


if(description)
{
  script_id(11124);
  script_version ("$Revision: 7517 $");
  script_tag(name:"risk_factor", value:"Medium");
 
  script_name("mldonkey telnet");
 
  desc = "
mldonkey telnet interface might be running on this port. 
This peer to peer software is used to share files.
1. This may be illegal.
2. You may have access to confidential files
3. It may eat too much bandwidth


Solution: disable it

Risk factor : Medium";

  script_description(desc);
 
  summary = "Detect mldonkey telnet interface";
  script_summary(summary);
 
  script_category(ACT_GATHER_INFO);
 
  script_copyright("This script is Copyright (C) 2002 Michel Arboi");
  family = "Peer-To-Peer File Sharing";
  script_family(family);
  script_dependencie("find_service2.nasl");
  exit(0);
}

include("misc_func.inc");

port = get_kb_item("Services/mldonkey-telnet");
if (! port) port = 4000;
if ( ! get_port_state(port) ) exit(0);

r = get_unknown_banner(port: port, dontfetch:0);

if(!r)exit(0);
if ("Welcome on mldonkey command-line" >< r)
{
 security_warning(port);
}
