Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- input = "00 1B 00 5B 00 66 00 53 00 5F 00 64 00 6D 00 46 00 4D 00 31 00 1B 00 5B 00 72 00 6D 00 1B 00 5B 00 66 00 53 00 5F 00 67 00 6D 00 20 00 39 00 35 00 2E 00 35 00 1B 00 5B 00 66 00 53 00 5F 00 64 00 6D 00 20 00 4D 00 48 00 7A 00 00 00"
- import re
- input = input.replace("00", "")
- input = input.replace("53 00 5F", "")
- input = input.replace("1B 00 5B", "")
- input = input.replace("1B", "")
- s=""
- for element in input.split():
- try:
- s += (bytearray.fromhex(element).decode())
- except Exception as e:
- pass
- s = str(s.encode('ascii'))
- article = re.sub(r'(\[fS_)..', '', s)
- article = re.sub(r'(\[r).', '', article)
- print(s)
- print(article)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement