From: philsmd Date: Sun, 3 Jan 2016 17:34:38 +0000 (+0100) Subject: the example*.sh files should now also use the native binary, only when we use the... X-Git-Tag: v3.00-beta~565^2 X-Git-Url: https://www.flypig.org.uk/git/?a=commitdiff_plain;h=23db5c9737c6d61f4852e04c5caacbf696038944;p=hashcat.git the example*.sh files should now also use the native binary, only when we use the packaging we need to use .bin --- diff --git a/example0.sh b/example0.sh index 8227431..e9641f4 100755 --- a/example0.sh +++ b/example0.sh @@ -1 +1 @@ -./oclHashcat64.bin -t 32 -a 7 example0.hash ?a?a?a?a example.dict +./oclHashcat -t 32 -a 7 example0.hash ?a?a?a?a example.dict diff --git a/example400.sh b/example400.sh index e0c4dc1..cc92cdb 100755 --- a/example400.sh +++ b/example400.sh @@ -1 +1 @@ -cat example.dict | ./oclHashcat64.bin -m 400 example400.hash +cat example.dict | ./oclHashcat -m 400 example400.hash diff --git a/example500.sh b/example500.sh index 40be27c..91d98d0 100755 --- a/example500.sh +++ b/example500.sh @@ -1 +1 @@ -./oclHashcat64.bin -m 500 example500.hash example.dict +./oclHashcat -m 500 example500.hash example.dict diff --git a/tools/package_bin.sh b/tools/package_bin.sh index 6239643..40596ab 100755 --- a/tools/package_bin.sh +++ b/tools/package_bin.sh @@ -24,12 +24,20 @@ 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]*.sh $OUT/ cp $IN/example[0123456789]*.cmd $OUT/ cp -r $IN/include $OUT/ 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!./oclHashcat !./oclHashcat64.bin !' $IN/${example} > $OUT/${example} + +done + dos2unix $OUT/rules/*.rule dos2unix $OUT/rules/hybrid/*.rule dos2unix $OUT/docs/*