Exploit databaseDownload repository ZIP
GH-1a709251539db272b0beb360da9af0e4
abhisheksalaria04/wifi-arsenal
Sources for CVE-2012-3716
6 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files28
abhisheksalaria04/wifi-arsenalRevision 2efc92a90339
- ↑..Parent directory
- wpa/
- abat_iw.sh
- apset.hwsim
- bss.sh
- data.sh
- evp.sh
- frag.sh
- helper.sh
- hwsim.sh
- ibss.sh
- iwcg.sh
- iwl_association.sh
- iwl_common.sh
- iwl_iw.sh
- iwl_wpacommon.sh
- load.sh
- mode.sh
- negative.sh
- perf.sh
- power.sh
- reslt.sh
- ssid.sh
- wep.sh
- wpa.sh
- wpa2_eap.sh
- wpa_1x.sh
- wpa_eap.sh
- wpa_psk.sh
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
wifi-test/TestSuites/iwl/ts/mode.sh
Shell · 1,956 bytes#!/bin/bash
#
#Copyright (c) 2006 - 2009, Intel Corporation
#Author: Jeff Zheng <[email protected]>
#Contact: WiFi Test Development <[email protected]>
#
#This program is free software; you can redistribute it and/or
#modify it under the terms of the GNU General Public License version
#2 as published by the Free Software Foundation.
#
#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 St - Fifth Floor, Boston, MA 02110-1301 USA.
#
set -x
tet_startup="startup" # startup function
tet_cleanup="cleanup" # cleanup function
iclist="ic1 ic2 ic3"
ic1="MODE2"
ic2="MODE4"
ic3="MODE6"
#==============
MODE2()
{
tpstart "Moving from monitor mode -> managed mode"
iwl_load_module
ifconfig wlan0 down
iwconfig wlan0 mode monitor
ifconfig wlan0 up
sleep 3
ifconfig wlan0 down
iwconfig wlan0 mode managed
iwl_test
[ $? -ne 0 ] && { iwl_fail; break; }
tpresult
}
MODE4()
{
tpstart "Moving from monitor mode -> ad-hoc mode"
iwl_load_module
ifconfig wlan0 down
iwconfig wlan0 mode monitor
ifconfig wlan0 up
sleep 3
iwl_test_ibss
[ $? -ne 0 ] && { iwl_fail; break; }
tpresult
}
MODE6()
{
tpstart "Set to monitor mode, then unload driver"
iwl_load_module
ifconfig wlan0 down
iwconfig wlan0 mode monitor
ifconfig wlan0 up
sleep 3
modprobe iwlagn -r || { iwl_fail; break; }
modprobe iwl3945 -r || { iwl_fail; break; }
tpresult
}
. iwl_common.sh
. $TVS_ROOT/lib/TVSFunctions.sh
# execute shell test case manager - must be last line
. $TET_ROOT/lib/xpg3sh/tcm.sh