Sign-up....

求助:正则表达式

文件如下,

要读取第15行, script_id(10351);里面的10351

第20行, name["english"] = "The ACC router shows configuration without authentication";里面的The ACC router shows configuration without authentication

第24行到33行, desc["english"] = "

The remote router is an ACC router.

Some software versions on this router will allow an attacker to run the SHOW

command without first providing any authentication to see part of the router's

configuration.

Solution : Upgrade the software.

Risk factor : Medium";

里面的The remote router is an ACC router.

Some software versions on this router will allow an attacker to run the SHOW

command without first providing any authentication to see part of the router's

configuration.

Solution : Upgrade the software.

Risk factor : Medium"

请教各位大侠,急,谢谢!!!

#

# This script was written by Sebastian Andersson <sa@ hogia.net>

#

# Changes by rd :

#

# - french description

#- script id

#- cve id

#

# See the Nessus Scripts License for details

#

if(description)

{

script_id(10351);

script_version ("$Revision: 1.6 $");

script_bugtraq_id(183);

script_cve_id("CVE-1999-0383");

name["english"] = "The ACC router shows configuration without authentication";

name["francais"]= "Le routeur ACC donne sa configuration sans authentification";

script_name(english:name["english"], francais:name["francais"]);

desc["english"] = "

The remote router is an ACC router.

Some software versions on this router will allow an attacker to run the SHOW

command without first providing any authentication to see part of the router's

configuration.

Solution : Upgrade the software.

Risk factor : Medium";

desc["francais"] = "

Le routeur distant est un routeur ACC.

Plusieurs versions de celui-ci permettent ?un

intrus d'executer la commande SHOW sans s'authentifier

au pr閍lable, ce qui permet d'obtenir la configuration

de celui-ci.

Solution : mettez le logiciel ?jour

Facteur de risque : Moyen";

script_description(english:desc["english"], francais:desc["francais"]);

summary["english"] = "Checks for ACC SHOW command bug";

summary["francais"] = "V閞ifie le bug de ACC SHOW";

script_summary(english:summary["english"], francais:summary["francais"]);

script_category(ACT_GATHER_INFO);

script_copyright(english:"This script is Copyright (C) 2000 Sebastian Andersson");

family["english"] = "Remote file access";

family["francais"]= "Acc鑣 aux fichiers distants";

script_family(english:family["english"], francais:family["francais"]);

script_dependencie("find_service.nes");

script_require_ports("Services/telnet", 23);

exit(0);

}

#

# The script code starts here

#

port = get_kb_item("Services/telnet");

if(!port)port = 23;

if(get_port_state(port))

{

soc = open_sock_tcp(port);

if(soc)

{

first_line = telnet_init(soc);

if("Login:" >< first_line) {

req = string("\x15SHOW\r\n");

send(socket:soc, data:req);

r = recv_line(socket:soc, length:1024);

r = recv_line(socket:soc, length:1024);

if(("SET" >< r) ||

("ADD" >< r) ||

("RESET" >< r)) {

security_hole(port);

# cleanup the router...

while(! ("RESET" >< r)) {

if("Type 'Q' to quit" >< r) {

send(socket:soc, data:"Q");

close(soc);

exit(0);

}

r = recv(socket:soc, length:1024);

}

}

}

close(soc);

}

}

[3303 byte] By [msdn] at [2007-8-14 13:32:24]
# 1 Re: 求助:正则表达式

有点头晕

aw325 at 2005-5-11 17:01:10 >
# 2 Re: 求助:正则表达式

我也感觉有点晕

fibbery at 2005-5-11 18:20:26 >
# 3 Re: 求助:正则表达式

把下面这行删掉

$sep = sub {print "\n----\n"};

shhgs at 2005-5-11 21:56:14 >

其他开发语言

All Classified