101

So I set my password to

sudo rm -rf --no-preserve-root /
you are viewing a single comment's thread
view the rest of the comments
[-] Godort@lemmy.ca 21 points 14 hours ago* (last edited 14 hours ago)

It would have to be a really strange situation where the backend would be decoding and then running just the password field as a bash command. Very likely not to be the case.

To make it more likely to work, you want to take a page from SQL injection and make sure you include something at the start of the command to terminate whatever was there first and end with a comment character to ignore anything after.

In addition you probably want to drop the 'sudo' in this case, as it's far more likely that whatever is running this would be running as root rather than a user account with sudo with password disabled.

You'd want something more like

&& rm -rf --no-preserve-root / #

JiYgcm0gLXJmIC0tbm8tcHJlc2VydmUtcm9vdCAvICM

[-] FluorineBalloon@programming.dev 10 points 11 hours ago
[-] canaryWart@programming.dev 3 points 12 hours ago

Or they're tryna send it out of a reverse shell and forget to put the command name as the 0ᵗʰ argument

this post was submitted on 20 Nov 2026
101 points (96.3% liked)

Programmer Humor

34233 readers
1259 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 3 years ago
MODERATORS