Add craptev1-v1.1 and crapto1-v3.3

This commit is contained in:
2023-04-16 03:06:44 +08:00
parent d4a6fd023e
commit c2669df89e
12 changed files with 11358 additions and 18 deletions

View File

@ -13,8 +13,8 @@ LDFLAGS= -Wl,--allow-multiple-definition
all: solve_bs solve_piwi_bs solve_piwi libnfc_crypto1_crack
CRAPTEV1 = craptev1-v1.1/craptev1.c -I craptev1-v1.1/
CRAPTO1 = crapto1-v3.3/crapto1.c crapto1-v3.3/crypto1.c -I crapto1-v3.3/
CRYPTO1_BS = crypto1_bs.c crypto1_bs_crack.c
CRAPTO1 = crapto1-v3.3/crapto1.c crapto1-v3.3/crypto1.c -I crapto1-v3.3/
CRYPTO1_BS = crypto1_bs.c crypto1_bs_crack.c
solve_bs:
$(CC) $(CFLAGS) $@.c $(CRYPTO1_BS) $(CRAPTO1) ${CRAPTEV1} -o $@ -lpthread -lm $(LDFLAGS)
@ -31,17 +31,6 @@ libnfc_crypto1_crack:
clean:
rm -f solve.so solve_bs solve_piwi_bs solve_piwi libnfc_crypto1_crack
get_craptev1:
echo 'Stop being lazy, find your own file!'
wget http://crapto1.netgarage.org/craptev1-v1.1.tar.xz
tar Jxvf craptev1-v1.1.tar.xz
get_crapto1:
echo 'Stop being lazy, find your own file!'
wget http://crapto1.netgarage.org/crapto1-v3.3.tar.xz
mkdir crapto1-v3.3
tar Jxvf crapto1-v3.3.tar.xz -C crapto1-v3.3
# Windows cross compilation
MINGW32 = i686-w64-mingw32-gcc
MINGW64 = x86_64-w64-mingw32-gcc
@ -68,4 +57,3 @@ solve_piwi32.exe:
solve_piwi64.exe:
$(MINGW64) $(CFLAGS) solve_piwi.c $(CRYPTO1_BS) $(CRAPTO1) ${CRAPTEV1} -static -o $@ -lpthread