linuxnoobe Posted January 4, 2009 Share Posted January 4, 2009 I'm not very good with linux but that doesn't really matter when there are distro's like backtrack. What i would like to do is make a script that will change my card from monitor to managed mode. This is how i do it manually: wlanconfig ath0 destroy ifconfig wifi0 down wlanconfig ath0 create wlandev wifi0 wlanmode managed ifconfig wifi0 up ifconfig ath0 up This works fine for me but it would be nice to be able to just click on a script and be done with it. Help would be Appreciated! Quote Link to comment Share on other sites More sharing options...
taiyed14 Posted January 4, 2009 Share Posted January 4, 2009 I'm not very good with linux but that doesn't really matter when there are distro's like backtrack. What i would like to do is make a script that will change my card from monitor to managed mode. This is how i do it manually: wlanconfig ath0 destroy ifconfig wifi0 down wlanconfig ath0 create wlandev wifi0 wlanmode managed ifconfig wifi0 up ifconfig ath0 up This works fine for me but it would be nice to be able to just click on a script and be done with it. Help would be Appreciated! Since you're using BT3, try running airmon-ng stop wifi0 Quote Link to comment Share on other sites More sharing options...
Sparda Posted January 4, 2009 Share Posted January 4, 2009 #!/bin/bash wlanconfig ath0 destroy ifconfig wifi0 down wlanconfig ath0 create wlandev wifi0 wlanmode managed ifconfig wifi0 up ifconfig ath0 up Quote Link to comment Share on other sites More sharing options...
linuxnoobe Posted January 4, 2009 Author Share Posted January 4, 2009 I know how to use airmon but that won't help with managed mode. when i try to use wep or just connect to an ap it crashes on me the way shown above is the only way i got it to work. i know nothing about scripting Sparda is it really that simple? if so i will be doing a lot more scripting. Does it matter that i will be running it from a thumb drive? Quote Link to comment Share on other sites More sharing options...
linuxnoobe Posted January 4, 2009 Author Share Posted January 4, 2009 I did what Sparda wrote and created a file called managedmode.sh and it works. i would like to be able to just click on the file and have it run but the way it works now i have to cd to sda1 and type the file name and run it. is there a way to make it so i just click on it and it runs? it would be nice to be able to click on it and a konsole window pops up showing what its doing. like my name implies I'm a Linux noob and i thought this would be simple i don't want to program i just want to make it easier for me to use. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.