Jump to content

Simple script for bt3


linuxnoobe
 Share

Recommended Posts

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!

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...