A simple netcat program in C to receive data and then acknowledge this with a message.
A very nice C program to open a listening port on Linux and respond to a message.
A very nice C program to open a listening port on Linux and respond to a message.
This is a simple random number example in C. This will print a random number from 1 – 64. #include <stdio.h> #include <stdlib.h> int main (void) { srand(time(NULL)); int r = rand() % 64; printf("Random INT: %i\n", r); return 0; }#include <stdio.h> #include <stdlib.h> int main (void) { srand(time(NULL)); int r … Read more
The netcat command is a program for querying network connections. This little program may be used to query whether a port is open on a Linux system or not. Here I am determining whether port 443 is open on this Linux Mint machine. homer@deusexmachina ~ $ nc -zv localhost 443 Connection to localhost 443 port … Read more