Update 04/12/09
Working whit latest svn aircrack(1.0 rc3 r1502) and previous


Cause in BT4 /bin/sh is linked to /bin/dash rather than /bin/bash, some shell' options are no longer avaible
Easy solutions is:

download hxxp://shamanvirtuel.googlepages.com/SWPA.lzm
download hxxp://neovortex.kodings.googlepages.com/spoonwep2.lzm

for a live install: copy the SWPA.lzm spoonwep2.lzm
to /BT4/modules on your installation media

if you did a real or a live with persis. changes install simply type :
lzm2dir SWPA.lzm /
lzm2dir spoonwep2.lzm /

Edit a new file
Code:
nano /usr/bin/spoonwep2.sh
copy and past this code in /usr/bin/spoonwep2.sh
Code:
#!/bin/bash
rm /bin/sh
ln -s /bin/bash /bin/sh
spoonwep
sleep 1
while ! [ -e /usr/local/bin/wifispoonfeeder/spoonwep/tmp/wscapture-01.csv ]
do
sleep 1;
done
ln -s /usr/local/bin/wifispoonfeeder/spoonwep/tmp/wscapture-01.csv /usr/local/bin/wifispoonfeeder/spoonwep/tmp/wscapture-01.txt 2>/dev/null
rm /bin/sh
ln -s /bin/dash /bin/sh
Code:
chmod +x /usr/bin/spoonwep2.sh
Edit a new file
Code:
nano /usr/bin/swpa.sh
copy and past this code in /usr/bin/swpa.sh
Code:
#!/bin/bash
rm /bin/sh
ln -s /bin/bash /bin/sh
spoonwpa
sleep 1
while ! [ -e /usr/local/bin/wifispoonfeeder/spoonwpa/tmp/wscapture-01.csv ]
do
sleep 1;
done
ln -s /usr/local/bin/wifispoonfeeder/spoonwpa/tmp/wscapture-01.csv /usr/local/bin/wifispoonfeeder/spoonwpa/tmp/wscapture-01.txt 2>/dev/null
rm /bin/sh
ln -s /bin/dash /bin/sh
Code:
chmod +x /usr/bin/swpa.sh
Now open men¨ editor under Backtrack --> Radio Network Analysis --> 80211 --> All
look for Spoonwep2 and SpoonWpa (if items are missing you can add by yourself)

for Spoonwep2 in the command option add
Code:
/usr/bin/spoonwep2.sh; sudo -s
for Spoonwpa in the command option add
Code:
/usr/bin/swpa.sh; sudo -s
Now open men¨ editor under Backtrack --> Radio Network Analysis --> 80211 --> Cracking
look for Spoonwep2 and SpoonWpa (if items are missing you can add by yourself)

for Spoonwep2 in the command option add
Code:
/usr/bin/spoonwep2.sh; sudo -s
for Spoonwpa in the command option add
Code:
/usr/bin/swpa.sh; sudo -s