[原创] Compile aircrack-ng for MacOS / iOS
发表于:
2017-7-21 18:51
4612
[原创] Compile aircrack-ng for MacOS / iOS
################################
### Download Source
################################
wget http://download.aircrack-ng.org/aircrack-ng-1.2-rc4.tar.gz
wget http://http.debian.net/debian/pool/main/a/aircrack-ng/aircrack-ng_1.2-0~rc4-2.debian.tar.xz
tar zxvf aircrack-ng-1.2-rc4.tar.gz
tar Jxvf aircrack-ng_1.2-0-rc4-2.debian.tar.xz ################################
### Patch
################################
mv aircrack-ng-1.2-rc4 aircrack-ng.orig
patch -p0 -i debian/patches/00_typos.patch
mv aircrack-ng.orig aircrack-ng-1.2-0~rc4.orig
patch -p0 -i debian/patches/02_bashisms.patch
mv aircrack-ng-1.2-0~rc4.orig a
patch -p0 -i debian/patches/01_reproducible_build.patch
patch -p0 -i debian/patches/03_fix_trap_usage_dash.patch
patch -p0 -i debian/patches/04_memory_access.patch
mv a aircrack-ng-1.2-rc4 ################################
### MacOS x86_64
################################
cd aircrack-ng-1.2-rc4
make
make install DESTDIR= ################################
### iOS ARM
################################
cd aircrack-ng-1.2-rc4 # arm patch
sed -i "" '12,$d' autocfg
echo "NEWSSE=false" > common.cfg DEVROOT=$(xcrun --sdk iphoneos --show-sdk-platform-path)/Developer
IOSSDKROOT=$(xcrun --sdk iphoneos --show-sdk-path)
export SDKROOT=$IOSSDKROOT
export CC="$(xcrun -f gcc) -arch armv7"
export CXX="$(xcrun -f g++) -arch armv7"
export LD=$DEVROOT/usr/bin/ld
export AR=$DEVROOT/usr/bin/ar
export AS=$DEVROOT/usr/bin/as
export NM=$DEVROOT/usr/bin/nm
export RANLIB=$DEVROOT/usr/bin/ranlib
export CFLAGS="-I$SDKROOT/usr/include/ -arch armv7"
export LDFLAGS="-L$SDKROOT/usr/lib/ -arch armv7"
export CPPFLAGS=$CFLAGS
export CXXFLAGS=$CFLAGS make
make install DESTDIR=
[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课