alecsargent@lemmy.zip to linuxmemes@lemmy.world · edit-22 days agoIt's all about those little file mode bitslemmy.zipexternal-linkmessage-square71fedilinkarrow-up1258arrow-down121file-text
arrow-up1237arrow-down1external-linkIt's all about those little file mode bitslemmy.zipalecsargent@lemmy.zip to linuxmemes@lemmy.world · edit-22 days agomessage-square71fedilinkfile-text
minus-squareEphera@lemmy.mllinkfedilinkarrow-up57·2 days agoYeah, not only does +x leave read/write permissions untouched, it also only makes it executable for the user, not for everyone and their cat.
minus-squaredimmuborgnine@lemmy.worldlinkfedilinkarrow-up2·1 hour agoIf your cat isn’t the first entry in /etc/sudoers I’m not sure I want to know you
minus-squaredimmuborgnine@lemmy.worldlinkfedilinkarrow-up1arrow-down1·1 hour agoIf your cat isn’t the first entry in /etc/sudoers I’m not sure I want to know you
minus-squareMr.Chewy@lemmy.worldlinkfedilinkarrow-up24·2 days agoCat doesn’t execute anything tho, it just reads and gives output
minus-squarefartographer@lemmy.worldlinkfedilinkarrow-up1·11 minutes agoOr am I??? x='dumb.txt' && echo "ls | grep $x && cat $x && rm -v $x" > $x && cat $x | bash
minus-squareNominatedNemesis@reddthat.comlinkfedilinkarrow-up5·edit-21 day agoExcept if you use kitty terminal emulator with unsecure remote access. Issue Then with cat, you could execute arbitrary commands…
minus-squareSaharaMaleikuhm@feddit.orglinkfedilinkarrow-up9·2 days agoThe cat command executes the cat program.
minus-squarequantumvoid0@programming.devlinkfedilinkEnglisharrow-up5·1 day agoWhat happens when u try to cat the cat program, is that considered reading or executing
minus-squareNominatedNemesis@reddthat.comlinkfedilinkarrow-up5·1 day agoBoth, they are not mutually exclusive.
But those are different
Yeah, not only does
+xleave read/write permissions untouched, it also only makes it executable for the user, not for everyone and their cat.If your cat isn’t the first entry in /etc/sudoers I’m not sure I want to know you
If your cat isn’t the first entry in /etc/sudoers I’m not sure I want to know you
Cat doesn’t execute anything tho, it just reads and gives output
Or am I???
x='dumb.txt' && echo "ls | grep $x && cat $x && rm -v $x" > $x && cat $x | bashExcept if you use kitty terminal emulator with unsecure remote access. Issue
Then with cat, you could execute arbitrary commands…
The cat command executes the cat program.
What happens when u try to cat the cat program, is that considered reading or executing
Both, they are not mutually exclusive.
Had to be done for the joke. :)