Hi. Another newbie here.
I have successfully patched scrypt and airmon-ng worked. But after system reboot all changes were lost. How to make changes persistent? (with minimum fuss hopefully). Thanks!
Printable View
Hi. Another newbie here.
I have successfully patched scrypt and airmon-ng worked. But after system reboot all changes were lost. How to make changes persistent? (with minimum fuss hopefully). Thanks!
Do you think its because I used universal usb installer instead of unetbootin?
All right guys, I found a solution.
Go to /pentest/wireless/aircrack-ng/scripts/
Open airmon-ng as text (with KWrite)
Find: if [ x$DRIVER = "xiwlagn" ] (generally around linkes 330 (mine is on 327)
See the second if?
There, before the while about 12 lines after, type in the following:
IS_LINK=`echo "$DECTED_STR" | grep Link | wc -l`
ttmp=$IS_LINK
(Leave the next two lines the same)
Then type in:
if [ ttmp = "1" ]
then
FOUND=`echo "$DETECTED_STR" | cut -d' ' -f $LINK_POS | grep Link | wc -l`
else
FOUND=`echo "$DETECTED_STR" | cut -d' ' -f $LINK_POS | grep Wireless | wc -l`
fi
(thats all)
now save
open konsole cd /pentest/wireless/aircrack-ng/scripts/
airmon-ng should now work
Remember that -l is a lowercase -L, not a -1 (which was my problem. it makes a difference)
This is really worth the trouble :D
Still got problems? feel free to email me NO EMAIL REQUIRED.
BackTrack 5r1 x64 (installed to USB with UNetBootin)
I am having this same problem and I used unetbootin to write the .iso to my usb stick. If fact, none of my changes save to the usb. I installed a flash plugin so my flash works and I had to reinstall next boot. This is pretty frustrating. Is there something we can do to correct this? Thanks!
-MrBucket
I received alot of help from these boards so I feel obligated to return the favor. When I installed backtrack5, and ran airmon-ng, my network adapter wasn't recognized and I'd get that "loop".
I sent many hours trying to install the "patch", without any luck.
Eventually I was able to get my network adapted recognized, and it should work for you too. I am not sure if this is the correct way of doing it but it worked for me. Here's what I did.
(Backup any file that you edit incase you want to return it to it's original state)
Step 1. - "Copy the airmon-ng file "pentest/exploits/set/src/wireless/airmon-ng"
Step2. - "Go to the folder "pentest/wireless/aircrack-ng/scripts"
Step.3 - Replace the "airmon-ng" file in "pentest/wireless/aircrack-ng/scripts/airmon-ng" with the "airmon-ng" file from "pentest/exploits/set/src/wireless/airmon-ng"
Thats It!!
Go test it out!!
Leave a reply letting me know if it worked please.
the above solution didn't work for me :(
Mine (BT5R1 x32 GNOME) looks a bit different and am not sure what changes to make. Appreciate your help!
-----------extracted script-------------
if [ x$DRIVER = "xiwlagn" ]
then
CHIPSET="Intel 4965/5xxx/1xxx"
DETECTED_STR="'dmesg | grep iwlagn | grep Detected | tail -n 1'"
LINK_POS="3"
FOUND="0"
if [ x"$DETECTED_STR" != "x" ]
then
while [ $FOUND = "0" ]
do
FOUND='echo "DETECTED_STR" | cut -d' ' -f $LINK_POS | grep Link | wc -l'
LINK_POS=$(($LINK_POS+1))
done
TEMP_CHIPSET='echo "$DETECTED_STR" | cut -d' ' -f $LINK_POS'
case "x${TEMP_CHIPSET}" in
# x5100AGN)
# CHIPSET="Intel $TEMP_CHIPSET"
# ;;
x5300)
TYPE_TEMP='echo "$DETECTED_STR" | cut -d' ' -f $(($LINK_POS+1)) | awk -F, '{ print $1 }' '
CHIPSET="Intel ${TEMP_CHIPSET}${TYPE_TEMP}"
;;
x1000)
TYPE_TEMP='echo "$DETECTED_STR" | cut -d' ' -f $[$LINK_POS+2]'
CHIPSET="Intel ${TEMP_CHIPSET}${TYPE_TEMP}"
;;
*)
CHIPSET="Intel $TEMP_CHIPSET"
;;
esac
fi
fi
Thanks!
I used the latest r1972 changes in aircrack forum (http://trac.aircrack-ng.org/changeset/1963) to update airmon-ng in the BT5r1 /pentest/wireless/aircrack-ng/scripts/ directory.
Command line actions seem to work but somehow I could not get the script to execute? I think a airmon-ng script somewhere else is executing instead of the one I have changed in /pentest/wireless/aircrack-ng/scripts/....
Help!
OK - I know this is a dirty kludge, but I just had to do something (anything) get gerix going on BT5 R1, with the 1000 BGN. On BT5 R1 x64 (should work on x86/32bit also), running this command should fix the issue and get you up and cracking, with the Intel 1000 BGN wireless chip:
cp /usr/local/sbin/airmon-ng /usr/local/sbin/airmon-ng-BAK && sed 's/| grep Link |/| grep iwlagn |/g' /usr/local/sbin/airmon-ng-BAK>/usr/local/sbin/airmon-ng
It works perfectly for me. My card is reported as "Intel Corporation Centrino Wireless-N 1000", specifically.
If this doesn't work for you for some reason, run this command to put your airmon-ng file back to it's original state:
cp /usr/local/sbin/airmon-ng-BAK /usr/local/sbin/airmon-ng
Good luck!