Showing posts with label UDP. Show all posts
Showing posts with label UDP. Show all posts

Tuesday, 20 October 2026

openssl rand

openssl rand is an OpenSSL command that generates cryptographically secure random bytes using the library's CSPRNG (cyptographically secure pseudorandom number generator) with options for raw, hex or Base64 output.

Example usage:

openssl rand -hex 16
openssl rand -base64 16

The number at the end states the number of bytes to generate. 

The GitHub location for OpenSSL can be found here. This also has extensive documentation in Markdown.

Learn more about OpenSSL here from the OSSL Guide. An interesting application of OpenSSL's capabilities is implementing systems using QUIC (a modern transport layer protocol built on UDP).

Saturday, 18 July 2026

Revisiting Port 443

Port 443 is primarily known for handling HTTPS traffic over TCP, enabling secure communication between browsers and servers.  

It can be used with UDP in specific scenarios like QUIC (for lower latency secure communications) and HTTP/3.

When diagnosing why an HTTPS connection is failing, an in depth knowledge of port 443 is needed.






Tuesday, 21 January 2025

SSDP (Simple Service Discovery Protocol)

You may have encountered SSDP (Simple Service Discovery Protocol) in the context of the Services tab in Task Manager in the form of SSDPSRV (SSDP Discovery Service). 

It is a HTTPU (HTTP UDP) text based protocol i.e. relies on UDP underneath.

The SSDP protocol can discover Plug and Play devices, with uPnP (Universal Plug and Play).

The SSDP protocol has been found to be used in DDoS attacks also known as SSDP Reflection Attack with Amplification.

Vulnerabilities also arise from widespread proliferation of certain open source libraries e.g. pupnp.

Monday, 27 July 2009

TCP for Windows Hackers (And a bit of TCP History)

A TCP connection is half-open when the station at one end of the connection has crashed or otherwise removed the socket without informing the other end.
An embryonic connection is a TCP connection which is in the process of being established.

In UDP you can just start sending packets, whereas in TCP, you need to establish a connection before you send packets. Establishing a connection in TCP is done via a three-way handshake: client sends SYN, server sends SYN-ACK, then client sends ACK back to the server. At this point, client and server both have an acknowledgement of the connection.

Another difference between TCP and UDP is retransmission of lost packets.

The big names in packet network protocols are "Father of the Internet" Vint Cerf and Bob Kahn (PhD Princeton). In 1974 they published an IEEE paper: "A Protocol for Packet Network Interconnection". A central part of this protocol was the Transmission Control Program, later to evoive into TCP.

Need to understand TCP connections well to understand DOS and DDOS attacks.