Bandanas come from enemies encountered in flying mode. Hop onto one of the aircraft, deal with whoever is aboard, and there is a chance they will drop one.
It is a drop rather than a guarantee, so repeat the process across a few flights if your first attempt comes up empty.