Remix.run Logo
ratg13 4 days ago

Seems like they could have taken a shortcut by giving copilot a sudo binary to use as base64.

yencabulator 15 hours ago | parent | next [-]

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/

jfyi 4 days ago | parent | prev | next [-]

You would need to change ownership of the file to root also.

pinoy420 4 days ago | parent | prev [-]

[dead]