yǐ​zǐ​zhī​máo​gōng​zǐ​zhī​dùn

to use someone's own weapon against them