I am working on an information security course and have an element of code that I need to understand:
"\x66\x68\xb0\xef". # PORT
My understanding is that this should translate to an integer value > 1024 but Im not sure how to calculate this.
I can see this string contains separated HEX values so tried printing the respective HEX values that are separated by \x and get the following:
>> print (int('66',16))
102
>>> print (int('68',16))
104
>>> print (int('b0',16))
176
>>> print (int('ef',16))
239
Obviously this gives me four separate values, so is not what I need, which is a single integer value.