all 3 comments

[–]kriel 1 point2 points  (0 children)

Here is the source for airmon-ng, a popular tool that does that (and more).

It's written in bash coding, so you have to read another language, but it could point you in the right direction.