Two tried and tested methods, neither guaranteed of course.
1) Be better than the overwhelming majority of your peers, and be noticed for this. You are quite likely to find interesting opportunities come your way. I do mean overwhelming though - small fraction of a percent.
2) Specialize in something most people can’t or won’t do. This includes difficult, obscure, and unpleasant work.
In both cases some of the biggest $ comes from independent consulting, once you’ve built up a network and a reputation for fixing a particular pain point corporations have (bill for value, of course).