I want to parse the output of airodump-ng tool searching for wps data. I know since airodump-ng 1.2 rc2 there is available an argument --wps
which shows another new column for wps data. The surprise is using -w option to write the results to a file, there is no wps info on files!!! only showed by screen...
So I thought maybe could be good idea to capture the screen's output and parse everything manually with awk and/or regexps. First thing I observed is stdout is not normal. Using tee like this airodump-ng wlan0mon | tee "/path/to/log"
it produces an empty file. Searching I found this post: How do I write stderr to a file while using "tee" with a pipe?
With that solution I can do airodump-ng wlan0mon > >(tee /path/to/log) 2> >(tee /path/to/log >&2)
and the file is filled with all the data... the problem is there is a lot of repeated data... I want only last state of screen before stopping airodump... like some kind of "screenshot" of last state of data on a file and then I can try to parse... Any idea about how to get this? Thanks in advance.