General :: Make A Script To Automatically Run Aircrack-ng?
May 13, 2011
I am trying to make a script to automatically run aircrack-ng.
1. One part of the program is an ongoing action. one that you have to press ctrl+c to cancel, but I need the script to keep running the tasks after it.
2. I need to leave one thing running while running another, so if I could like open a new Terminal tab and run things that would be perfect.
3. I need to keep it all as one script, because the variables need to stay.
i have installed ubuntu 10.10the wireless adapter is BCM4312when i write "ifconfig" it gives me eth1 instead of wlan0 or wlbut the wirless is working fine with me still have the problem that when i try to load airodump-ng eth1 it gives me the follwoing message:ioctl(SIOCSIWMODE) failed: Invalid argumentARP linktype is set to 1 (Ethernet) - expected ARPHRD_IEEE80211,ARPHRD_IEEE80211_FULL or ARPHRD_IEEE80211_PRISM instead. Makesure RFMON is enabled: run 'airmon-ng start eth1 <#>'Sysfs injection support was not found either
I installed Slitaz on my USB. However I can't figure out how to make it persistent automatically. There are different sources telling me different ways to make it persistent.
One told me to add "slitaz home=usb" to the syslinux.cfg file like this:
http://www.slitaz.org/en/doc/handbook/liveusb.html gave an example of how to do it manually but I didn't try it and I also want it to happen automatically.
custompc.co.uk/features/602451/make-any-pc-your-own-with-linux-on-a-usb-key.html is an older article that also explains how to make the USB persistent but I don't want to try it cause it looks outdated (from 2008)
does anyone know the best way to make the USB automatically persistent?
I am running a dual-boot with Ubuntu (10.10) and Windows 7. Recently I edited my /boot/grub/grub.cfg file to only show one version of Ubuntu (as opposed to several kernel versions) and Windows, simply by commenting out all other menu entries. My question is if I can edit GRUB to just boot a specific entry automatically.
I tried removing all other menu entries, but GRUB still showed the menu with only one entry. I've also considered just setting the timeout to either 0 or 1 second, as this would basically achieve the same thing.
I'm working in Debian, and I've noticed that when I resize my PuTTY window, the console inside isn't resizing to the new dimentions, so things like nano are running at 80xwhatever instead of the more useful 130xsomething that I've offered it.
I have switched to openbox from Gnome and would now like to stop using Metacity altogether. When I was using metacity I had both a control theme (e.g. gtk theme) and fonts set up how I liked them in gnome-appearance-proporties. When Openbox starts, it gets my window borders up properly (ofc.) but fails to render my fonts properly and uses the wrong gtk theme. I can't find anywhere to specify which gtk theme to use or what method to render my text with. After Openbox is finished doing it's thing, and I run gnome-apperance-properties manually, it will automatically set everything to it's proper value, but I don't want to have to do this as it takes several seconds to preform and I'd rather not have it jury rigged like this.
I am administrating a lab in a university and every semester we need to delete all the home folders of the accounts for the next semester. I would like to make a bash script that does this automatically and having trouble with it. Note that I am writing my very first bash script. What I need to do is make a script to delete the following:
Delete everything in /home/$exp$num/$dir when "exp" could be either "rt", "ic" or "sp". "num" could run from 1(single digit) to 45 and dir is "profile" and "work".
This is what I tried to write:
Code:
#!/bin/sh cd /home for exp in "rt ic sp" do
[code]....
What seems to be the problem is the reading of "$exp$num" as a joint expression.
I have Windows 7 and Fedora 14 both on my laptop in dual boot configuration. When my computer starts up it shows a screen that says press any button to select another operating system to start, then I can make Windows 7 start. But after 2 seconds, if I DON'T press any button then Fedora starts automatically. How can I change this so Windows starts automatically when I don't press any button?
I want to insert a CD-ROM and have it automatically be mounted to someplace like /media/cdrom and create an icon on the Gnome desktop, while logged in as a non-root user under SLED 11.
i'm used to using putty on a window's machine.With putty whatever you select is automatically on the clipboard without having to right click and select copy.And right click just pastes.
how to use aircrack-ng on ubuntu 10.4? cos i actually installed it using 'sudo apt-fast install aircrack-ng' but got some error when i tried sudo airodump-ng eth1. i use dell inspiron 1545,maybe the following result will help
jiballx@jiballx-laptop:~$ sudo airmon-ng stop wlan0 [sudo] password for jiballx: Sorry, try again. [sudo] password for jiballx: InterfaceChipsetDriver
Just a minor question, but I notice with aircrack when it lists networks, it does not list the encryption type of each network.
Which seems fair enough, as you can use Kismet, however on my machine when I end kismet and the server, the monitor interface is not removed and I cannot remove it manually, which screws with aircrack.
SO, is kismet needed to view encryption types of networks, and if so how do you use it peacefully in unison with aircrack?
I've set up DRBD on 2 machines, 1 of them is the master, another is the slave.
After each bootup, I need to run the following on the master machine:
Code: drbdadm -- --overwrite-data-of-peer primary all
Do we need to specify which machine should be the primary node every time? Is there any method to make the machine "know" it's itself the primary node?
what to do for lock automatically slackware 13 if not used for n minutes ?What can i do to start automatically the ktorrent (a bittorrent program for linux) on system starts on slackware 13 ?
I want to make g++ find a bunch of header files in a very specific folder, that is not in any path without having to type out the -I command over and over each time I use a new command. any idea to make it automatically look for the headers in that folder. (please don't respond "move them to another folder where it already looks").
So my girlfriend came back from a holiday and it results that she somehow ( dont ask me how) wiped out vista from her hd pavillion laptop. There`s nothing there, the pc doesn't have a guarantee anymore so I thought, what the heck, I could install an ubuntu 10.4 there. It's a nice machine so it should run nicely.
I made her try ubuntu on my laptop and she likes it so she gave me a green light to do it. So how should I go about it? boot the live cd and when I get to the partition part just tell the installer to overwrite the whole c drive and make the partition automatically? I'm kind of a noob so I wouldnt want to mess things up more than what they are.
I have a lenovo thinkpad laptop, and it has both touch-pad (standard build in laptop mouse) and touch-point (in the middle of the keyboard) mouse options.
I almost invariably use the touch-point and the accompanied scroller and key-buttons.
HOWEVER, for the scroller to be recognized by ubuntu you must run two scripts as follows:
Restarting the computer resets these settings, and you must re-run them each time you start up ubuntu.
I am looking to write a script that will automatically run itself (which will execute the above commands), or to permanently change these settings so that it will not be necessary to run them at each start-up.
Thanks in advance, and if there is another thread on these forums that I should move to (or even just another thread that would be a more likely place to get a response). This seemed like the best forum (one which can certainly hold this post without violating any rules), but I may have missed something.
Just wondering is there a way to make the update manager display automatically in Ubuntu 10.10 after it check the repositories for updates. I keep having to manually put sudo apt-get upgrade all the time. Even set to daily it never pops up.
I used to input Chinese with scim input method, which can be trigered by Ctrl^Space. But this time, I reinstalled ubuntu 10.04, I have to manually start up ibus from System>Preference>ibus firstly before I can triger the input method by Ctrl^Space.
This is not over, the key problem is there are several dialogues to click "ok" with before I can really use the scim.
How can I make this ibus startup automatically and quitely?
I tried put command "ibus -setup" into my .profile, it does start up the ibus automatically every time when I login, but the dialogues still bothering me.
i am using Ubuntu 10.04 LTS with compiz fusion, when the computer loads, the compiz doesn't load with the effects automatically, to make them appear i should right click on the Compiz Fusion icon and then choose relaod window manager can i make this work automatically when the computer is load?
Newbie question here. I just realized that I can tell make to use multiple cores to compile by doing PHP Code:makewhich is just awesome on a quad core with hyperthreading (I just compiled 2.6.33-rc5 in under 5 minutes!) I know aliases are possible, though I've never had much need. What I would like to know now, is if it would be safe to alias make to mean PHP Code:so that by default I use 6 of the procesors when building or if there would be occasions that compiling on multiple processors would be a bad thing
I have read some stuff but none seemed to work such as putting default=saved and in the window (other) section putting savedefault. hmm I know I can just specify the number after default but that breaks when a new kernel is installed. so any way to always make windows the default choice (so my wife will stop moaning
I installed dansguardian & squid on 11.2 and things seem to run fine. Squid auto starts but dansguardian does not. I have checked Yast2's runlevel services option and dansguardian is enabled to 'Yes'. But when i check with 'service dansguardian status' it reports 'unused'.If i start dansguardian by hand, things work perfectly fine.I am in a desperate situation since there are 4 other computers which are dependent on this setup to work correctly