#!/bin/sh echo "Don't forget to update this script with the change-log! Press ENTER to start..." read NAME="rarcrack" VERSION="0.2" SOURCE="http://sourceforge.net/projects/rarcrack/files/rarcrack-$VERSION/[Unnamed%20release]/rarcrack-$VERSION.tar.bz2" CONFIGURE="--prefix=/usr/local" DATE=`date '+%Y/%m/%d'` export CFLAGS="-march=i486 -mtune=i686 -Os -pipe" export CXXFLAGS="-march=i486 -mtune=i686 -Os -pipe" export LDFLAGS="-Wl,-O1" echo "Downloading essential packages..." tce-load -wi compiletc squashfs-tools-4.x pth pth-dev libxml2 libxml2-dev p7zip unrar zip-unzip cd /tmp/ wget $SOURCE sudo rm -rf $NAME-$VERSION 2>/dev/null sudo rm /tmp/$NAME.tcz /tmp/$NAME.tcz.list /tmp/$NAME.tcz.md5.txt /tmp/$NAME.tcz.dep 2>/dev/null sudo rm -rf /tmp/$NAME 2>/dev/null sudo rm /tmp/$NAME-doc.tcz /tmp/$NAME-doc.tcz.list /tmp/$NAME-doc.tcz.md5.txt /tmp/$NAME-doc.tcz.dep 2>/dev/null sudo rm -rf /tmp/$NAME-doc 2>/dev/null tar xvf $NAME-$VERSION.tar.bz2 cd $NAME-$VERSION sed -i -e "s/PREFIX=\/usr/PREFIX=\/usr\/local/" Makefile make mkdir -p /tmp/$NAME/usr/local/bin cp rarcrack /tmp/$NAME/usr/local/bin/ echo "Creating package..." cd /tmp/ sudo mksquashfs $NAME $NAME.tcz sudo md5sum $NAME.tcz > $NAME.tcz.md5.txt cd $NAME sudo find usr -not -type d > ../$NAME.tcz.list cd /tmp/ SIZE="`du -k $NAME.tcz|cut -f1`k" sudo echo "Title: $NAME.tcz Description: rarcrack Version: $VERSION Author: David Zoltan Kedves Original-site: http://rarcrack.sourceforge.net/ Copying-policy: GPLv2 Size: $SIZE Extension_by: andriscom Comments: If you forget your password for compressed archive (rar, 7z, zip), this program is the solution. This program uses bruteforce algorithm to find correct password. You can specify wich characters will be used in password generations. Warning: Please don't use this program for any illegal things! Built with CFLAGS: -march=i486 -mtune=i686 -Os -pipe Built with CXXFLAGS: -march=i486 -mtune=i686 -Os -pipe Built with LDFLAGS: -Wl,-O1 Usage: rarcrack your_encrypted_archive.ext [--threads thread_num] [--type rar|zip|7z] Everything in [] are optional, rarcrack default crack two threads and autodetect the archive type. If the detection wrong you can specify the correct file type with the type parameter. RarCrack currently crack maximum in 12 threads. Source: $SOURCE Change-log: $DATE Version: $VERSION Current: $DATE Version: $VERSION " > $NAME.tcz.info sudo echo "pth.tcz libxml2.tcz p7zip.tcz unrar.tcz zip-unzip.tcz " > $NAME.tcz.dep cd /tmp/ mkdir packages 2>/dev/null sudo rm packages/$NAME.tar.gz 2>/dev/null tar zcf packages/$NAME.tar.gz $NAME.tcz* echo " Run bcrypt on /tmp/packages/*.tar.gz... give password: tinycore" echo "Run the extension_audit.sh and reboot a clean system to try the packages!" echo "Send it to: tcesubmit@gmail.com"