Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
loeg
· 6y ago · 0 comments
This alias just prompts the user twice, as if the user made a typo the first time. Unless you know you're a perfect typist, it's somewhat subtle.
Comments
[–]
vortico
6y ago
Not if you have a sudo timeout enabled. Or, the proof of concept could be changed to
alias sudo='sudo ./badscript'
where badscript runs `exec $@`.
[–]
loeg
OP
6y ago
Good considerations. Thanks.
[–]
NieDzejkob
6y ago
Not even that, because sudo keeps your password in memory for a few minutes.