A simple random number routine in C.

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…

Read More

How to see if a port is open on a Linux system using netcat.

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…

Read More