• ZILtoid1991@lemmy.world
    link
    fedilink
    arrow-up
    10
    ·
    16 hours ago

    I really need to make a paper on my CVE called money2root (get root access by paying someone to give it to you).

  • A_A@lemmy.world
    link
    fedilink
    arrow-up
    72
    arrow-down
    1
    ·
    2 days ago

    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.

    • diaphragmwp@discuss.tchncs.de
      link
      fedilink
      English
      arrow-up
      13
      arrow-down
      1
      ·
      1 day ago

      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.

    • A_A@lemmy.world
      link
      fedilink
      arrow-up
      5
      arrow-down
      27
      ·
      edit-2
      2 days ago

      So, sadly, the joke here really is :
      “Hey we programmers are so bright since we do understand this while laymen do not.”

      Edit : added “sadly” for my criticism to be obvious.

      • FluorineBalloon@programming.dev
        link
        fedilink
        English
        arrow-up
        44
        arrow-down
        1
        ·
        1 day ago

        It’s actually “this joke made me laugh but not a lot of people will understand, so I’m posting it in a space where like minded people hang out rather than confuse most people by posting it in a general humor community.”

        Not everything is an attack.

        • A_A@lemmy.world
          link
          fedilink
          arrow-up
          7
          arrow-down
          2
          ·
          1 day ago

          i value your opinion and it’s probably better on topic than mine since i am quite bitter about programming and software. Whatever the O.S. , linux , Microsoft or other, since many decades, it is still creating trouble … yet i use some of it right now. Nevermind, i should be happy that people can make jokes and have a good time.

          • 1984@lemmy.today
            link
            fedilink
            arrow-up
            3
            ·
            1 day ago

            Yeah that explanation was not ego based, he was just trying to share what happened. But yes, this industry is full of “akshully” people who build up their ego from knowing obscure details that others don’t care about.

            • A_A@lemmy.world
              link
              fedilink
              arrow-up
              2
              arrow-down
              2
              ·
              18 hours ago

              i like you. You help me regain confidence in the community. And so, in the coming weeks, i will try to post the computing challenge (problem) at which i failed and which made me bitter and somewhat resentful towards (some) linux developers.

      • Feathercrown@lemmy.world
        link
        fedilink
        English
        arrow-up
        5
        ·
        1 day ago

        You’re the grey guys rn

        Edit: I see you have done some self-reflection, that’s commendable and I appreciate your ability to do that on the internet. Not many people can.

        • A_A@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          18 hours ago

          Thanks for the cartoon and for your time.
          i tried to be one of the pink ones and i failed in some ways.

          When i write a computer program i see clearly why putting good comments explaining the program is difficult … and somewhat useless.

          But when, after a while, i read that program again, i see which comments would have been very helpful for someone who would want to understand the program.

          The same phenomenon appears as well in niche domains. The joke here and the community is completely valid for one specific group … but the best jokes and the best documents or books can at the same time reach to everyone.

          As Einstein (Albert, physicist) said : if you really understand something, you can explain it to a 5-year-old.

        • A_A@lemmy.world
          link
          fedilink
          arrow-up
          5
          ·
          1 day ago

          i accept your constructive criticism : your comment helps me a little understand myself.

  • dbx12@programming.dev
    link
    fedilink
    arrow-up
    55
    ·
    2 days ago

    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

        • clb92@feddit.dk
          link
          fedilink
          arrow-up
          1
          ·
          7 hours ago

          Youre going to need a catchy name and a website for it as well. All the big CVEs have a website and a catchy name now.

    • goferking (he/him)@lemmy.sdf.org
      link
      fedilink
      arrow-up
      20
      arrow-down
      3
      ·
      1 day ago

      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 😭

      • dbx12@programming.dev
        link
        fedilink
        arrow-up
        2
        ·
        23 hours ago

        The interesting thing is that bash allows writing this variable. I would’ve expected it to be readonly for obvious reasons.

        • poolcritter@pawb.social
          link
          fedilink
          arrow-up
          1
          ·
          15 hours ago

          USER is just an environment variable in the environment block like any other; even if Bash didn’t allow changing it, any other program could.

        • 🌞 Alexander Daychilde 🌞@lemmy.world
          link
          fedilink
          English
          arrow-up
          1
          ·
          17 hours ago

          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

  • khannie@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    2 days ago

    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.