well there is already a lot of great tools for that but if you want to make your own the first stepp would be to understand how the wifi works, write a program to capture data, learn what all the data recived is, learn injection, learn different types of security algoritsm