What is the most likely dice roll?

Probably common sense, but this statistically supports the most common roll of the dice. Of course, this assumes physical normalcy of the die, not loaded, etc. 🙂 [[email protected] ~]# cat rand.py import random d = dict() for i in range(1,100001):…

Simple network test with client and server

This simple network trace shows the essential elements of a network interaction between a client and a server. For our test, we use the following for the client… import sys, socket, time remote_ip = socket.gethostbyname(socket.gethostname()) s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) #s.setsockopt(socket.IPPROTO_TCP,…

Spoofed IP network behaviour

In this case, we spoof the IP of our client to 192.168.1.101. When we do this, and send only a SYN packet to the server, we see the SYN on the client… [[email protected] ~]# python spoof.py 1 09:37:52.469226 IP 192.168.1.101.49999…