How to Derive the TSVal and TSecr TCP option fields using python?
问题 I'm trying to develop a small proof-of-concept for a python networking project but I've come across a hurdle. Would anyone be able to explain how I could derive the TSVal and TSecr values from the Operating system in python? I'm using Scapy to see if I could connect to a simple python server program as a client. The statement below is where I'm sort of stuck. TCP(flags='S', options=[('Timestamp', (TSval, TSecr))]) So if anyone could recommend an algorithm or a python library to calculate the