1#!/bin/bash 2find ../mirror/files.dinknetwork.com/ -iname "*.dmod" | xargs -I{} cp -a {} . 3# Fix up missing tar trailing block 4# Won't work: need to bunzip first.. 5#dd if=/dev/zero bs=512 count=2 of=reference.bin 2>/dev/null 6#for i in *.dmod; do 7# size=$(stat --printf=%s $i) 8# skip=$((size - 2*512)) 9# dd if=$i bs=1 count=1024 skip=$skip of=cur.bin 2>/dev/null 10# if ! diff reference.bin cur.bin; then 11# dd if=/dev/zero bs=512 count=2 >> $i 2>/dev/null 12# fi 13#done 14#rm cur.bin 15 16find -iname "*.dmod" | xargs -n1 tar xjf 17 18find -type d -print0 | xargs -0 chmod 755 19find -type f -print0 | xargs -0 chmod 644 20 21# This one extracts everything in the current directory 22#find -iname "dir.ff" | xargs ./ffrextract 23./ffrextract 24 25# Actually extracting dir.ff's was optional for this, since they are 26# hard-limited to 50 frames 27find -iname "*.bmp" | grep -i -o -E '[0-9]+\.bmp' | sed 's/\.bmp$//i' | sort -n | less 28# => highest abused sequence is 69 29