daily pastebin goal
31%
SHARE
TWEET

Untitled

a guest Oct 17th, 2018 65 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
  1. #!/usr/bin/env python
  2. import sys
  3.  
  4. filename = sys.argv[1]
  5.  
  6. with open(filename, 'rb') as f:
  7.     byte = f.read(4)
  8.     num = int.from_bytes(byte, sys.byteorder)
  9.     print(num)
  10.     byte = f.read(256)
  11.     print(byte.decode('ascii'))
  12.     byte = f.read(4)
  13.     num = int.from_bytes(byte, sys.byteorder, signed=True)
  14.     print(num);
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