-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
KrisWebDev[n01ce] aircrack-ng for Android
Aircrack-ng for Android NDK build or CyanogenMod build system
- Loading branch information
1 parent
925d8d0
commit 49ae7e2
Showing
16 changed files
with
928 additions
and
876 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,231 @@ | ||
# KrisWebDev[n01ce] Android.mk to build aircrack-ng suite for Android | ||
# Android.mk version: 1.0 | ||
|
||
LOCAL_PATH:=$(call my-dir) | ||
|
||
MY_SRC_PTW := src/aircrack-ptw-lib.c | ||
MY_SRC_AC := src/aircrack-ng.c src/crypto.c src/common.c $(MY_SRC_PTW) | ||
MY_OBJS_PTW := src/aircrack-ptw-lib.c | ||
MY_OBJS_AC := src/aircrack-ng.c src/crypto.c src/common.c src/uniqueiv.c $(MY_OBJS_PTW) | ||
MY_OBJS_AD := src/airdecap-ng.c src/crypto.c src/common.c | ||
MY_OBJS_PF := src/packetforge-ng.c src/common.c src/crypto.c | ||
MY_OBJS_AR := src/aireplay-ng.c src/common.c src/crypto.c src/osdep/radiotap/radiotap-parser.c | ||
MY_OBJS_ADU := src/airodump-ng.c src/common.c src/crypto.c src/uniqueiv.c src/osdep/radiotap/radiotap-parser.c | ||
MY_OBJS_AT := src/airtun-ng.c src/common.c src/crypto.c src/osdep/radiotap/radiotap-parser.c | ||
MY_OBJS_IV := src/ivstools.c src/common.c src/crypto.c src/uniqueiv.c | ||
MY_OBJS_AS := src/airserv-ng.c src/common.c src/osdep/radiotap/radiotap-parser.c | ||
MY_OBJS_WS := src/wesside-ng.c src/crypto.c src/common.c src/osdep/radiotap/radiotap-parser.c $(MY_OBJS_PTW) | ||
MY_OBJS_BS := src/besside-ng.c src/crypto.c src/common.c src/osdep/radiotap/radiotap-parser.c $(MY_OBJS_PTW) | ||
MY_OBJS_BC := src/besside-ng-crawler.c | ||
MY_OBJS_AL := src/airolib-ng.c src/crypto.c src/common.c | ||
MY_OBJS_ES := src/easside-ng.c src/common.c src/osdep/radiotap/radiotap-parser.c | ||
MY_OBJS_BUDDY := src/buddy-ng.c src/common.c | ||
MY_OBJS_MI := src/makeivs-ng.c src/common.c src/uniqueiv.c | ||
MY_OBJS_AB := src/airbase-ng.c src/common.c src/crypto.c src/osdep/radiotap/radiotap-parser.c | ||
MY_OBJS_AU := src/airdecloak-ng.c src/common.c src/osdep/radiotap/radiotap-parser.c | ||
MY_OBJS_TT := src/tkiptun-ng.c src/common.c src/crypto.c src/osdep/radiotap/radiotap-parser.c | ||
MY_OBJS_WC := src/wpaclean.c src/osdep/radiotap/radiotap-parser.c | ||
|
||
# removed libcrypto_static | ||
MY_LIBSSL_STATIC := | ||
MY_LIBSSL_SHARED := libssl libcrypto | ||
MY_LIBSQL := libsqlite | ||
|
||
# src/osdep/airpcap.c | ||
# LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/src | ||
# LOCAL_EXPORT_C_INCLUDES += $(LOCAL_PATH)/openssl/include | ||
# LIBAIRPCAP = -DHAVE_AIRPCAP -I$(AC_ROOT)/../developers/Airpcap_Devpack/include | ||
|
||
MY_CFLAGS := -g -W -Wall -O3 -DANDROID -D_REVISION=0 -D_FILE_OFFSET_BITS=64 -Wno-unused-but-set-variable -Wno-array-bounds -I $(LOCAL_PATH)/src -I $(LOCAL_PATH)/openssl/include -I $(LOCAL_PATH)/src/osdep -I $(LOCAL_PATH)/src/osdep/radiotap -I $(LOCAL_PATH)/src/include -D__int8_t_defined -fPIC -mandroid -DANDROID -DOS_ANDROID -DLinux -DHAVE_SQLITE | ||
|
||
MY_OBJS_OSD := src/osdep/network.c src/osdep/file.c src/osdep/osdep.c src/osdep/linux.c src/osdep/linux_tap.c src/osdep/common.c | ||
|
||
|
||
include $(CLEAR_VARS) | ||
# CyanogenMod libopenssl has no LOCAL_EXPORT_C_INCLUDES statement so we need to find the headers. | ||
# You must place this folder into CyanogenMod /external folder so that this Android makefile can find the openssl headers. | ||
LOCAL_MODULE := aircrack-ng | ||
LOCAL_SRC_FILES := $(MY_OBJS_AC) | ||
LOCAL_CFLAGS += $(MY_CFLAGS) | ||
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../openssl/include $(LOCAL_PATH)/../sqlite/dist | ||
LOCAL_STATIC_LIBRARIES := $(MY_LIBSSL_STATIC) | ||
LOCAL_SHARED_LIBRARIES := $(MY_LIBSSL_SHARED) $(MY_LIBSQL) | ||
include $(BUILD_EXECUTABLE) | ||
|
||
|
||
include $(CLEAR_VARS) | ||
LOCAL_MODULE := airdecap-ng | ||
LOCAL_CFLAGS += $(MY_CFLAGS) | ||
LOCAL_SRC_FILES := $(MY_OBJS_AD) | ||
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../openssl/include $(LOCAL_PATH)/../openssl/include | ||
LOCAL_STATIC_LIBRARIES := $(MY_LIBSSL_STATIC) | ||
LOCAL_SHARED_LIBRARIES := $(MY_LIBSSL_SHARED) | ||
include $(BUILD_EXECUTABLE) | ||
|
||
|
||
include $(CLEAR_VARS) | ||
LOCAL_MODULE := packetforge-ng | ||
LOCAL_CFLAGS += $(MY_CFLAGS) | ||
LOCAL_SRC_FILES := $(MY_OBJS_PF) | ||
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../openssl/include | ||
LOCAL_STATIC_LIBRARIES := $(MY_LIBSSL_STATIC) | ||
LOCAL_SHARED_LIBRARIES := $(MY_LIBSSL_SHARED) | ||
include $(BUILD_EXECUTABLE) | ||
|
||
|
||
include $(CLEAR_VARS) | ||
LOCAL_MODULE := aireplay-ng | ||
LOCAL_CFLAGS += $(MY_CFLAGS) | ||
LOCAL_SRC_FILES := $(MY_OBJS_OSD) $(MY_OBJS_AR) | ||
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../openssl/include | ||
LOCAL_STATIC_LIBRARIES := $(MY_LIBSSL_STATIC) | ||
LOCAL_SHARED_LIBRARIES := $(MY_LIBSSL_SHARED) | ||
include $(BUILD_EXECUTABLE) | ||
|
||
|
||
include $(CLEAR_VARS) | ||
LOCAL_MODULE := airodump-ng | ||
LOCAL_CFLAGS += $(MY_CFLAGS) | ||
LOCAL_SRC_FILES := $(MY_OBJS_OSD) $(MY_OBJS_ADU) | ||
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../openssl/include | ||
LOCAL_STATIC_LIBRARIES := $(MY_LIBSSL_STATIC) | ||
LOCAL_SHARED_LIBRARIES := $(MY_LIBSSL_SHARED) # libpcap libsqlite3 | ||
include $(BUILD_EXECUTABLE) | ||
|
||
|
||
include $(CLEAR_VARS) | ||
LOCAL_MODULE := airserv-ng | ||
LOCAL_CFLAGS += $(MY_CFLAGS) | ||
LOCAL_SRC_FILES := $(MY_OBJS_OSD) $(MY_OBJS_AS) | ||
LOCAL_SHARED_LIBRARIES := libnl_2 | ||
include $(BUILD_EXECUTABLE) | ||
|
||
|
||
include $(CLEAR_VARS) | ||
LOCAL_MODULE := airtun-ng | ||
LOCAL_CFLAGS += $(MY_CFLAGS) | ||
LOCAL_SRC_FILES := $(MY_OBJS_OSD) $(MY_OBJS_AT) | ||
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../openssl/include | ||
LOCAL_STATIC_LIBRARIES := $(MY_LIBSSL_STATIC) | ||
LOCAL_SHARED_LIBRARIES := $(MY_LIBSSL_SHARED) | ||
include $(BUILD_EXECUTABLE) | ||
|
||
|
||
include $(CLEAR_VARS) | ||
LOCAL_MODULE := ivstools | ||
LOCAL_CFLAGS += $(MY_CFLAGS) | ||
LOCAL_SRC_FILES := $(MY_OBJS_IV) | ||
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../openssl/include | ||
LOCAL_STATIC_LIBRARIES := $(MY_LIBSSL_STATIC) | ||
LOCAL_SHARED_LIBRARIES := $(MY_LIBSSL_SHARED) | ||
include $(BUILD_EXECUTABLE) | ||
|
||
|
||
include $(CLEAR_VARS) | ||
LOCAL_MODULE := kstats | ||
LOCAL_CFLAGS += $(MY_CFLAGS) | ||
LOCAL_SRC_FILES := src/kstats.c | ||
include $(BUILD_EXECUTABLE) | ||
|
||
|
||
include $(CLEAR_VARS) | ||
# Edit wesside-ng.c to replace #include <sys/termios.h> by #include <termios.h> | ||
LOCAL_MODULE := wesside-ng | ||
LOCAL_CFLAGS += $(MY_CFLAGS) | ||
LOCAL_SRC_FILES := $(MY_OBJS_OSD) $(MY_OBJS_WS) | ||
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../openssl/include | ||
LOCAL_STATIC_LIBRARIES := $(MY_LIBSSL_STATIC) | ||
LOCAL_SHARED_LIBRARIES := $(MY_LIBSSL_SHARED) | ||
# Buggy -lz LDLIB : http://stackoverflow.com/questions/23182819/android-ndk-fatal-error-zlib-h-no-such-file-or-directory | ||
#LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib -lz | ||
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../zlib/src | ||
LOCAL_SHARED_LIBRARIES += libz | ||
include $(BUILD_EXECUTABLE) | ||
|
||
|
||
include $(CLEAR_VARS) | ||
LOCAL_MODULE := easside-ng | ||
LOCAL_CFLAGS += $(MY_CFLAGS) | ||
LOCAL_SRC_FILES := $(MY_OBJS_OSD) $(MY_OBJS_ES) | ||
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../zlib/src | ||
LOCAL_SHARED_LIBRARIES += libz | ||
include $(BUILD_EXECUTABLE) | ||
|
||
include $(CLEAR_VARS) | ||
LOCAL_MODULE := buddy-ng | ||
LOCAL_CFLAGS += $(MY_CFLAGS) | ||
LOCAL_SRC_FILES := $(MY_OBJS_BUDDY) | ||
include $(BUILD_EXECUTABLE) | ||
|
||
# error: unknown type name 'pthread_cond_t': | ||
# Add #include <pthread.h> in besside-ng.c | ||
include $(CLEAR_VARS) | ||
LOCAL_MODULE := besside-ng | ||
LOCAL_CFLAGS += $(MY_CFLAGS) | ||
LOCAL_SRC_FILES := $(MY_OBJS_OSD) $(MY_OBJS_BS) | ||
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../openssl/include | ||
LOCAL_STATIC_LIBRARIES := $(MY_LIBSSL_STATIC) | ||
LOCAL_SHARED_LIBRARIES := $(MY_LIBSSL_SHARED) | ||
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../zlib/src | ||
LOCAL_SHARED_LIBRARIES += libz | ||
include $(BUILD_EXECUTABLE) | ||
|
||
|
||
include $(CLEAR_VARS) | ||
LOCAL_MODULE := makeivs-ng | ||
LOCAL_CFLAGS += $(MY_CFLAGS) | ||
LOCAL_SRC_FILES := $(MY_OBJS_MI) | ||
include $(BUILD_EXECUTABLE) | ||
|
||
# error: unknown type name 'pthread_cond_t': | ||
# Add #include <pthread.h> in airolib-ng.c | ||
include $(CLEAR_VARS) | ||
LOCAL_MODULE := airolib-ng | ||
LOCAL_CFLAGS += $(MY_CFLAGS) -DHAVE_REGEXP | ||
LOCAL_SRC_FILES := $(MY_OBJS_AL) | ||
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../openssl/include $(LOCAL_PATH)/../sqlite/dist | ||
LOCAL_STATIC_LIBRARIES := $(MY_LIBSSL_STATIC) | ||
LOCAL_SHARED_LIBRARIES := $(MY_LIBSSL_SHARED) $(MY_LIBSQL) | ||
include $(BUILD_EXECUTABLE) | ||
|
||
|
||
# This won't throw compilation error but runtime error... | ||
# Edit linux_tap.c: Replace "/dev/net/tun" by "/dev/tun" | ||
include $(CLEAR_VARS) | ||
LOCAL_MODULE := airbase-ng | ||
LOCAL_CFLAGS += $(MY_CFLAGS) | ||
LOCAL_SRC_FILES := $(MY_OBJS_OSD) $(MY_OBJS_AB) | ||
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../openssl/include | ||
LOCAL_STATIC_LIBRARIES := $(MY_LIBSSL_STATIC) | ||
LOCAL_SHARED_LIBRARIES := $(MY_LIBSSL_SHARED) | ||
include $(BUILD_EXECUTABLE) | ||
|
||
|
||
include $(CLEAR_VARS) | ||
LOCAL_MODULE := airdecloak-ng | ||
LOCAL_CFLAGS += $(MY_CFLAGS) | ||
LOCAL_SRC_FILES := $(MY_OBJS_AU) | ||
LOCAL_SHARED_LIBRARIES := libnl_2 | ||
include $(BUILD_EXECUTABLE) | ||
|
||
|
||
include $(CLEAR_VARS) | ||
LOCAL_MODULE := tkiptun-ng | ||
LOCAL_CFLAGS += $(MY_CFLAGS) | ||
LOCAL_SRC_FILES := $(MY_OBJS_OSD) $(MY_OBJS_TT) | ||
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../openssl/include | ||
LOCAL_STATIC_LIBRARIES := $(MY_LIBSSL_STATIC) | ||
LOCAL_SHARED_LIBRARIES := $(MY_LIBSSL_SHARED) | ||
include $(BUILD_EXECUTABLE) | ||
|
||
|
||
# Add #include <pthread.h> in wpaclean.c | ||
include $(CLEAR_VARS) | ||
LOCAL_MODULE := wpaclean | ||
LOCAL_CFLAGS += $(MY_CFLAGS) | ||
LOCAL_SRC_FILES := $(MY_OBJS_OSD) $(MY_OBJS_WC) | ||
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../openssl/include | ||
LOCAL_STATIC_LIBRARIES := $(MY_LIBSSL_STATIC) | ||
LOCAL_SHARED_LIBRARIES := $(MY_LIBSSL_SHARED) | ||
include $(BUILD_EXECUTABLE) | ||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.