逆手に取る

Verb

 * 1) to take advantage of something to one's benefit while in unfavorable conditions