All pastes #336632 Raw Edit

Something

public text v1 · immutable
·published 2007-02-02 04:04 UTC
rendered paste body
#!/usr/bin/perl
# decompress firmware files

$hb="PK\x03\x04";
$he="PK\x05\x06";
undef $/;
$bulk = <>;
(@f)= ($bulk =~ m/(?:($hb.*?$he.{18}).*?)+/sg);
for(@f) { $i++; open F, ">fw$i.zip"; print F $_ }