SHARE
TWEET

Untitled

a guest Jul 29th, 2018 210 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/usr/bin/python
  2.  
  3. import sys,getopt
  4.  
  5. with open(sys.argv[1],"rb") as f:
  6.         block = f.read(6)
  7.         str = ""
  8.         for ch in block:
  9.                 str += hex(ord(ch))+" "
  10.         print str
  11.         if str == '0xff 0xd8 0xff 0xdb 0x0 0x84 ':
  12.             print "pixel knot header detected!!!"
  13.         else:
  14.             print "knot a match"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top