Well, almost any language can be used to exploit vulnerabilities. I think some of the most common languages are going to be Python, Ruby, Java/Script, and anything of the C breed. For local/program exploits, I would recommend you to get familiar with assembly code, as most things will get broken down to assembly before machine code.
Spreading knowledge just once a day, can help keep the script kiddies away ⠠⠵
The mystery is intensified by the facts.