Since you seem to be able to log in, it looks like sudo itself was hacked. You will need a root password to clear the mess, otherwise all you can do is reinstall. Once you log in as the root user, here's what you need to try:
sudo strace LD_DEBUG. , - . , , .
sudo (/etc/sudoers man sudo). , .