Skip to content

Instantly share code, notes, and snippets.

@gumblex gumblex/rezip.sh

Created May 15, 2016
Embed
What would you like to do?
Re-zip hacg's encrypted rars
#!/bin/bash
cd "$1"
find . -name "*.rar" -type f -print0 | while IFS= read -r -d $'\0' filename; do
basefn=$(basename "$filename")
basefncut="${basefn%.*}"
unar -p 扶她奶茶 -o /tmp -d "$filename"
7za a -tzip -mx=9 "${filename%.*}".zip /tmp/"$basefncut"/*
rm -rf /tmp/"$basefncut"/
done
@Artoria2e5

This comment has been minimized.

Copy link

Artoria2e5 commented May 17, 2016

要是有判定灰度图换成单通道 JPEG 的就好了(逃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.