BIGip-cookie-decoder
BIGip-cookie-decoder copied to clipboard
Syntax error in line 10
Parenthesis missing in line 10. Print function
This script is python2, you're using python3. By the way, I had also found that it doesn't work if you just fix the parentheses, due to some difference in the struck.pack or ord calls between py2 and py3 that is currently unintelligble to me.
Change to python 3
(a, b, c, d) = [ord(chr(i)) for i in struct.pack("<I", int(host))]$ # Add chr(i)
(e) = [ord(chr(e)) for e in struct.pack("<H", int(port))]$ # add chr(1)
And to print function, add parenthesis.