Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- help = """ ==============
- = Hexbuster =
- ==============
- This program decodes hex messages
- for you. :)
- - By: Nite
- Arguments: hexbuster [--help] FILE
- FILE The hex codes are stored in a file, line
- by line. This is the filename of it. Make sure
- to put how many codes in the file at the start.
- --help Displays this help message.
- """
- import sys
- import string
- if sys.argv[1] == '--help':
- print help
- exit()
- hex = sys.argv[1]
- buster = open('./'+hex, 'r')
- NumHex = buster.readline()
- r = range(1, NumHex)
- for i in r:
- HexCode = buster.readline()
- OutChar = chr(HexCode)
- print OutChar
- exit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement