(idiomatic, sometimes euphemistic for improper behavior) Anything, including measures which may be extreme or wrongful, that is required to achieve an objective.
Esimerkit
"I'll do whatever it takes to win."
[T]he security forces have exhibited few qualms about doing whatever it takes to quiet the streets, including the imprisoning of an estimated 2,000 opposition supporters.