wok-current rev 19210

Add crunch & airgeddon
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 14 09:11:06 2016 +0200 (2016-06-14)
parents f7ec9f320ebe
children d39398e9bbc8
files airgeddon/receipt crunch/receipt linld/stuff/tobzimage
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/airgeddon/receipt	Tue Jun 14 09:11:06 2016 +0200
     1.3 @@ -0,0 +1,22 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="airgeddon"
     1.7 +VERSION="3.31"
     1.8 +HASH="5d18ec5583c8870fd92e7e60bd50af3e6175b6b5"
     1.9 +CATEGORY="network"
    1.10 +SHORT_DESC="Multi-use bash script for Linux systems to audit wireless networks."
    1.11 +MAINTAINER="pascal.bellard@slitaz.org"
    1.12 +LICENSE="GPL2"
    1.13 +TARBALL="$PACKAGE-$HASH.sh"
    1.14 +WEB_SITE="https://github.com/v1s1t0r1sh3r3/airgeddon"
    1.15 +WGET_URL="$WEB_SITE/raw/$HASH/$TARBALL"
    1.16 +
    1.17 +DEPENDS="bash iw aircrack-ng curl crunch mdk3"
    1.18 +
    1.19 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.20 +genpkg_rules()
    1.21 +{
    1.22 +	mkdir -p $fs/usr/sbin
    1.23 +	cp -a $src/$TARBALL $fs/usr/sbin/$PACKAGE
    1.24 +	chmod +x $fs/usr/sbin/$PACKAGE
    1.25 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/crunch/receipt	Tue Jun 14 09:11:06 2016 +0200
     2.3 @@ -0,0 +1,28 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="crunch"
     2.7 +VERSION="3.6"
     2.8 +CATEGORY="network"
     2.9 +SHORT_DESC="Wordlist generator."
    2.10 +MAINTAINER="pascal.bellard@slitaz.org"
    2.11 +LICENSE="GPL2"
    2.12 +TARBALL="$PACKAGE-$VERSION.tgz"
    2.13 +WEB_SITE="http://wiki.backtrack-fr.net/index.php/Crunch"
    2.14 +WGET_URL="http://tenet.dl.sourceforge.net/project/crunch-wordlist/crunch-wordlist/$TARBALL"
    2.15 +
    2.16 +BUILD_DEPENDS="sudo"
    2.17 +
    2.18 +# Rules to configure and make the package.
    2.19 +compile_rules()
    2.20 +{
    2.21 +	make &&
    2.22 +	make DESTDIR=$DESTDIR install
    2.23 +}
    2.24 +
    2.25 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.26 +genpkg_rules()
    2.27 +{
    2.28 +	mkdir -p $fs/usr/share
    2.29 +	cp -a $install/usr/bin $fs/usr
    2.30 +	cp -a $install/usr/share/crunch $fs/usr/share
    2.31 +}
     3.1 --- a/linld/stuff/tobzimage	Sun Jun 12 21:25:27 2016 +0200
     3.2 +++ b/linld/stuff/tobzimage	Tue Jun 14 09:11:06 2016 +0200
     3.3 @@ -40,7 +40,7 @@
     3.4  create_bzImage()
     3.5  {
     3.6  	ddq bs=512 count=1 of=$1
     3.7 -	[ " $(get 0x1E6 $1 4)" == " 1397443653" ] && iselks=1
     3.8 +	[ "$(od -j 486 $1 -An -N 4 -a|sed 's/ //g')" == "ELKS" ] && iselks=1
     3.9  	[ " $(get 0x3F $1 2)" == " 15080" ] && islinux001=1 && cp $1 $1$$
    3.10  	# from http://hg.slitaz.org/wok/file/7184ec55b1aa/linux/stuff/linux-header.u
    3.11  	uudecode <<EOT | ddq of=$1 conv=notrunc
    3.12 @@ -75,6 +75,12 @@
    3.13  		rm -f $1$$
    3.14  	else
    3.15  		ddq bs=512 count=$setupsz >> $1
    3.16 +		if [ "$(od -j 1026 $1 -An -N 4 -a|sed 's/ //g')" == "HdrS" ] &&
    3.17 +		   [ $(($(get 1041 $1 1) & 1)) -eq 1 ]; then
    3.18 +			echo "Already a bzImage file, abort."
    3.19 +			rm -f $1
    3.20 +			exit 1
    3.21 +		fi
    3.22  	fi
    3.23  	store 8 497 $(($setupsz+1)) $1
    3.24  	syssz=$(get 500 $1 2)