a guest Jul 29th, 2018 210 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- import sys,getopt
- with open(sys.argv,"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!!!"
- print "knot a match"
RAW Paste Data