K2017-10-02 16:40:11
K, 2017-10-02 16:40:11

Airodump in the background takes up 90% of the Cpu, in normal mode - 3-4%, how so?

I'm trying to run airodump in the background. so that he does not interfere, look around at the access points and write a log to a file.
It seems to be nothing complicated.

use strict;
exec("airodump-ng mon0 -a --berlin 30 --output-format csv -w logFile >/dev/null 2>&1 &");

1839 root 20 0 3.6m 1.6m 93.8 6.0 0:10.14 S `- airodump-ng
93.8% cpu usage
even though if run not in background,
exec("airodump-ng mon0 -a --berlin 30 --output-format csv -w logFile >/dev/null 2>&1");

download already 4-6%
1859 root 20 0 3.3m 1.3m 4.7 4.9 0:01.53 S `- airodump-ng

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K, 2017-10-11

eval {
        local $SIG{INT} = sub { die };
        $pid = open(DUMP, "|airodump-ng mon0  1>/dev/null 2>/dev/null");
#       * * *

Alexey S., 2017-10-02

I was finally able to run airodump-ng in background by using tmux the following way:
tmux new -d -> creates a new tmux window in background 
tmux send -Rt 0 airodump-ng SPACE wlan0 ENTER  -> sends the given keys to the backgound terminal

This way, airodump-ng works and doesn't take 100% CPU like with screen.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question