Guest User

0x17e1b0 dump

a guest
Oct 22nd, 2015
42
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. start = 0x17e1b0    #Starting position
  2. size = 0x2cb0       #How much to read
  3. outputfilename = hex(start) + '.compressed'     #Compute output filename
  4. with open('shared.bin','rb') as f:              #Open file for binary reading
  5.                                                 #Will automatically close when loop exits
  6.     with open(outputfilename,'wb') as g:        #Open output file for writing
  7.         f.seek(start)                           #Move file position cursor to start position
  8.         g.write(f.read(size))                   #Copy SIZE bytes from the input to output file
  9.  
  10. #At this point both files close because of the WITH statement
RAW Paste Data