BIGip-cookie-decoder icon indicating copy to clipboard operation
BIGip-cookie-decoder copied to clipboard

Syntax error in line 10

Open harshakshit opened this issue 1 year ago • 2 comments

Parenthesis missing in line 10. Print function

harshakshit avatar Jul 25 '23 16:07 harshakshit

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.

elliott-beach avatar Sep 15 '23 20:09 elliott-beach

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.

daniel2005d avatar Feb 14 '24 15:02 daniel2005d