Definition: to accomplish something using any method available, especially creative or unusual methods
Examples:
We have no money left in the training budget, but this course is important. We will sponsor the training, whatever it takes. We will do it by hook or by crook.
I was lazy, and did not study hard for the test. If I fail this class, I won’t graduate. I promise, I will pass this class, by hook or by crook.