Commit 27271231 authored by Mati's avatar Mati

Imported Upstream version 1.2-beta3

parent 3929d7eb
language: c
compiler:
- gcc
- clang
install:
- sudo apt-get update
- sudo apt-get install libnl-3-dev libgcrypt11-dev zlib1g-dev libsqlite3-dev libpcap-dev libssl-dev libnl-genl-3-dev
script: make sqlite=true unstable=true && make check sqlite=true unstable=true && make clean && make sqlite=true unstable=true gcrypt=true && make check sqlite=true unstable=true gcrypt=true
Version 1.2-beta3 (changes from aircrack-ng 1.2-beta2) - Released 31 March 2014:
* Finally properly fixed the buffer overflow.
* Fixed channel parsing (eg 108, 125) and updated radiotap parser.
* Various other small fixes.
Version 1.2-beta2 (changes from aircrack-ng 1.2-beta1) - Released 30 November 2013:
* Airbase-ng: Fixed order of IE when creating soft Access Point.
* Airbase-ng: Fixed Caffe Latte Attack not working for all clients.
......
......@@ -6,6 +6,9 @@
- libsqlite3-devel
* On windows, cygwin has to be used and it also requires w32api and gcc-4 package.
* If you want to use Airpcap, the 'developer' directory from the CD is required.
* Linux: LibNetlink 1 or 3. It can be disabled by setting the flag 'libnl' to false.
See Makefile flags below.
* Linux: pkg-config
=== Compilating ===
......@@ -51,6 +54,9 @@ to compile and install the suite:
LibNL 1: libnl-dev
LibNL 3: libnl-3-dev and libnl-genl-3-dev.
* pcre: Add support for regular expression matching for ESSID in airodump-ng.
Dependencies (debian): libpcre3-dev
Example:
* Compiling:
......
......@@ -72,13 +72,6 @@ Aircrack-ng
Solution: Rename the directory or move the database into another directory.
Airbase-ng
----------
Problem: SSID are not displayed correctly (when scanning for networks) when using airbase-ng with r8187 driver.
Reason: Beacons are truncated (the beginning is missing) when sent in the air.
Solution: None at this time (we'll try to fix it for next release)
Airodump-ng
-----------
......@@ -95,9 +88,7 @@ Aircrack-ng
Problem: Aircrack-ng doesn't build on Cygwin64
Solution: None at this time. Build it using 32 bit cygwin.
Problem: Aircrack-ng doesn't build with gcc 4.5
Solution: Use an older version of gcc such as 4.3 for now (will be fixed in stable release).
Sample files
============
......
1.2-beta2
\ No newline at end of file
1.2-beta3
......@@ -34,9 +34,17 @@ ifeq ($(subst TRUE,true,$(filter TRUE true,$(sqlite) $(SQLITE))),true)
COMMON_CFLAGS += -I/usr/local/include -DHAVE_SQLITE
endif
ifeq ($(pcre), true)
PCRE = true
endif
ifeq ($(PCRE), true)
COMMON_CFLAGS += $(shell pcre-config --cflags) -DHAVE_PCRE
endif
ifeq ($(OSNAME), cygwin)
COMMON_CFLAGS += -DCYGWIN
else ifeq ($(libnl), true)
else ifneq ($(libnl), false)
NL3xFOUND := $(shell $(PKG_CONFIG) --atleast-version=3.2 libnl-3.0 && echo Y)
ifneq ($(NL3xFOUND),Y)
NL31FOUND := $(shell $(PKG_CONFIG) --exact-version=3.1 libnl-3.1 && echo Y)
......
.TH AIRBASE-NG 8 "November 2013" "Version 1.2-beta2"
.TH AIRBASE-NG 8 "March 2014" "Version 1.2-beta3"
.SH NAME
airbase-ng - multi-purpose tool aimed at attacking clients as opposed to the Access Point (AP) itself
......
.TH AIRCRACK-NG 1 "November 2013" "Version 1.2-beta2"
.TH AIRCRACK-NG 1 "March 2014" "Version 1.2-beta3"
.SH NAME
aircrack-ng - a 802.11 WEP / WPA-PSK key cracker
......
.TH AIRDECAP-NG 1 "November 2013" "Version 1.2-beta2"
.TH AIRDECAP-NG 1 "March 2014" "Version 1.2-beta3"
.SH NAME
airdecap-ng - decrypt a WEP/WPA crypted pcap file
......
.TH AIRDECLOAK-NG 1 "November 2013" "Version 1.2-beta2"
.TH AIRDECLOAK-NG 1 "March 2014" "Version 1.2-beta3"
.SH NAME
airuncloak-ng - Removes wep cloaked framed from a pcap file.
......
.TH AIRDRIVER-NG 8 "November 2013" "Version 1.2-beta2"
.TH AIRDRIVER-NG 8 "March 2014" "Version 1.2-beta3"
.SH NAME
airdriver-ng - automatically install/uninstall and patch drivers and 802.11 stacks
......
.TH AIREPLAY-NG 8 "November 2013" "Version 1.2-beta2"
.TH AIREPLAY-NG 8 "March 2014" "Version 1.2-beta3"
.SH NAME
aireplay-ng - inject packets into a wireless network to generate traffic
......
.TH AIRMON-NG 8 "November 2013" "Version 1.2-beta2"
.TH AIRMON-NG 8 "March 2014" "Version 1.2-beta3"
.SH NAME
airmon-ng - bash script designed to turn wireless cards into monitor mode.
......
.TH AIRMON-ZC 8 "November 2013" "Version 1.2-beta2"
.TH AIRMON-ZC 8 "March 2014" "Version 1.2-beta3"
.SH NAME
airmon-zc - bash script designed to turn wireless cards into monitor mode, Zero_Chaos version
......
.TH AIRODUMP-NG-OUI-UPDATE 8 "November 2013" "Version 1.2-beta2"
.TH AIRODUMP-NG-OUI-UPDATE 8 "March 2014" "Version 1.2-beta3"
.SH NAME
airodump-ng-oui-updater - IEEE oui list updater for airodump-ng
......
.TH AIRODUMP-NG 8 "November 2013" "Version 1.2-beta2"
.TH AIRODUMP-NG 8 "March 2014" "Version 1.2-beta3"
.SH NAME
airodump-ng - a wireless packet capture tool for aircrack-ng
......@@ -81,6 +81,12 @@ It will only show networks, matching the given bssid ^ netmask combination. Need
.TP
.I -a
It will only show associated clients.
.TP
.I -N, --essid
Filter APs by ESSID. Can be used several times to match a set of ESSID.
.TP
.I -R, --essid-regex
Filter APs by ESSID using a regular expression.
.SH INTERACTION
.PP
.BI airodump-ng
......
.TH AIROLIB-NG 1 "November 2013" "Version 1.2-beta2"
.TH AIROLIB-NG 1 "March 2014" "Version 1.2-beta3"
.SH NAME
airolib-ng - manage and create a WPA/WPA2 pre-computed hashes tables
......
.TH AIRSERV-NG 8 "November 2013" "Version 1.2-beta2"
.TH AIRSERV-NG 8 "March 2014" "Version 1.2-beta3"
.SH NAME
airserv-ng - a wireless card server
......
.TH AIRTUN-NG 8 "November 2013" "Version 1.2-beta2"
.TH AIRTUN-NG 8 "March 2014" "Version 1.2-beta3"
.SH NAME
airtun-ng - a virtual tunnel interface creator for aircrack-ng
......
.TH BESSIDE-NG-CRAWLER 1 "November 2013" "Version 1.2-beta2"
.TH BESSIDE-NG-CRAWLER 1 "March 2014" "Version 1.2-beta3"
.SH NAME
......
.TH BESSIDE-NG 8 "November 2013" "Version 1.2-beta2"
.TH BESSIDE-NG 8 "March 2014" "Version 1.2-beta3"
.SH NAME
besside-ng - crack a WEP or WPA key without user intervention and collaborate with WPA cracking statistics
......
.TH BUDDY-NG 1 "November 2013" "Version 1.2-beta2"
.TH BUDDY-NG 1 "March 2014" "Version 1.2-beta3"
.SH NAME
buddy-ng - a tool to work with easside-ng
......
.TH EASSIDE-NG 8 "November 2013" "Version 1.2-beta2"
.TH EASSIDE-NG 8 "March 2014" "Version 1.2-beta3"
.SH NAME
easside-ng - an auto-magic tool which allows you to communicate via an WEP-encrypted AP without knowing the key
......
.TH IVSTOOLS 1 "November 2013" "Version 1.2-beta2"
.TH IVSTOOLS 1 "March 2014" "Version 1.2-beta3"
.SH NAME
ivstools - extract IVs from a pcap file or merges several .ivs files into one
......
.TH KSTATS 1 "November 2013" "Version 1.2-beta2"
.TH KSTATS 1 "March 2014" "Version 1.2-beta3"
.SH NAME
kstats - show statistical FMS algorithm votes for an ivs dump and a specified WEP key
......
.TH MAKEIVS-NG 1 "November 2013" "Version 1.2-beta2"
.TH MAKEIVS-NG 1 "March 2014" "Version 1.2-beta3"
.SH NAME
makeivs - generate a dummy IVS dump file with a specific WEP key
......
.TH PACKETFORGE-NG 1 "November 2013" "Version 1.2-beta2"
.TH PACKETFORGE-NG 1 "March 2014" "Version 1.2-beta3"
.SH NAME
packetforge-ng - forge packets: ARP, UDP, ICMP or custom packets.
......
.TH TKIPTUN-NG 8 "November 2013" "Version 1.2-beta2"
.TH TKIPTUN-NG 8 "March 2014" "Version 1.2-beta3"
.SH NAME
tkiptun-ng - inject a few frames into a WPA TKIP network with QoS
......
.TH WESSIDE-NG 8 "November 2013" "Version 1.2-beta2"
.TH WESSIDE-NG 8 "March 2014" "Version 1.2-beta3"
.SH NAME
wesside-ng - crack a WEP key of an open network without user intervention
......
.TH WPACLEAN 1 "November 2013" "Version 1.2-beta2"
.TH WPACLEAN 1 "March 2014" "Version 1.2-beta3"
.SH NAME
wpaclean - clean wpa capture files
......
# Contributor: ice-man <icemanf@gmail.com>
pkgname=aircrack-ng
pkgver=1.2-beta2
pkgver=1.2-beta3
pkgrel="1"
pkgdesc="aircrack is an 802.11 WEP and WPA-PSK keys cracking program that can recover this keys once enough encrypted packets have been captured."
source=(http://download.aircrack-ng.org/$pkgname-$pkgver.tar.gz)
......
......@@ -3,7 +3,7 @@
# these bits are constant across distributions
#
Name: aircrack-ng
Version: 1.2-beta2
Version: 1.2-beta3
Summary: Reliable 802.11 (wireless) sniffer and WEP/WPA-PSK key cracker
License: GPL
Source: http://dl.aircrack-ng.org/%{name}-%{version}.tar.gz
......@@ -148,4 +148,4 @@ rm -rf $RPM_BUILD_ROOT
* Fri Jun 2 2006 David Bolt <davjam@davjam.org> aircrack-ng-0.5
- Patched source to build properly on SUSE 10.1 (GCC 4.1.2)
* Thu Mar 30 2006 David Bolt <davjam@davjam.org>
- First package built for SUSE
\ No newline at end of file
- First package built for SUSE
......@@ -8,7 +8,7 @@ IFACE_FOUND="false"
MADWIFI=0
MAC80211=0
USE_IW=0
IW_SOURCE="https://www.kernel.org/pub/software/network/iw/iw-3.11.tar.bz2"
IW_SOURCE="https://www.kernel.org/pub/software/network/iw/iw-3.14.tar.gz"
IW_ERROR=""
UDEV_ISSUE=0
......
......@@ -15,19 +15,19 @@ then
SYSFS=1
fi
if [ "$1" = "--elite" ]
if [ "${1}" = "--elite" ]
then
shift
ELITE="1"
fi
if [ "$1" = "--verbose" ]
if [ "${1}" = "--verbose" ]
then
shift
VERBOSE="1"
fi
if [ "$1" = "--debug" ]
if [ "${1}" = "--debug" ]
then
shift
DEBUG="1"
......@@ -35,7 +35,7 @@ then
fi
#yes, I know this is in here twice
if [ "$1" = "--elite" ]
if [ "${1}" = "--elite" ]
then
shift
ELITE="1"
......@@ -57,12 +57,12 @@ then
USERID="$(id -u 2> /dev/null)"
fi
if [ x$USERID = "x" -a x$UID != "x" ]
if [ x${USERID} = "x" -a x${UID} != "x" ]
then
USERID=$UID
USERID=${UID}
fi
if [ x$USERID != "x" -a x$USERID != "x0" ]
if [ x${USERID} != "x" -a x${USERID} != "x0" ]
then
printf "Run it as root\n" ; exit 1;
fi
......@@ -172,8 +172,16 @@ startMac80211Iface() {
done
fi
#we didn't bail means we need a monitor interface
if [ -e /sys/class/net/${1}mon ]
then
printf "\nYou already have a ${1}mon device but it is NOT in monitor mode."
printf "\nWhatever you did, don't do it again."
printf "\nPlease run \"iw ${1}mon del\" before attempting to continue\n"
exit 1
fi
#we didn't bail means our target interface is available
ifconfig ${1} down
IW_ERROR=$(iw dev ${1} interface add ${1}mon type monitor 2>&1 | grep "nl80211 not found")
IW_ERROR=$(iw phy ${PHYDEV} interface add ${1}mon type monitor 2>&1 | grep "nl80211 not found")
if [ x${IW_ERROR} = "x" ]
then
sleep 1s
......@@ -232,14 +240,33 @@ stopMac80211Iface() {
printf "Most likely you want to remove an interface called wlan[0-9]mon\n"
printf "If you feel you have reached this warning in error,\n"
printf "please report it."
exit 1
else
if [ "${ELITE}" = "0" ]
then
echo ${1%mon}
IW_ERROR=$(iw dev ${1} interface add ${1%mon} type station 2>&1)
#check if $1 already has a sta interface on the same phy and bail if it does
if [ -d /sys/class/ieee80211/${PHYDEV}/device/net ]
then
for i in $(ls /sys/class/ieee80211/${PHYDEV}/device/net/)
do
if [ "$(cat /sys/class/ieee80211/${PHYDEV}/device/net/${i}/type)" = "1" ]
then
printf "\n\t\t(mac80211 station mode vif already available for [${PHYDEV}]${1} on [${PHYDEV}]${i})\n"
exit
fi
done
fi
if [ -e /sys/class/net/${1%mon} ]
then
printf "\nYou already have a ${1%mon} device but it is NOT in station mode."
printf "\nWhatever you did, don't do it again."
printf "\nPlease run \"iw ${1%mon} del\" before attempting to continue\n"
exit 1
fi
IW_ERROR=$(iw phy ${PHYDEV} interface add ${1%mon} type station 2>&1)
if [ x${IW_ERROR} = "x" ]
then
printf "\t\t(mac80211 station mode vif enabled on [${PHYDEV}]${1%mon})\n"
printf "\n\t\t(mac80211 station mode vif enabled on [${PHYDEV}]${1%mon})"
unset IW_ERROR
else
printf "\n\n ERROR: iw command error"
......@@ -248,12 +275,12 @@ stopMac80211Iface() {
IW_ERROR=$(iw dev "${1}" del 2>&1 | grep "nl80211 not found")
if [ x$IW_ERROR = "x" ]
then
printf "\t\t(mac80211 monitor mode vif disabled for [${PHYDEV}]${1})\n"
printf "\n\t\t(mac80211 monitor mode vif disabled for [${PHYDEV}]${1})"
else
if [ -f /sys/class/ieee80211/"${PHYDEV}"/remove_iface ]
then
printf "${1}" > /sys/class/ieee80211/"${PHYDEV}"/remove_iface
printf "\t\t(mac80211 monitor mode vif disabled for [${PHYDEV}]${1})\n"
printf "\n\t\t(mac80211 monitor mode vif disabled for [${PHYDEV}]${1})"
else
printf "\n\nERROR: Neither the sysfs interface links nor the iw command is available.\nPlease download and install iw from\n$IW_SOURCE\n"
fi
......@@ -439,6 +466,9 @@ getChipset() {
then
DEVICEID=$(cat /sys/class/net/$1/device/idVendor):$(cat /sys/class/net/$1/device/idProduct)
CHIPSET=$(lsusb | grep -i "$DEVICEID" | head -n1 - | cut -f3- -d ":" | sed 's/^....//;s/ Network Connection//g;s/ Wireless Adapter//g;s/^ //')
elif [ "${DRIVER}" = "mac80211_hwsim" ]
then
CHIPSET="Software simulator of 802.11 radio(s) for mac80211"
else
CHIPSET="non-mac80211 device? (report this!)"
fi
......@@ -575,6 +605,7 @@ getExtendedInfo() {
EXTENDED="\t\tUpgrade to kernel 2.6.29 or install compat-wireless stable"
fi
fi
EXTENDED="We Todd Ed"
}
scanProcesses() {
......@@ -849,7 +880,12 @@ then
printf "? indicates we do not know where the driver comes from... report this\n\n"
fi
printf "\nX[PHY]Interface\tDriver[Stack]-FirmwareRev\tChipset\t\t\t\t\t\t\tExtended Info\n\n"
if [ ${VERBOSE} = "1" ]
then
printf "\nX[PHY]Interface\t\tDriver[Stack]-FirmwareRev\t\tChipset\t\t\t\t\t\t\t\t\t\tExtended Info\n\n"
else
printf "PHY\tInterface\tDriver\t\tChipset\n\n"
fi
for iface in $(ifconfig -a 2> /dev/null | egrep UNSPEC | sed 's/^\([a-zA-Z0-9_]*\) .*/\1/')
do
......@@ -884,7 +920,7 @@ do
fi
done
if [ $MADWIFI -eq 1 ]
if [ ${MADWIFI} -eq 1 ]
then
sleep 1s
fi
......@@ -907,28 +943,94 @@ then
fi
for iface in $(printf "${iface_list}" | sort -bu)
do
unset ethtool_output DRIVER FROM FIRMWARE STACK MADWIFI MAC80211 BUS BUSADDR BUSINFO DEVICEID CHIPSET EXTENDED PHYDEV
unset ethtool_output DRIVER FROM FIRMWARE STACK MADWIFI MAC80211 BUS BUSADDR BUSINFO DEVICEID CHIPSET EXTENDED PHYDEV ifacet DRIVERt FIELD1 FIELD1t FIELD2 FIELD2t CHIPSETt
#add a RUNNING check here and up the device if it isn't already
ethtool_output="$(ethtool -i $iface 2>&1)"
if [ "$ethtool_output" != "Cannot get driver information: Operation not supported" ]
then
getStack $iface
getChipset $iface
getDriver $iface
getFrom $iface
getFirmware $iface
getChipset $iface
if [ ${VERBOSE} = "1" ]
then
getFrom $iface
getFirmware $iface
getExtendedInfo $iface
fi
getPhy $iface
getExtendedInfo $iface
else
printf "\nethtool failed, fallback to old method...\n"
printf "Only mac80211 devices on kernel 2.6.33 or higher are officially supported by airmon-zc.\n"
printf "Running airmon-ng:"
airmon-ng $@
printf "\nethtool failed...\n"
printf "Only mac80211 devices on kernel 2.6.33 or higher are officially supported by airmon-ng.\n"
exit 1
fi
#yes this really is the main output loop
printf "${FROM}[${PHYDEV}]${iface}\t${DRIVER}[${STACK}]-${FIRMWARE}\t${CHIPSET}\t${EXTENDED}"
if [ ${VERBOSE} = "1" ]
then
#beautify output spacing (within reason)
FIELD1="${FROM}[${PHYDEV}]${iface}"
if [ ${#FIELD1} -gt 15 ]
then
FIELD1t="\t"
else
FIELD1t="\t\t"
fi
FIELD2="${DRIVER}[${STACK}]-${FIRMWARE}"
if [ ${#FIELD2} -gt 27 ]
then
FIELD2t="\t"
else
FIELD2t="\t\t"
fi
if [ -n "${EXTENDED}" ]
then
CHIPSETt="\t\t\t\t\t\t\t\t\t\t"
if [ ${#CHIPSET} -gt 70 ]
then
CHIPSETt="\t"
elif [ ${#CHIPSET} -gt 63 ]
then
CHIPSETt="\t\t"
elif [ ${#CHIPSET} -gt 56 ]
then
CHIPSETt="\t\t\t"
elif [ ${#CHIPSET} -gt 49 ]
then
CHIPSETt="\t\t\t\t"
elif [ ${#CHIPSET} -gt 42 ]
then
CHIPSETt="\t\t\t\t\t"
elif [ ${#CHIPSET} -gt 35 ]
then
CHIPSETt="\t\t\t\t\t\t"
elif [ ${#CHIPSET} -gt 28 ]
then
CHIPSETt="\t\t\t\t\t\t\t"
elif [ ${#CHIPSET} -gt 21 ]
then
CHIPSETt="\t\t\t\t\t\t\t\t"
elif [ ${#CHIPSET} -gt 14 ]
then
CHIPSETt="\t\t\t\t\t\t\t\t\t"
fi
fi
printf "${FROM}[${PHYDEV}]${iface}${FIELD1t}${DRIVER}[${STACK}]-${FIRMWARE}${FIELD2t}${CHIPSET}${CHIPSETt}${EXTENDED}"
else
#beautify output spacing (within reason, interface/driver max length is 15 and phy max length is 7))
if [ ${#DRIVER} -gt 7 ]
then
DRIVERt="\t"
else
DRIVERt="\t\t"
fi
if [ ${#iface} -gt 7 ]
then
ifacet="\t"
else
ifacet="\t\t"
fi
printf "${PHYDEV}\t${iface}${ifacet}${DRIVER}${DRIVERt}${CHIPSET}"
fi
if [ x$MAC80211 = "x1" ]
then
......
......@@ -6,7 +6,7 @@ name="airoscript-ng"
INSTALL = install -c
INSTALLDATA = install -c -m 644
INSTALLBIN = install -c -m 755
INSTALLBIN = install -c -m 755
data=$(prefix)/share
bindir=$(prefix)/sbin/
......@@ -20,11 +20,10 @@ srcdir=./src
install: installdirs\
install-binary \
install-config \
install-docs \
install-desktop \
install-locale \
install-config
install-desktop
installdirs:
......@@ -36,7 +35,7 @@ installdirs:
$(datadir)/plugins \
$(datadir)/extras \
$(datadir)/templates
install-config:
@$(INSTALLDATA) $(srcdir)/conf/airoscript-ng.conf $(etcdir)
@$(INSTALLDATA) $(srcdir)/conf/airoscript-ng_debug.conf $(etcdir)
......@@ -90,12 +89,12 @@ install-locale: generate-locale
fi ; \
done
uninstall:
uninstall:
@rm -f $(bindir)/$(name)
@rm -f $(etcdir)/airoscript-ng*.conf
@rm -r $(datadir)
@rm -r $(docdir)
@rm $(mandir)/man1/airoscript-ng.1
@rm -rf $(datadir)
@rm -rf $(docdir)
@rm -f $(mandir)/man1/airoscript-ng.1
@rm -f $(picdir)/airoscript-ng.png $(picdir)/airoscript-ng.desktop $(picdir)/airoscript-ng_gtk.desktop
@for i in $(docdir)/*.1 ; do rm -rf $(mandir)/man1/$$i ; done
@for i in $(srcdir)/locale/* ; do \
......@@ -105,6 +104,6 @@ uninstall:
done
@echo "Uninstalled succesfully"
all: install
all: install
.PHONY: all install uninstall locale manpages
......@@ -20,8 +20,9 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
main_args=$@;
declare -a -x enabled_plugins
declare -a -x enabled_plugins
declare -a p_menu
declare -A extend_menu
p_menu+=( "Enable plugin" )
......@@ -35,20 +36,40 @@ Return_to_main_menu(){ mainmenu; }
if [ "$UID" != 0 ]; then echo -e "You Must be root to use airoscript"; exit 1; fi;
[[ ! $path ]] && {
[[ $(dirname ${BASH_SOURCE[0]}) =~ "local" ]] && {
path=/usr/local/share/airoscript-ng
_source "/usr/local/etc/airoscript-ng_advanced.conf /usr/local/etc/airoscript-ng.conf"
} || {
_source "/usr/etc/airoscript-ng_advanced.conf /usr/etc/airoscript-ng.conf"
_source "/etc/airoscript-ng_advanced.conf /etc/airoscript-ng.conf"
path=/usr/share/airoscript-ng
}
[[ $(dirname ${BASH_SOURCE[0]}) =~ "local" ]] && {
path=/usr/local/share/airoscript-ng
_source "/usr/local/etc/airoscript-ng_advanced.conf /usr/local/etc/airoscript-ng.conf"
} || {
_source "/usr/etc/airoscript-ng_advanced.conf /usr/etc/airoscript-ng.conf"
_source "/etc/airoscript-ng_advanced.conf /etc/airoscript-ng.conf"
path=/usr/share/airoscript-ng
}
}
plugin_check_and_source(){
grep "#DEPENDS:" $1 &>/dev/null && {
declare -a DEPS
DEPS=($(grep "#DEPENDS: " $1|sed 's/#DEPENDS: //g'))
for dep in ${DEPS[@]}; do
type $dep &>/dev/null && {
_source $1
} || {
echo "${mark}Not loading $1, dependence not installed"
sleep 1
}
done
} || _source $1
}
# We preload functions, configs and themes in a cool way.
_source "$path/_internal $path/menu $path/interface"
_source "$path/_internal $path/menu $path/interface"
_source "$path/themes/$theme" || default_theme
for i in ${enabled_plugins[@]}; do _source $i; done
for i in ${enabled_plugins[@]}; do plugin_check_and_source $i; done
check_injection() {
echo -n "${mark}Checking if interface can inject..."
$AIREPLAY -9 $wifi &>/dev/null && echo "${red}success${end}"
}
# Setup wordlist
[[ ! -e $DUMP_PATH/wordlist.txt ]] && { cp $WORDLIST $DUMP_PATH &>/dev/null; WORDLIST="$DUMP_PATH/`basename $WORDLIST`"; }
......@@ -65,19 +86,18 @@ check_cardctl; #debug
launch_help_fifo &
setinterface "start"
cleanautovars
echo -n "${mark}Checking if interface can inject..."
$AIREPLAY -9 $wifi &>/dev/null && echo "${red}success${end}"
check_injection
[[ "$noscan" != 1 ]] && autoscan
(( $BASH_PLUGIN > 0 )) && {
export AIROSCRIPT_AP_CHAN=$Host_CHAN
export AIROSCRIPT_AP_CHAN=$Host_CHAN
export AIROSCRIPT_AP_ENC=$Host_ENC
export AIROSCRIPT_AP_IDL=$Host_IDL
export AIROSCRIPT_AP_IDL=$Host_IDL
export AIROSCRIPT_AP_IP=$Host_IP
export AIROSCRIPT_AP_MAC=$Host_MAC
export AIROSCRIPT_AP_SPEED=$Host_SPEED
export AIROSCRIPT_AP_SSID=$Host_SSID
export AIROSCRIPT_AP_NAME=$Host_SSID
export AIROSCRIPT_AP_MAC=$Host_MAC
export AIROSCRIPT_AP_SPEED=$Host_SPEED
export AIROSCRIPT_AP_SSID=$Host_SSID
export AIROSCRIPT_AP_NAME=$Host_SSID
source $path/plugins/bash
} || {
mainmenu
......
......@@ -17,17 +17,17 @@ WORDLIST="~/.airoscript/wordlist.txt" # Path to your wordlist file (for WPA and
db_location="~/.airoscript-ng/pmk.db" # Were to look for default pmk database
# -------------- PLUGIN SUPPORT -------------------
enabled_plugins=( "$path/plugins/johntheripper" "$path/plugins/mdk3" )
enabled_plugins=( "$path/plugins/tmux" "$path/plugins/digenpy" "$path/plugins/johntheripper" "$path/plugins/mdk3" )
#------------ Wireless interfaces -----------
wifi=""
iwifi="" # If you set wifi (and only then) you can specify Injection Wifi Card here.
wifi=""
iwifi="" # If you set wifi (and only then) you can specify Injection Wifi Card here.
# So if you have to use different interfaces for injection and reading, use this.
# Right now, is the only way to have two interfaces working: TODO FIX THIS.
auto_fake_mac=1 # Set to 0 to not change mac to fake mac automatically at interface creation
# -------------- Appeareance ----------------
# Theme file and other interface options
theme="default.theme"
export DEFAULT_MONITOR_MODE=1 # If set to 1, it won't ask to put the interface in monitor mode, it'll just do it.
......
jabashit @ 74b32c1f
Subproject commit 74b32c1f51ee33c955a4ac5e225881cdedca6498