Skip to content

Instantly share code, notes, and snippets.

@lbeschastny
Created October 23, 2015 12:56
Show Gist options
  • Save lbeschastny/32d76f22f7712ed74ac1 to your computer and use it in GitHub Desktop.
Save lbeschastny/32d76f22f7712ed74ac1 to your computer and use it in GitHub Desktop.
Extract extract-unzipsfx binary from 7z sfx archive (using 7z archive it was built from)
#!/bin/bash
if [ "$#" -lt 2 ]; then
echo ""
echo "Usage: extract-unzipsfx <SFX_EXE_PATH> <7Z_ARCHIVE_PATH>"
echo ""
exit 1
fi
head -c $(expr `wc -c < $1` - `wc -c < $2`) $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment