Skip to content

Instantly share code, notes, and snippets.

@taralbass
taralbass / gist:b4279bd2796970d5264b
Created June 26, 2014 23:51
zip eocd breaking rubyzip extraction
[1] pry(#<Zip::File>)> buf
=> "\xE4\xCD0\r\xAA~\xA6Zx!\x8DL\x03\xDB\x14p.*\xA7Q\xC2\x7Fe\xE6\xCFf-\xD5!\xF3l+m=0!e\x0EP\t.\xF9f%\x9F\xE9\x06\xEB\xDA\x17\xF1;\xCA\xAB\x98\xA2<b\x1F;o\x13\xF8\x91\xFB#\xF3\xB6\x88\x009\x8A\x92\xF7\x01\xE2\x11j\xCA\x9C\x04\xD4IV)\x9Da\xF2\v\xC9@h\xC9~\x89\x93p\x86\x81!?\r\xE9\xB2\x98\xC2\xF96:C\x7F\xE0^y\xD8\x01\bs%\x9D\xE0\xD3\xD8\xEDz\x01v\xEB\xC2\xBF\x1F\x9F\xB8\xA23\xDD\x1F?\xE2;\x9A\xCC\xCA\xF1\xD9\xBA\xD9\xBE\xBD\xD8\xAC\xA85Q\x8C\xC2\xC4\x11\x9D\xA0\xEB\xACYG\xD9\x8A\xCD\xFE\xCD\xB3&\xD6\xF9\xEB35\x82a}\xA93\x91\a \x89X62\xCF\x15\xB2\xAD3\xAB}\x80\x84\xBC\x8A\xF5U \xB3\xDD\xDC\xD5RE*Csl\xD6Q\xBF\x06}\x16N\x17<N\x12\x06\x1D\xFA\x9D\xFE\xEB\xC3\x9A\r\x84\xF5}|U\xD0\xF3\xB6{\xE8\xD5\xAD\xF2S~\xD7\xF7z\x9Dk\x7F\x18\x04\x1Et\xDC\xCB\x03l\xCE\n2\x8F`\x1A\x1C\xC8I8\x86-\xF4\x1C?S\"S\xD9o\xCD:\x82\xE6\t%\xDE\xEC\xF3z\xE7\x9D[\xA4\x87\x8F_\xA73_\xA0w\x9E\xEC\r+\x91\xA9\x13\r\xBB\x8D\x98\x84\xD86\x06X\x14\xA7\xA23\xBD\xC1\x9A\xCB\x8D8|\n;O\xF8\x99\x86-(\a\x12\xCB\xA5\xAE\x96\x8E\xA9