I use these three Linux commands one after each other in terminal to enable monitoring mode on Raspberry Pi 3.
iw phy phy0 interface add mon0 type monitor
ifconfig mon0 up
airudump-ng -w mon0
I want to run this these commands in Python file instead of on terminal.
I have little idea about subprocess module but don't know how to do this.
Please suggest me a way to do this.