why does a decoded hex number gives its ASCII equivalent rather than an integer?
@TempestFrenzy5 жыл бұрын
How would you do this with Python 3?
@wonderweissmargela42616 жыл бұрын
This happen to me always, im still slow when looking up for solution. the terminal always disconnecting.
@clayouyang21576 жыл бұрын
what is means about '0X706c616964 ' [2:]
@_JohnHammond6 жыл бұрын
A string in Python can be indexed, like a list or an array. And Python has support for "slicing", with the colon in the square brackets. So with that [2:] syntax I am cutting off the first 2 bytes, so the "0x" is removed. It is really handy for string manipulation!
@RitobanRoyChowdhury6 жыл бұрын
You should probably explain endianness here and could also begin using pwntools or writing your own telnet library. Also, maybe use python3. In python3, you have to use the binascii library to convert between bytes and hex, and the struct library to convert between bytes and numbers.