Skip to content

Configurable c program to modify ~/.bashrc to run a custom sudo

License

Notifications You must be signed in to change notification settings

skyler-ferrante/Alias-Sudo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

skyler-ferranteskyler-ferrante
skyler-ferrante
and
skyler-ferrante
Jun 16, 2021
4b00914 · Jun 16, 2021

History

10 Commits
Jun 16, 2021
Jul 8, 2020
Jun 16, 2021
Jun 16, 2021

Repository files navigation

Alias-Sudo

Configurable c program to modify ~/.bashrc to run a custom sudo.

The program just appends "alias sudo='sudo SUDO_COMMAND; sudo'".

This is a simple proof of concept to show one reason why running untrusted code is bad, even when not as root.

Build with:

$gcc sudo-make-me-a-sandwich.c

Run with:

$./a.out

About

Configurable c program to modify ~/.bashrc to run a custom sudo

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages