The Wayback Machine - https://web.archive.org/web/20240723112108/https://www.geeksforgeeks.org/what-is-udp-scanning/
Open In App

What is UDP Scanning?

Last Updated : 16 Sep, 2022
Improve
Suggest changes
Post a comment
Like Article
Like
Save
Share
Report

UDP scanning is a process in which we scan for the UDP services that are being deployed on the target system or are currently in a running state. UDP is a connectionless protocol, hence it is hard to probe as compared to TCP.

Working of UDP scan:

In UDP scan usually, we take advantage of any UDP service clients like dig or tools like Nmap to send UDP datagrams to the target UDP network services like DNS, SNMP, and DHCP and wait for the response. Besides this, we can also send the UDP datagrams to all the ports and wait for the result.

Some popular services that we look for in UDP scan are:

UDP scanning

 

UDP SCAN Using NMAP:

UDP scan works by sending a UDP packet to every targeted port. For most ports, this packet will be empty (no payload), but for a few of the more common ports, a protocol-specific payload will be sent. Based on the response, the port is assigned to one of four states. The result table looks like this in a Nmap UDP scan:

State                                               Response                               
open  Any UDP response
open | filtered No response registered
closed ICMP port unreachable error (type 3, code 3) 
filtered Other ICMP unreachable errors (type 3, code 1, 2, 9, 10, or 13) 

nmap’s UDP scan usage command:

sudo nmap -p <port numbers> 
-sU <target domain>

Example:

 

Conclusion:

For UDP scanning, the service sends a generic UDP packet and waits for a response. If there is no response, the port is assumed to be open and a UDP packet specific to the service on that port is sent to detect the service. If an ICMP error packet is returned, the port is considered closed.


Previous Article
Next Article

Similar Reads

Port Scanning Techniques By Using Nmap
Nmap is a security auditing tool used in the security field to actively enumerate a target system/network. It is one of the most extensively used tools by network administrators and conversely attackers for reconnaissance (enumeration), the first step in the 5 phases of hacking. Nmap is used to actively probe the target network for active hosts(hos
5 min read
What is SYN Scanning?
Internet and its usage have evolved over the years. The Internet has become an integral part of daily human activities, and it becomes hard to imagine life without the Internet. The Cyber world has become so fascinating that it is often the soft target of cyberattackers and hackers to steal personal confidential information via the internet as a me
3 min read
What are Scanning Attacks?
Scanning in ethical hacking is a network exploration technique used to identify the systems connected to an organization's network. It provides information about the accessible systems, services, and resources on a target system. Some may refer to this type of scan as an active scan because it can potentially disrupt services on those hosts that ar
7 min read
What is TCP-ACK Scanning?
TCP-ACK is a third step of the TCP 3-Way Handshake process (SYN, SYN-ACK, ACK). In TCP-ACK, the client acknowledges the response of the Server, and establish a connection to proceed with the data transfer and any other communication processes. TCP-ACK Scanning: In this scan, the ACK packets are sent to the target port in order to know that if that
2 min read
Port Scanning Attack
Prerequisite: What is scanning attacks? Cyber-Attackers use various different methods to carry out the execution of Cyber-Attacks on the computer network, depending on the ease through which the computer network can be attacked on its vulnerability. Each type of Cyber-Attack is risky and harmful in nature. Awareness about cyber crimes is very impor
3 min read
IPv6 Scanning
Pre-requisites: IPv6 IPv6 Scanning is a term coined for Scanning of IPv6 Networks, IPv6 addresses have larger space addresses hence it is slow to scan IPv6 addresses as compared to IPv4 addresses, but it is not that hard to scan as we have many tools that can help in this process of scanning. We can scan for IPv6 Networks by different tools availab
2 min read
UDP Session Hijacking
UDS Packet is a low-level transport protocol used on LAN's and WAN's to send packets between two endpoints. UDP Session Hijacking is an attack where the attacker tricks the victim into using their computer as part of a botnet, typically by sending them unsolicited requests disguised as coming from legitimate sources. This illegitimate traffic can t
3 min read
Protobuf UDP Message and its Types in Wireshark
The concept of Protobuf UDP Message Type in Wireshark is to parse the data on the specified UDP port, Wireshark uses this table to determine the type of Protobuf message, in case the payload of UDP includes the Protobuf encoding (s) on the specific ports. The "User Table" consists of the following fields that keep the configuration maps for UDP Por
3 min read
three90RightbarBannerImg