Port TCP:0 Open
🗓️ 03 Nov 2005 00:00:00Reported by Copyright (C) 2005 Michel ArboiType
openvas🔗 plugins.openvas.org👁 296 Views
| Source | Link |
|---|---|
| simovits | www.simovits.com/trojans/tr_data/y2814.html |
| bizsystems | www.bizsystems.com/downloads/labrea/localTrojans.pl |
# SPDX-FileCopyrightText: 2005 Michel Arboi
# Some text descriptions might be excerpted from (a) referenced
# source(s), and are Copyright (C) by the respective right holder(s).
#
# SPDX-License-Identifier: GPL-2.0-only
if(description)
{
script_oid("1.3.6.1.4.1.25623.1.0.18164");
script_version("2023-08-03T05:05:16+0000");
script_tag(name:"last_modification", value:"2023-08-03 05:05:16 +0000 (Thu, 03 Aug 2023)");
script_tag(name:"creation_date", value:"2005-11-03 14:08:04 +0100 (Thu, 03 Nov 2005)");
script_tag(name:"cvss_base", value:"7.5");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:P/A:P");
script_name("Port TCP:0 Open");
script_category(ACT_GATHER_INFO);
script_copyright("Copyright (C) 2005 Michel Arboi");
script_family("Malware");
script_dependencies("find_service.nasl", "global_settings.nasl");
script_exclude_keys("keys/islocalhost", "keys/TARGET_IS_IPV6");
script_xref(name:"URL", value:"http://www.simovits.com/trojans/tr_data/y2814.html");
script_xref(name:"URL", value:"http://www.bizsystems.com/downloads/labrea/localTrojans.pl");
script_tag(name:"solution", value:"Check your system.");
script_tag(name:"summary", value:"TCP port 0 is open on the remote host. This is highly suspicious
as this TCP port is reserved and should not be used. This might be a backdoor (REx).");
script_tag(name:"qod_type", value:"remote_analysis");
script_tag(name:"solution_type", value:"Mitigation");
exit(0);
}
if(islocalhost() || TARGET_IS_IPV6())
exit(0);
saddr = this_host();
daddr = get_host_ip();
sport = rand() % 64512 + 1024;
dport = 0;
filter = strcat('src port ', dport, ' and src host ', daddr, ' and dst port ', sport, ' and dst host ', saddr);
ip = forge_ip_packet(ip_v:4, ip_hl:5, ip_tos:0, ip_off:0, ip_len:20,
ip_p:IPPROTO_TCP, ip_ttl:0x40,
ip_src:saddr);
tcp = forge_tcp_packet(ip:ip, th_sport:sport, th_dport:dport,
th_flags:TH_SYN, th_seq:rand(), th_ack:0,
th_x2:0, th_off:5, th_win:512, th_urp:0);
for(i = 0; i < 3; i++) {
reply = send_packet(pcap_active:TRUE, pcap_filter:filter, pcap_timeout:2, tcp);
if(reply) {
flags = get_tcp_element(tcp:reply, element:"th_flags");
if((flags & TH_SYN) && (flags & TH_ACK))
security_message(port:0); # Scanner API cannot really handle this
exit(0);
}
}
exit(0);
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation
03 Aug 2023 00:00Current
7.3High risk
Vulners AI Score7.3