• 62 Posts
  • 2.37K Comments
Joined 2 years ago
cake
Cake day: July 8th, 2023

help-circle



  • The script would place its own version of sudo in your $PATH and wait for you to enter the password. Then it has it and can do what it likes with the information.

    Then it’d just tell you “wrong password” and forward you to the real sudo so that you can keep on working like nothing happened.

    Edit: Or even better, pass your own commands to take over the whole system to the real sudo.