Y
Hacker News
new
|
ask
|
show
|
jobs
by
ratg13
323 days ago
Seems like they could have taken a shortcut by giving copilot a sudo binary to use as base64.
2 comments
jfyi
322 days ago
You would need to change ownership of the file to root also.
link
yencabulator
319 days ago
Base64 is a bytes-to-ASCII encoding and does not magically transport file system metadata such as owner and suid bit. The sudo binary has no special powers by its mere byte content.
https://en.wikipedia.org/wiki/Setuid
https://en.wikipedia.org/wiki/Base64
https://xkcd.com/1053/
link