Layman explanation :
"PS1" is the primary shell prompt.
So, it is that which the linux operating system displays at the start of each line where you, the user, type a command.
Obtaining "#" as the prompt would normally indicate to the user that the next command is to be accepted as having "root privileges" (thought it could do whatever to the system) ... but in the above case, the "#" doesn't mean that ... nor anything other than : that prompt as been changed.
Programmer Humor
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
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
- If the mod doesn't find it funny, you're banned. Ha-ha!... For real: do not use the community for "statements". There are other places for such content. Keep it chill and funny.
Ah yes, the linux operating system... It's actually usually Linux distros that display lots of things with colors, other unixes are usually just the hostname with $ or #. Identifies the machine and isn't distracting, just how I like it. Except for the part when I forget which dir I am in, of course.
I already found another one!
echo $USER prints my current user name. Once I do USER=root it shows im running as root. And I wasn't even asked for my sudo password! :O :O :O
You joke but at work our security office mass reset passwords because they saw a list of users in the pwd file. Even after others pointed out it was just a list of usernames not their credentials AND that it couldn't be the actual credentials as we're an AD shop
They would definitely fall for that 😭
Huh. It is worth bearing in mind not to trust $USER before doing something based on it, though, if that thing is important.
So...
PROMPT=$P$G$_#
??
$ echo "Access granted."
Access granted.
gork is this tru
oh my god
Fuck, it works on my machine. When can we expect a patch?
echo "Patch installed."
Have you read the full report?
You can work around the issue by removing the french language pack from your system.
Holy crap, didn't expect it to go I to that much detail.
Dear god, when combined with terminal2shell this can compromise every Unix-like system ever created.
It all started with prompt2output... Who would have known
Neeeerrrrrrds!
Looks like the hacker was exporting your PlayStation 1!!! Lock this place DOWN.
Would you steal a PlayStation?
No, but I would download a PS1.
For half a second I nibbled the onion. It didn't taste good.
Maybe 0.1 seconds. The filthy taste is still in my mouth though.
Thank god I use zsh.
I am pretty sure you can tipe "bash" to switch to it in any shell.
tipe “bash” to switch to it in any shell.
I'm pretty sure typing bash turns it into bash, not any shell
;-)