Checking Open Ports with Ruby

Below is the code for listing open ports on a windows box via Ruby. This line first lists all active connections via netstat. The find “LISTENING” section lists those ports in a listening state. The “find /V” looks for any line without “0.0.0.0”. This last part is important because many times Windows lists connections in […]

Integer Overflow in Hearthstone

Integer Overflow Illustrated in Hearthstone How having over 2 billion health destroys the monster A friend recently showed me this video and asked what happened and I thought it was a perfect illustration of a classic problem in computer science – the integer overflow. At 8:25 the monster has a health of 1073744896. The player […]