Commit 547c0aaa authored by Mati's avatar Mati

Imported Upstream version 1.2-rc1

parent 27271231
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-rc1 (changes from aircrack-ng 1.2-beta3) - Released 31 October 2014:
* Airodump-ng should be able to parse the canonical oui file.
* Airodump-ng: Fixed GPS stack overflow.
* Airodump-ng: Fixed stopping cleanly with Ctrl-C.
* Airmon-zc: better handling for when modules are not available (incomplete)
* Airmon-zc: users can now start the monitor interface again to change channels
* Airmon-zc: update to use ip instead of ifconfig if available.
* Airmon-zc: better handling of devices without pci bus
* Aireplay-ng: Fixed tcp_test stack overflow.
* OSdep: Fixed libnl detection. Also avoid detection on non Linux systems.
* OSdep: Fixed segmentation fault that happens with a malicious server.
* Besside-ng: Add regular expression matching for the SSID.
* Buddy-ng: Fixed segmentation fault.
* Makefile: Fixed 'commands commence before first target' error when building Aircrack-ng.
* Fixed segfault when changing the optimization when compiling with gcc thanks to Ramiro Polla.
* Removed airdriver-ng (outdated and not meant for today's kernels)
* Added gitignore file.
* Fixed build issues on other compilers by using stdint.h types.
* Updating installation file and added pkg-config as a requirement.
* Various small fixes and improvements.
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.
......
=== Requirements ===
* OpenSSL development package or libgcrypt development package
* pkg-config
* If you want to use airolib-ng and '-r' option in aircrack-ng,
SQLite development package >= 3.3.17 (3.6.X version or better is recommended):
- libsqlite3-devel
......@@ -50,11 +51,11 @@ to compile and install the suite:
And also use internal fast sha1 implementation (borrowed from GIT)
* libnl: Add support for netlink (nl80211). Linux only. Requires libnl1 OR libnl3.
Dependencies (debian):
Enabled by default. Dependencies (debian):
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.
* pcre: Add support for regular expression matching for ESSID in airodump-ng and besside-ng.
Dependencies (debian): libpcre3-dev
Example:
......
......@@ -4,7 +4,7 @@ ifndef TOOL_PREFIX
TOOL_PREFIX =
endif
ifndef OSNAME
OSNAME = $(shell uname -s | sed -e 's/.*CYGWIN.*/cygwin/g' -e 's,/,-,g')
OSNAME := $(shell uname -s | sed -e 's/.*CYGWIN.*/cygwin/g' -e 's,/,-,g')
endif
ifndef SQLITE
SQLITE = false
......@@ -31,7 +31,7 @@ COMMON_CFLAGS =
ifeq ($(subst TRUE,true,$(filter TRUE true,$(sqlite) $(SQLITE))),true)
COMMON_CFLAGS += -I/usr/local/include -DHAVE_SQLITE
COMMON_CFLAGS += -DHAVE_SQLITE
endif
ifeq ($(pcre), true)
......@@ -44,49 +44,61 @@ endif
ifeq ($(OSNAME), cygwin)
COMMON_CFLAGS += -DCYGWIN
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)
endif
ifeq ($(OSNAME), Linux)
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)
ifneq ($(NL31FOUND),Y)
NL3FOUND := $(shell $(PKG_CONFIG) --atleast-version=3 libnl-3.0 && echo Y)
endif
ifneq ($(NL3FOUND),Y)
NL1FOUND := $(shell $(PKG_CONFIG) --atleast-version=1 libnl-1 && echo Y)
endif
ifneq ($(NL1FOUND),Y)
NLTFOUND := $(shell $(PKG_CONFIG) --atleast-version=1 libnl-tiny && echo Y)
endif
endif
endif
ifeq ($(NL1FOUND),Y)
NLLIBNAME = libnl-1
endif
ifeq ($(NL1FOUND),Y)
NLLIBNAME = libnl-1
COMMON_CFLAGS += -DCONFIG_LIBNL
endif
ifeq ($(NL3xFOUND),Y)
COMMON_CFLAGS += -DCONFIG_LIBNL30
LIBS += -lnl-genl-3
NLLIBNAME = libnl-3.0
endif
ifeq ($(NLTFOUND),Y)
NLLIBNAME = libnl-tiny
COMMON_CFLAGS += -DCONFIG_LIBNL -DCONFIG_LIBNL20
endif
ifeq ($(NL3FOUND),Y)
COMMON_CFLAGS += -DCONFIG_LIBNL30
LIBS += -lnl-genl
NLLIBNAME = libnl-3.0
endif
ifeq ($(NL3xFOUND),Y)
COMMON_CFLAGS += -DCONFIG_LIBNL30 -DCONFIG_LIBNL
LIBS += -lnl-genl-3
NLLIBNAME = libnl-3.0
endif
# nl-3.1 has a broken libnl-gnl-3.1.pc file
# as show by pkg-config --debug --libs --cflags --exact-version=3.1 libnl-genl-3.1;echo $?
ifeq ($(NL31FOUND),Y)
COMMON_CFLAGS += -DCONFIG_LIBNL30
LIBS += -lnl-genl
NLLIBNAME = libnl-3.1
endif
ifeq ($(NL3FOUND),Y)
COMMON_CFLAGS += -DCONFIG_LIBNL30 -DCONFIG_LIBNL
LIBS += -lnl-genl
NLLIBNAME = libnl-3.0
endif
ifeq ($(NLLIBNAME),)
$(error Cannot find development files for any supported version of libnl. install either libnl1 or libnl3.)
endif
# nl-3.1 has a broken libnl-gnl-3.1.pc file
# as show by pkg-config --debug --libs --cflags --exact-version=3.1 libnl-genl-3.1;echo $?
ifeq ($(NL31FOUND),Y)
COMMON_CFLAGS += -DCONFIG_LIBNL30 -DCONFIG_LIBNL
LIBS += -lnl-genl
NLLIBNAME = libnl-3.1
endif
LIBS += $(shell $(PKG_CONFIG) --libs $(NLLIBNAME))
COMMON_CFLAGS += $(shell $(PKG_CONFIG) --cflags $(NLLIBNAME))
NLLIBNAME ?= $(error Cannot find development files for any supported version of libnl. install either libnl1 or libnl3.)
LIBS += $(shell $(PKG_CONFIG) --libs $(NLLIBNAME))
COMMON_CFLAGS +=$(shell $(PKG_CONFIG) --cflags $(NLLIBNAME))
COMMON_CFLAGS := $(COMMON_CFLAGS)
endif
endif
ifeq ($(subst TRUE,true,$(filter TRUE true,$(airpcap) $(AIRPCAP))),true)
......
.TH AIRBASE-NG 8 "March 2014" "Version 1.2-beta3"
.TH AIRBASE-NG 8 "October 2014" "Version 1.2-rc1"
.SH NAME
airbase-ng - multi-purpose tool aimed at attacking clients as opposed to the Access Point (AP) itself
......
.TH AIRCRACK-NG 1 "March 2014" "Version 1.2-beta3"
.TH AIRCRACK-NG 1 "October 2014" "Version 1.2-rc1"
.SH NAME
aircrack-ng - a 802.11 WEP / WPA-PSK key cracker
......
.TH AIRDECAP-NG 1 "March 2014" "Version 1.2-beta3"
.TH AIRDECAP-NG 1 "October 2014" "Version 1.2-rc1"
.SH NAME
airdecap-ng - decrypt a WEP/WPA crypted pcap file
......
.TH AIRDECLOAK-NG 1 "March 2014" "Version 1.2-beta3"
.TH AIRDECLOAK-NG 1 "October 2014" "Version 1.2-rc1"
.SH NAME
airuncloak-ng - Removes wep cloaked framed from a pcap file.
......
.TH AIRDRIVER-NG 8 "March 2014" "Version 1.2-beta3"
.TH AIRDRIVER-NG 8 "October 2014" "Version 1.2-rc1"
.SH NAME
airdriver-ng - automatically install/uninstall and patch drivers and 802.11 stacks
......
.TH AIREPLAY-NG 8 "March 2014" "Version 1.2-beta3"
.TH AIREPLAY-NG 8 "October 2014" "Version 1.2-rc1"
.SH NAME
aireplay-ng - inject packets into a wireless network to generate traffic
......
.TH AIRMON-NG 8 "March 2014" "Version 1.2-beta3"
.TH AIRMON-NG 8 "October 2014" "Version 1.2-rc1"
.SH NAME
airmon-ng - bash script designed to turn wireless cards into monitor mode.
......
.TH AIRMON-ZC 8 "March 2014" "Version 1.2-beta3"
.TH AIRMON-ZC 8 "October 2014" "Version 1.2-rc1"
.SH NAME
airmon-zc - bash script designed to turn wireless cards into monitor mode, Zero_Chaos version
......
.TH AIRODUMP-NG-OUI-UPDATE 8 "March 2014" "Version 1.2-beta3"
.TH AIRODUMP-NG-OUI-UPDATE 8 "October 2014" "Version 1.2-rc1"
.SH NAME
airodump-ng-oui-updater - IEEE oui list updater for airodump-ng
......
.TH AIRODUMP-NG 8 "March 2014" "Version 1.2-beta3"
.TH AIRODUMP-NG 8 "October 2014" "Version 1.2-rc1"
.SH NAME
airodump-ng - a wireless packet capture tool for aircrack-ng
......
.TH AIROLIB-NG 1 "March 2014" "Version 1.2-beta3"
.TH AIROLIB-NG 1 "October 2014" "Version 1.2-rc1"
.SH NAME
airolib-ng - manage and create a WPA/WPA2 pre-computed hashes tables
......
.TH AIRSERV-NG 8 "March 2014" "Version 1.2-beta3"
.TH AIRSERV-NG 8 "October 2014" "Version 1.2-rc1"
.SH NAME
airserv-ng - a wireless card server
......
.TH AIRTUN-NG 8 "March 2014" "Version 1.2-beta3"
.TH AIRTUN-NG 8 "October 2014" "Version 1.2-rc1"
.SH NAME
airtun-ng - a virtual tunnel interface creator for aircrack-ng
......
.TH BESSIDE-NG-CRAWLER 1 "March 2014" "Version 1.2-beta3"
.TH BESSIDE-NG-CRAWLER 1 "October 2014" "Version 1.2-rc1"
.SH NAME
......
.TH BESSIDE-NG 8 "March 2014" "Version 1.2-beta3"
.TH BESSIDE-NG 8 "October 2014" "Version 1.2-rc1"
.SH NAME
besside-ng - crack a WEP or WPA key without user intervention and collaborate with WPA cracking statistics
......
.TH BUDDY-NG 1 "March 2014" "Version 1.2-beta3"
.TH BUDDY-NG 1 "October 2014" "Version 1.2-rc1"
.SH NAME
buddy-ng - a tool to work with easside-ng
......
.TH EASSIDE-NG 8 "March 2014" "Version 1.2-beta3"
.TH EASSIDE-NG 8 "October 2014" "Version 1.2-rc1"
.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 "March 2014" "Version 1.2-beta3"
.TH IVSTOOLS 1 "October 2014" "Version 1.2-rc1"
.SH NAME
ivstools - extract IVs from a pcap file or merges several .ivs files into one
......
.TH KSTATS 1 "March 2014" "Version 1.2-beta3"
.TH KSTATS 1 "October 2014" "Version 1.2-rc1"
.SH NAME
kstats - show statistical FMS algorithm votes for an ivs dump and a specified WEP key
......
.TH MAKEIVS-NG 1 "March 2014" "Version 1.2-beta3"
.TH MAKEIVS-NG 1 "October 2014" "Version 1.2-rc1"
.SH NAME
makeivs - generate a dummy IVS dump file with a specific WEP key
......
.TH PACKETFORGE-NG 1 "March 2014" "Version 1.2-beta3"
.TH PACKETFORGE-NG 1 "October 2014" "Version 1.2-rc1"
.SH NAME
packetforge-ng - forge packets: ARP, UDP, ICMP or custom packets.
......
.TH TKIPTUN-NG 8 "March 2014" "Version 1.2-beta3"
.TH TKIPTUN-NG 8 "October 2014" "Version 1.2-rc1"
.SH NAME
tkiptun-ng - inject a few frames into a WPA TKIP network with QoS
......
.TH WESSIDE-NG 8 "March 2014" "Version 1.2-beta3"
.TH WESSIDE-NG 8 "October 2014" "Version 1.2-rc1"
.SH NAME
wesside-ng - crack a WEP key of an open network without user intervention
......
.TH WPACLEAN 1 "March 2014" "Version 1.2-beta3"
.TH WPACLEAN 1 "October 2014" "Version 1.2-rc1"
.SH NAME
wpaclean - clean wpa capture files
......
# Contributor: ice-man <icemanf@gmail.com>
pkgname=aircrack-ng
pkgver=1.2-beta3
pkgver=1.2-rc1
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-beta3
Version: 1.2-rc1
Summary: Reliable 802.11 (wireless) sniffer and WEP/WPA-PSK key cracker
License: GPL
Source: http://dl.aircrack-ng.org/%{name}-%{version}.tar.gz
......
......@@ -2,7 +2,7 @@ AC_ROOT = ..
include $(AC_ROOT)/common.mak
SCRIPTS = airodump-ng-oui-update
SCRIPTS_LNX = airmon-ng airmon-zc airdriver-ng
SCRIPTS_LNX = airmon-ng airmon-zc
default: all
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -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.14.tar.gz"
IW_SOURCE="https://www.kernel.org/pub/software/network/iw/iw-3.17.tar.xz"
IW_ERROR=""
UDEV_ISSUE=0
......
This diff is collapsed.
......@@ -127,23 +127,17 @@ select_ap(){
menu_extra(){
check_function menu_options || source $path/attacks/others
while true; do
mkmenu $"Extra tools" $"Airoscript Options" $"Advanced tools" $"External plugins" $'User interfaces' $"Return to main menu"
mkmenu $"Extra tools" $"Airoscript Options" $"Advanced tools" $"External plugins" $"Return to main menu"
case $choice in
1) menu_options; $clear; break;;
2) othertmenu; $clear; break;;
3) menu_plugins; $clear; break;;
3) menu_interfaces; $clear; break;;
4) $clear;break ;;
* ) echo $"Unknown response. Try again" ;;
esac
done
}
menu_interfaces(){
mkmenu "User interfaces" "${interfaces[@]}"
_source $path/plugins/${interfaces[$choice - 1]}
}
menu_plugins(){
a_menu=( "${p_menu[@]}" ); a_menu+=("Return to main menu"); mkmenu "External plugins" "${a_menu[@]}"
${p_menu[$choice - 1]/ /_} || { $clear; warn "Wrong option, try again"; menu_plugins; }
......
# Copyright (2011) David Francos Cuartero, and some of the sources might be from other versions.
#DEPENDS: arpspoof
# This is highly unmantained, as now is a plugin, you can easily modify it =)
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
......
# Copyright (2011) David Francos Cuartero, and some of the sources might be from other versions.
#DEPENDS: dsniff
# This is highly unmantained, as now is a plugin, you can easily modify it =)
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
......@@ -31,10 +32,10 @@ get_ip(){
target_router_ip=$(ip route list dev at0 |awk '/default/ { print $3}' );
target_ip=$(ip route list dev at0| awk '/src/ {print $7}' )
} || {
single_question "Cant configure network, enter 'Victim_ip,router_ip' ";
single_question "Cant configure network, enter 'Victim_ip,router_ip' ";
target_ip=$(cut -d, -f1 <<< $ans)
target_router_ip=$(cut -d, -f1 <<< $ans)
}
target_router_ip=$(cut -d, -f1 <<< $ans)
}
}
Sniff_connections_with_dsniff(){
......
# Dict generators for airoscript
# Depends on digenpy_
#DEPENDS: hydra
# Copyright (C) 2009-2011 David Francos Cuartero
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
......@@ -27,6 +27,6 @@ hydra_(){
hydra -L $DUMP_PATH/default_router_logins -P $DUMP_PATH/default_router_passwords -o $DUMP_PATH/router.key $router_ip https-head; }
}
Crack_default_router_passwords(){
Crack_default_router_passwords(){
configure && hydra_
}
# Copyright (2011) David Francos Cuartero, and some of the sources might be from other versions.
#DEPENDS: iptables
# This is highly unmantained, as now is a plugin, you can easily modify it =)
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
......@@ -14,7 +15,7 @@
# Along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
function enable_ip_forwarding(){
echo 1 > /proc/sys/net/ipv4/ip_forward
echo 1 > /proc/sys/net/ipv4/ip_forward
}
function enable_traffic_redirect(){
......@@ -27,6 +28,6 @@ function disable_traffic_redirect(){
}
function disable_ip_forwarding(){
echo 0 > /proc/sys/net/ipv4/ip_forward
echo 0 > /proc/sys/net/ipv4/ip_forward
}
# Copyright (2011) David Francos Cuartero, and some of the sources might be from other versions.
#DEPENDS: john
# This is highly unmantained, as now is a plugin, you can easily modify it =)
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
......
# Copyright (2011) David Francos Cuartero, and some of the sources might be from other versions.
#DEPENDS: mdk3
# This is highly unmantained, as now is a plugin, you can easily modify it =)
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
......@@ -14,9 +15,6 @@
# Along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# This can also be used as a menu-adding skeleton for airoscript plugin system
# Just add to p_menu array the menu you want, and call the main plugin function MENU_NAME_SEPARATED_BY_SPACES
MDK3=mdk3
p_menu+=( "Mdk3 Attacks" );
......
# Copyright (2011) David Francos Cuartero, and some of the sources might be from other versions.
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# Along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
is_number(){
[[ $1 =~ ^[0-9]+$ ]]
}
......@@ -20,11 +35,11 @@ function get_mouse_position(){
echo $choice;
}
mkmenuheader(){
mkmenuheader(){
$clear;
stty -echo; echo -n $'\e[6n'; read -d R x; stty echo; a=$(( $(echo ${x#??} |cut -d\; -f1) + 1 ))
Y_OFFSET=$a;
echo -en "\033[$(($2 / 2 - (${#1} / 2 - 10) ))C$1\n";
echo -en "\033[$(($2 / 2 - (${#1} / 2 - 10) ))C$1\n";
}
......
# Copyright (2011) David Francos Cuartero, and some of the sources might be from other versions.
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# Along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Crack_password_with_pyrit_error() { warn "${mark}You cannot crack this network. Packages not collected"; }
p_menu+=("Crack password with pyrit")
pyrit_attacks=(attack_batch attack_cowpatty attack_db attack_passthrough batch benchmark create_essid delete_essid eval export_passwords export_cowpatty export_hashdb import_passwords import_unique_passwords list_cores list_essids passthrough relay selftest serve strip stripLive verify )
Crack_password_with_pyrit(){
[[ ! -e $DUMP_PATH/$Host_MAC-01.cap ]] && Crack_password_with_pyrit_error || {
read -i "$default_pyrit_dictionary" -p "Enter dictionary " pyrit_dictionary
read -i "$default_pyrit_dictionary" -p "Enter dictionary " pyrit_dictionary
pyrit_opts="-b \"$Host_MAC\" -e \"$Host_SSID\" -i \"$pyrit_dictionary\" -o \"$DUMP_PATH/$Host_MAC.pyrit_key\" -r \"$DUMP_PATH/$Host_MAC-01.cap\" "
mkmenu "Select pyrit attack" ${pyrit_attacks[@]}
mkmenu "Select pyrit attack" ${pyrit_attacks[@]}
read -i "$custom_opts" "Add any custom pyrit opt you want (e.j, remote servers, relay stuffs...): " custom_opts
execute "pyrit attack" pyrit $pyrit_opts ${pyrit_attacks[$choice - 1]} && cp $DUMP_PATH/$Host_MAC.pyrit_key $DUMP_PATH/$Host_MAC.key
}
......
#! /bin/bash
# Copyright (2011) David Francos Cuartero, and some of the sources might be from other versions.
#DEPENDS: reaver
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# Along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
p_menu+=("Crack with reaver")
extend_menu[Select WPA Attack]="Crack with reaver"
......
#! /bin/bash
declare -a -x enabled_plugins
# Copyright (2011) David Francos Cuartero, and some of the sources might be from other versions.
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# Along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
! /bin/bash
declare -a -x enabled_plugins
declare -a p_menu
_source(){ for cfile in $@; do if [ -f $cfile ] && [ -O $cfile ]; then source $cfile; else if [ "$debug" == 1 ]; then echo "Could not load $cfile"; sleep 0.2 ;fi; fi; done; }
[[ ! $path ]] && {
[[ $(dirname ${BASH_SOURCE[0]}) =~ "local" ]] && {
path=/usr/local/share/airoscript-ng
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
path=/usr/share/airoscript-ng
}
}
_source "$path/_internal $path/menu $path/interface"
_source "$path/_internal $path/menu $path/interface"
_source "$path/themes/$theme" || default_theme
# Copyright (2011) David Francos Cuartero, and some of the sources might be from other versions.
# This is highly unmantained, as now is a plugin, you can easily modify it =)
#DEPENDS: sslstrip
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
......
# Dict generators for airoscript
# Depends on digenpy_
#tcpdstats
#DEPENDS: tcpdstat
# Copyright (C) 2009-2011 David Francos Cuartero
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
......@@ -23,6 +23,6 @@ Show_tcpdstats_report_on_cracked_network(){
}
_tcpdstat(){
airdecap-ng -w `cat $DUMP_PATH/$Host_MAC.key` $DUMP_PATH/$Host_MAC-01.cap
tcpdstat $DUMP_PATH/$Host_MAC-01-dec.cap &> $DUMP_PATH/$Host_MAC.report_proto_stats
airdecap-ng -w `cat $DUMP_PATH/$Host_MAC.key` $DUMP_PATH/$Host_MAC-01.cap
tcpdstat $DUMP_PATH/$Host_MAC-01-dec.cap &> $DUMP_PATH/$Host_MAC.report_proto_stats
}
# Dict generators for airoscript
# Depends on wkhtmltopdf
# pdf reports
#DEPENDS: wkhtmltopdf
# Copyright (C) 2009-2011 David Francos Cuartero
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
......
#DEPENDS: xterm
export TERMINAL=xterm
interfaces+=("xterm");
resolution() {
{ reso=$( awk '/\*/ {print $1}' <(xrandr) | head -n1; ); } &>/dev/null
for i in ${!available_resos[@]}; do [[ ${available_resos[$i]} == $reso ]] && { reson=$reso; pos=$i; }; done
for i in ${!available_resos[@]}; do [[ ${available_resos[$i]} == $reso ]] && { reson=$reso; pos=$i; }; done
[[ $reson != "" ]] && { export resonset=1; markwarn $"Automatically setting resolution to $reso" ; }
xhost &>/dev/null || {
error $"Access control for X is disabled for root. Please, as your normal user execute 'xhost +`whoami`' and press enter to continue";
}
while true; do
xhost &>/dev/null || {
error $"Access control for X is disabled for root. Please, as your normal user execute 'xhost +`whoami`' and press enter to continue";
}
while true; do
[[ $autoset == 1 ]] && { set_resolution_data 2; return; }
if [[ ${resonset} == "" ]]; then mkmenu $"Set resolution" ${available_resos[@]}; pos=$choice; fi
set_resolution_data $pos
......@@ -41,7 +42,7 @@ while true; do
BRX="99";BRY="30";bLX="110";bLY="72";bRX="99";bRY="40"; setterminal; break;;
10) TLX="130";TLY="40";TRX="68";TRY="25";BLX="130";BLY="40";
BRX="132";BRY="35";bLX="130";bLY="85";bRX="132";bRY="48"; setterminal; break;;
* ) break;;
* ) break;;
esac
done
}
......@@ -55,9 +56,9 @@ getterminal(){
TERMINAL=`ls -l1 /etc/alternatives/x-terminal-emulator|cut -d ">" -f 2|cut -d " " -f 2|head -n1` &>/dev/null;
fi
if [ -x "$TERMBIN/$TERMINAL" ] || [ -x "/usr/bin/$TERMINAL" ] || [ -x "/usr/sbin/$TERMINAL" ]; then D="1"
if [ -x "$TERMBIN/$TERMINAL" ] || [ -x "/usr/bin/$TERMINAL" ] || [ -x "/usr/sbin/$TERMINAL" ]; then D="1"
else
if [ -e $TERM ]; then
if [ -e $TERM ]; then
_debug "Using environment defined terminal ($TERM)"
TERMINAL=$TERM
else
......@@ -70,7 +71,7 @@ getterminal(){
Xterm can\'t be found on your system, Maybe not in /usr/bin?"
exit
fi
fi
fi
fi
}
......@@ -79,8 +80,8 @@ function setterminal {
getterminal
_debug "Im going to set terminal options for your terminal now"
case $TERMINAL in
xterm|uxterm )
case $TERMINAL in
xterm|uxterm )
TOPLEFT="-geometry $TLX*$TLY+0+0 "
TOPRIGHT="-geometry $TRX*$TRY-0+0 "
BOTTOMLEFT="-geometry $BLX*$BLY+0-0 "
......@@ -93,7 +94,7 @@ function setterminal {
BGC="-bg"
EXECFLAG="-e"
;;
gnome-terminal|gnome-terminal.wrapper )
gnome-terminal|gnome-terminal.wrapper )
TOPLEFT="-geometry=$TLX*$TLY+0+0 "
TOPRIGHT="-geometry=$TRX*$TRY-0+0 "
BOTTOMLEFT="-geometry=$BLX*$BLY+0-0 "
......@@ -101,7 +102,7 @@ function setterminal {
TOPLEFTBIG="-geometry=$bLX*$bLY+0+0 "
TOPRIGHTBIG="-geometry=$bLX*$bLY+0-0 "
EXECFLAG="-e "
HOLDFLAG=""
HOLDFLAG=""
TITLEFLAG="-t"
FGC=""
DUMPING_COLOR=""
......
# Copyright (2011) Degenerated Labs
# Copyright (2011) David Francos Cuartero
#DEPENDS: yad
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
......@@ -25,11 +25,11 @@ mkmenuheader(){ return; }