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.
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.
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
Right? And while Linux generally seems to let you shoot yourself in your foot if you’d really like to, things like --no-preserve-root mean they do put SOME guardrails out there. lol. $USER seems worth making immutable. heh
Comments
I really need to make a paper on my CVE called money2root (get root access by paying someone to give it to you).
For anyone who didn’t see this when it made the rounds a couple weeks ago:
https://terminal2shell.com/
$ echo "Access granted." Access granted.oh my god
It’s JSON Bourne Again SHell
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.
4k remaster ftw
Holy crap, didn’t expect it to go I to that much detail.
You know the rules, and so do I
gork is this tru
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.
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.
thank goodness you can customize it
I already found another one!
echo $USERprints my current user name. Once I doUSER=rootit shows im running as root. And I wasn’t even asked for my sudo password! :O :O :Oalias whoami='echo root'That seems like an adjacent vector, want to coop on the CVE?
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 😭
Oh my xD
Huh. It is worth bearing in mind not to trust $USER before doing something based on it, though, if that thing is important.
The interesting thing is that bash allows writing this variable. I would’ve expected it to be readonly for obvious reasons.
Right? And while Linux generally seems to let you shoot yourself in your foot if you’d really like to, things like
--no-preserve-rootmean they do put SOME guardrails out there. lol. $USER seems worth making immutable. hehPwned again!
Dear god, when combined with terminal2shell this can compromise every Unix-like system ever created.
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.
So…
??
Neeeerrrrrrds!
Thank god I use zsh.
I am pretty sure you can tipe “bash” to switch to it in any shell.
I’m pretty sure typing
bashturns it into bash, not any shell;-)
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.
Sign in to comment. Sign in