Aircrack-ng
Welcome, Guest. Please login or register.
November 21, 2009, 02:16:22 am

Login with username, password and session length
Search:     Advanced search
Read forum rules, "Read this before posting". Post that do not respect them will be trashed.
29627 Posts in 5045 Topics by 13317 Members
Latest Member: JatStraikar
* Home Help Search Login Register
+  Aircrack-ng
|-+  Members only
| |-+  Bug reports
| | |-+  airmon-ng check kill -- fails under ubuntu 9.10
« previous next »
Pages: [1] Print
Author Topic: airmon-ng check kill -- fails under ubuntu 9.10  (Read 403 times)
sleek
Full Member
***
Posts: 136


airmon-ng check kill -- fails under ubuntu 9.10
« on: October 30, 2009, 11:22:27 am »

The log explains the problem:
http://pastebin.ca/1649077

Final 1.0 version. It kills the pids but they automatically start again.
Ub. 9.10
Logged
darkAudax
Administrator
Hero Member
*****
Posts: 5351


Re: airmon-ng check kill -- fails under ubuntu 9.10
« Reply #1 on: October 30, 2009, 02:07:40 pm »

sleek,

I don't use ubuntu 9.10 but it looks like there is some type of "monitor" process running.  Perhaps look at the startup services to see if anything similar to that is started.  As well, maybe ask in the Ubuntu forums as to what process is doing the restart.  I hate automatic anythings!

d.
Logged
Arkaic
Newbie
*
Posts: 34


Re: airmon-ng check kill -- fails under ubuntu 9.10
« Reply #2 on: October 30, 2009, 02:28:10 pm »

The log explains the problem:
http://pastebin.ca/1649077

Final 1.0 version. It kills the pids but they automatically start again.
Ub. 9.10


You should experiment more.  I had this one figured out in a couple of minutes.  Did you noticed the error message if you try to stop Network Manager the old way, via /etc/init.d?


Use "stop network-manager" and "stop avahi-daemon".
Logged
darkAudax
Administrator
Hero Member
*****
Posts: 5351


Re: airmon-ng check kill -- fails under ubuntu 9.10
« Reply #3 on: October 30, 2009, 02:42:45 pm »

Arkaic,

Good solution.  However, what is restarting them?  Normally "kill" should permanently destroy the processes.

d.
Logged
Arkaic
Newbie
*
Posts: 34


Re: airmon-ng check kill -- fails under ubuntu 9.10
« Reply #4 on: October 30, 2009, 02:46:59 pm »

Arkaic,

Good solution.  However, what is restarting them?  Normally "kill" should permanently destroy the processes.

d.



I believe is is the new ubuntu Upstart process which handles services now.  I haven't dug into it too much.   I just noticed it on my netbook when I was experimenting with aircrack.  I just wanted services stop long enough to get things going.  Smiley
Logged
sleek
Full Member
***
Posts: 136


Re: airmon-ng check kill -- fails under ubuntu 9.10
« Reply #5 on: October 30, 2009, 04:50:13 pm »

Arkaic,

thanks for enlightening me on how to manually stop my services...

The point of the "check kill" option is to do it automatically and speed things up.

I posted this topic, because Ubuntu is the most sought-after distro and multitude of aircrack-ng users are going to be affected which is why I think aircrack devels should be aware in order to implement the proper amendments to the code.
Logged
darkAudax
Administrator
Hero Member
*****
Posts: 5351


Re: airmon-ng check kill -- fails under ubuntu 9.10
« Reply #6 on: October 30, 2009, 05:14:34 pm »

sleek,

Could you please see if you have that service called "upstart" and if disabling it resolves the problem.  We might need to look for and kill it off as well.

Arkaic: Maybe you can do the same as well.

Bottom line, as sleek said, this will affect a lot of people and we need to develop a solution.

d.
Logged
Mister_X
Administrator
Hero Member
*****
Posts: 3047


WWW
Re: airmon-ng check kill -- fails under ubuntu 9.10
« Reply #7 on: October 30, 2009, 05:30:27 pm »

sleek, do these processes have a parent? Maybe we can add it to the list of things to kill.
Logged
sleek
Full Member
***
Posts: 136


Re: airmon-ng check kill -- fails under ubuntu 9.10
« Reply #8 on: October 30, 2009, 06:49:35 pm »

Quote
ps uax |grep upstart
root      2227  0.0  0.0   2148   536 ?        S    19:25   0:00 upstart-udev-bridge --daemon

upstart-udev-bridge man page:

Quote
NAME
       upstart-udev-bridge - Bridge between Upstart and udev

SYNOPSIS
       upstart-udev-bridge [OPTIONS]...

DESCRIPTION
       upstart-udev-bridge  receives  information about kernel uevents that udev( 8 ) has completed
       and creates init( 8 ) events for them.

       This is a temporary tool until  init( 8 )  itself  gains  the  functionality  to  read  them
       directly; you should not rely on its behaviour.

Killing the upstart-udev-bridge pid resurrects again. This is the new daemon that has to be included for airmon to kill.
http://upstart.ubuntu.com/index.html
Logged
Arkaic
Newbie
*
Posts: 34


Re: airmon-ng check kill -- fails under ubuntu 9.10
« Reply #9 on: October 31, 2009, 12:52:36 am »

I'm glad to see that you finally poked around, and saw that it was Upstart.

Sounds familiar....oh yeah, I had mentioned it previously.


Quote
ps uax |grep upstart
root      2227  0.0  0.0   2148   536 ?        S    19:25   0:00 upstart-udev-bridge --daemon

upstart-udev-bridge man page:

Quote
NAME
       upstart-udev-bridge - Bridge between Upstart and udev

SYNOPSIS
       upstart-udev-bridge [OPTIONS]...

DESCRIPTION
       upstart-udev-bridge  receives  information about kernel uevents that udev( 8 ) has completed
       and creates init( 8 ) events for them.

       This is a temporary tool until  init( 8 )  itself  gains  the  functionality  to  read  them
       directly; you should not rely on its behaviour.

Killing the upstart-udev-bridge pid resurrects again. This is the new daemon that has to be included for airmon to kill.
http://upstart.ubuntu.com/index.html
Logged
darkAudax
Administrator
Hero Member
*****
Posts: 5351


Re: airmon-ng check kill -- fails under ubuntu 9.10
« Reply #10 on: October 31, 2009, 01:22:55 pm »

Arkaic,

Yes, we all know you mentioned Upstart previously.  The point was to confirm exactly which process needed to be killed.  I asked both you and sleek to confirm which exact one.  sleek was kind enough to spend time to do this.  No need for sarcasm.

d.
« Last Edit: October 31, 2009, 01:42:15 pm by darkAudax » Logged
sleek
Full Member
***
Posts: 136


Re: airmon-ng check kill -- fails under ubuntu 9.10
« Reply #11 on: October 31, 2009, 01:40:18 pm »

From what I gather, distros from now on are going to adopt 'upstart' which is going to replace the /sbin/init daemon which manages services and tasks during boot. So it won't just be Ubuntu.

The pecking order for the new airmon-ng code should be
service network-manager stop
service avahi-daemon stop

and then proceed with grep-ing and killing the pids of dhclient and wpa_supplicant

This is the only way to kill ALL of the potentially problematic pids for aireplay-ng permanently. The trick is the kill the daemons first and then terminate the 'tasks'.
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Aircrack-ng | Powered by SMF 1.0.10.
© 2005, Simple Machines LLC. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!