-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use CircleCI for MinGW builds instead of Travis CI
- Loading branch information
Showing
5 changed files
with
88 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
machine: | ||
services: | ||
- docker | ||
|
||
dependencies: | ||
pre: | ||
- docker pull dhiru/fedora | ||
- docker run --name fedora -v /home/ubuntu/JohnTheRipper:/JohnTheRipper -i -t dhiru/fedora /JohnTheRipper/src/CircleCI-MinGW.sh | ||
|
||
general: | ||
artifacts: | ||
- /home/ubuntu/JohnTheRipper/JtR-MinGW.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
#!/bin/bash | ||
|
||
mkdir -p $HOME/bin | ||
cat >$HOME/bin/mingw64 << 'EOF' | ||
#!/bin/sh | ||
PREFIX=x86_64-w64-mingw32 | ||
export CC=$PREFIX-gcc | ||
export CXX=$PREFIX-g++ | ||
export CPP="$PREFIX-gcc -E" | ||
export RANLIB=$PREFIX-ranlib | ||
export STRIP=$PREFIX-strip | ||
export DLLTOOL=$PREFIX-dlltool | ||
export DLLWRAP=$PREFIX-dllwrap | ||
export AS=$PREFIX-gcc | ||
export AR=$PREFIX-ar | ||
export WINDRES=$PREFIX-windres | ||
export PKGCONFIG=$PREFIX-pkg-config | ||
export OBJDUMP=$PREFIX-objdump | ||
export PATH="/usr/x86_64-w64-mingw32/bin:$PATH" | ||
exec "$@" | ||
EOF | ||
chmod u+x $HOME/bin/mingw64 | ||
|
||
cd /JohnTheRipper/src | ||
export PATH="$HOME/bin:$PATH" | ||
|
||
# stop wine from messing around, during the build phase | ||
# echo -1 > /proc/sys/fs/binfmt_misc/status | ||
# umount /proc/sys/fs/binfmt_misc | ||
|
||
mingw64 ./configure OPENSSL_LIBS="-lssl -lcrypto" --host=x86_64-w64-mingw32 | ||
mingw64 make -sj4 | ||
mv ../run/john ../run/john.exe | ||
|
||
basepath="/usr/x86_64-w64-mingw32/sys-root/mingw/bin" | ||
|
||
find $basepath | grep "dll$" | ||
|
||
cp "$basepath/libwinpthread-1.dll" ../run | ||
cp "$basepath/zlib1.dll" ../run | ||
cp "$basepath/libgomp-10.dll" ../run | ||
cp "$basepath/libgmp-10.dll" ../run | ||
cp "$basepath/libssl-10.dll" ../run | ||
cp "$basepath/libcrypto-10.dll" ../run | ||
cp "$basepath/libgomp-1.dll" ../run | ||
cp "$basepath/libgcc_s_seh-1.dll" ../run | ||
cp "$HOME/mingw64/ssleay32.dll" ../run | ||
cp "$HOME/mingw64/libeay32.dll" ../run | ||
|
||
find ../run | ||
|
||
v=`git rev-parse --short HEAD` | ||
cd .. | ||
zip -r /JohnTheRipper/JtR-MinGW.zip run/ doc/ README.md README README-jumbo | ||
|
||
# crazy testing! | ||
cd /JohnTheRipper/run | ||
/usr/bin/wine john.exe --test |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.