Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- import sys,getopt
- with open(sys.argv[1],"rb") as f:
- block = f.read(6)
- str = ""
- for ch in block:
- str += hex(ord(ch))+" "
- print str
- if str == '0xff 0xd8 0xff 0xdb 0x0 0x84 ':
- print "pixel knot header detected!!!"
- else:
- print "knot a match"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement