⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 netop_detect_tcp.nasl

📁 漏洞扫描源码,可以扫描linux,windows,交换机路由器
💻 NASL
字号:
## This NASL script has been produced as a collaboration between:## - Martin O'Neal of Corsaire (http://www.corsaire.com)  # - Jakob Bohm of Danware (http://www.danware.dk)# # DISCLAIMER# The information contained within this script is supplied "as-is" with # no warranties or guarantees of fitness of use or otherwise. Neither Corsaire # or Danware accept any responsibility for any damage caused by the use or misuse # of this information.# ############## description ################# declare descriptionif(description){	script_id(15765);	script_version ("$Revision: 38 $");	name["english"]="NetOp products TCP detection";	script_name(english:name["english"]);	desc["english"]="This script detects if the remote system has a Danware NetOpprogram enabled and running on TCP.  These programs are usedfor remote system administration, for telecommuting and forlive online training and usually allow authenticated users toaccess the local system remotely.Specific information will be given depending on the programdetectedRisk factor: Depends on the specific program detected";	script_description(english:desc["english"]);	summary["english"]= "Determines if the remote host has any Danware NetOp program active on TCP";	script_summary(english:summary["english"]);	script_category(ACT_GATHER_INFO);	script_copyright(english: "This NASL script is Copyright 2004 Corsaire Limited and Danware Data A/S.");	script_family(english:"Service detection");	script_dependencies("find_service.nes","find_service2.nasl");	exit(0);}############## declarations ################# includesinclude('netop.inc');include('global_settings.inc');# declare functionfunction test(port){	if ( ! get_port_state(port) ) return 0;	# open connection	socket=open_sock_tcp(port, transport:ENCAPS_IP);		# check that connection succeeded	if(socket)	{		########## packet one of two ##########				# send packet		send(socket:socket, data:helo_pkt_gen);			# recieve response		banner_pkt = recv(socket:socket, length:1500, timeout: 3);				# check response contains correct contents and		#   log response accordingly.				netop_check_and_add_banner();				########## packet two of two ##########				if (ord(netop_kb_val[39]) == 0xF8)		{			send(socket:socket,data:quit_pkt_stream);		}		close(socket);	}}############## script ################# initialise variableslocal_var socket;addr=get_host_ip();proto_nam='tcp';# test default portstest(port:6502);test(port:1971);if ( thorough_tests ){# retrieve and test unknown servicesport=get_kb_item("Services/unknown");if(!port)exit(0);if(!get_tcp_port_state(port))exit(0);if(! service_is_unknown(port:port))exit(0);test(port:port);}exit(0);############## End of TCP-specific detection script ################

⌨️ 快捷键说明

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