NJUPT-CSAPP/bomblab/bomb126/a.py

8 lines
282 B
Python
Raw Normal View History

2024-06-12 01:36:23 +02:00
hex_string = "0x50 0x75 0x62 0x6c 0x69 0x63"
# Split the hex string into individual hex values
hex_values = hex_string.split()
# Convert each hex value to its corresponding character
decoded_string = ''.join([chr(int(hex_val, 16)) for hex_val in hex_values])
print(decoded_string)