ca_unicenter_transport_service.nasl

来自「漏洞扫描源码,可以扫描linux,windows,交换机路由器」· NASL 代码 · 共 63 行

NASL
63
字号
## This script was written by Noam Rathaus <noamr@securiteam.com>## See the Nessus Scripts License for details#if(description){ script_id(10033); script_version ("$Revision: 38 $");  name["english"] = "CA Unicenter's Transport Service is running"; script_name(english:name["english"]);  desc["english"] = "CA Unicenter Transport Service uses ports TCP:7001, TCP:7003 and UDP:7004for communication between its clients and other CA Unicenter servers. Sincethe above ports are open, CA Unicenter's Transport service is probablyrunning, and is open for outside attacks.Solution: Block those ports from outside communicationRisk factor : Medium"; script_description(english:desc["english"]);  summary["english"] = "CA Unicenter's Transport Service is running"; script_summary(english:summary["english"]);  script_category(ACT_GATHER_INFO);  script_copyright(english:"This script is Copyright (C) 1999 SecuriTeam"); family["english"] = "Windows"; script_family(english:family["english"]); script_require_ports(7001, 7003); exit(0);}## The script code starts here#if ((get_port_state(7001)) && (get_port_state(7003)) && (get_udp_port_state(7004))){ soctcp7001 = open_sock_tcp(7001); soctcp7003 = open_sock_tcp(7003); socudp7004 = open_sock_udp(7004); if ((soctcp7001) && (soctcp7003) && (socudp7004)) {  send (socket:socudp7004, data:"\r\n");  result = recv(socket:socudp7004, length:1000);  if (strlen(result)>0)  {   #set_kb_item(name:"Windows compatible", value:TRUE);   security_warning(0);  } } if(soctcp7001)close(soctcp7001); if(soctcp7003)close(soctcp7003); close(socudp7004);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?