mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-27 18:38:25 +00:00
e47030ed7d
This release markes the fusion of "hashcat" and "oclHashcat" into "hashcat". It combines all features of all hashcat projects in one project.
85 lines
2.2 KiB
Bash
Executable File
85 lines
2.2 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
##
|
|
## Author......: Jens Steube <jens.steube@gmail.com>
|
|
## License.....: MIT
|
|
##
|
|
|
|
export IN=$HOME/hashcat
|
|
export OUT=$HOME/xy/hashcat-3.00
|
|
|
|
rm -rf $OUT
|
|
rm -rf $OUT.7z
|
|
|
|
mkdir -p $OUT
|
|
mkdir -p $OUT/include
|
|
|
|
cp $IN/hashcat??.exe $OUT/
|
|
cp $IN/hashcat??.bin $OUT/
|
|
cp $IN/hashcat.hcstat $OUT/
|
|
cp $IN/hashcat.hctune $OUT/
|
|
|
|
cp -r $IN/docs $OUT/
|
|
cp -r $IN/charsets $OUT/
|
|
cp -r $IN/masks $OUT/
|
|
cp -r $IN/rules $OUT/
|
|
cp -r $IN/extra $OUT/
|
|
cp $IN/example.dict $OUT/
|
|
cp $IN/example[0123456789]*.hash $OUT/
|
|
cp $IN/example[0123456789]*.cmd $OUT/
|
|
|
|
cp -r $IN/include/constants.h $OUT/include
|
|
cp -r $IN/include/kernel_functions.c $OUT/include
|
|
cp -r $IN/include/kernel_vendor.h $OUT/include
|
|
cp -r $IN/include/rp_kernel.h $OUT/include
|
|
cp -r $IN/OpenCL $OUT/
|
|
|
|
# since for the binary distribution we still use .bin, we need to rewrite the commands
|
|
# within the example*.sh files
|
|
|
|
for example in example[0123456789]*.sh; do
|
|
|
|
sed 's!./hashcat !./hashcat64.bin !' $IN/${example} > $OUT/${example}
|
|
|
|
done
|
|
|
|
dos2unix $OUT/masks/*.hcmask
|
|
dos2unix $OUT/rules/*.rule
|
|
dos2unix $OUT/rules/hybrid/*.rule
|
|
dos2unix $OUT/docs/*
|
|
dos2unix $OUT/example*
|
|
|
|
unix2dos $OUT/masks/*.hcmask
|
|
unix2dos $OUT/rules/*.rule
|
|
unix2dos $OUT/rules/hybrid/*.rule
|
|
unix2dos $OUT/docs/*
|
|
unix2dos $OUT/example*.cmd
|
|
unix2dos $OUT/include/*
|
|
unix2dos $OUT/OpenCL/*
|
|
unix2dos $OUT/hashcat.hctune
|
|
|
|
chmod 755 $OUT
|
|
chmod 755 $OUT/rules
|
|
chmod 644 $OUT/rules/*
|
|
chmod 755 $OUT/docs
|
|
chmod 644 $OUT/docs/*
|
|
chmod 755 $OUT/charsets
|
|
chmod 755 $OUT/charsets/*
|
|
chmod 755 $OUT/masks
|
|
chmod 644 $OUT/masks/*
|
|
chmod 644 $OUT/example*
|
|
chmod 755 $OUT/example*.sh
|
|
chmod 755 $OUT/extra
|
|
chmod 755 $OUT/extra/tab_completion/*.sh
|
|
chmod 755 $OUT/extra/tab_completion/install
|
|
chmod 755 $OUT/include
|
|
chmod 644 $OUT/include/*
|
|
chmod 755 $OUT/OpenCL
|
|
chmod 644 $OUT/OpenCL/*
|
|
chmod 644 $OUT/*.exe
|
|
chmod 755 $OUT/*.bin
|
|
chmod 644 $OUT/hashcat.hcstat
|
|
chmod 644 $OUT/hashcat.hctune
|
|
|
|
time 7z a -t7z -m0=lzma2:d31 -mx=9 -mmt=8 -ms=on $OUT.7z $OUT
|