Providence
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
RomulusCornflakes@lemmy.world to linuxmemes@lemmy.worldEnglish · 23 hours ago

The Minefield

lemmy.world

message-square
57
link
fedilink
1

The Minefield

lemmy.world

RomulusCornflakes@lemmy.world to linuxmemes@lemmy.worldEnglish · 23 hours ago
message-square
57
link
fedilink
alert-triangle
You must log in or # to comment.
  • Lucy :3@feddit.org
    link
    fedilink
    arrow-up
    0
    ·
    7 hours ago

    objdump -D * | less

  • some_kind_of_guy@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    8 hours ago

    We have squid games at home.

    Squid games at home:

  • rangber@lemmy.zip
    link
    fedilink
    arrow-up
    0
    ·
    9 hours ago

    The power cable would like to have a word.

  • kivihiili@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    0
    ·
    10 hours ago

    while this is not real, something similar in principal very much was! (but not too widespread)

    see here or look up “casino dos malware”

    uh in short it erases “the disk’s” (unsure which) file allocation table (pretty much the dos/windows version of a superblock). apparently some versions did copy it to memory and give the user a chance though!

  • wonderingwanderer@sopuli.xyz
    link
    fedilink
    arrow-up
    0
    ·
    12 hours ago

    Has “let’s play a game” vibes

  • ikidd@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    13 hours ago

    strings 1

  • SavvyWolf@pawb.social
    link
    fedilink
    English
    arrow-up
    0
    ·
    13 hours ago

    Reminder that binaries cannot change a shell’s working directory, so the non-mines will do nothing.

    (cd is a shell builtin)

    • BetterDev@programming.dev
      link
      fedilink
      arrow-up
      0
      ·
      8 hours ago

      I mean, you can just write a whole custom shell for this

    • Sasquatch@lemmy.ml
      link
      fedilink
      arrow-up
      0
      ·
      10 hours ago

      it could just reinvoke $SHELL in the parent dir

    • glibg10b@lemmy.zip
      link
      fedilink
      arrow-up
      0
      ·
      10 hours ago

      Technically they could if run as root by modifying the parent process

    • tyler@programming.dev
      link
      fedilink
      arrow-up
      0
      ·
      11 hours ago

      Good point. Also it wouldn’t stop you from just opening another terminal window haha.

  • CannedYeet@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    15 hours ago

    Reminds me of gameshell, which is a rogue-like game designed to teach you the unix shell. So instead of navigating with NESW, you cd to locations. At one point you search the “garden”, which is an unmanageable tangle of directories, with find.

  • OwOarchist@pawb.social
    link
    fedilink
    English
    arrow-up
    0
    ·
    19 hours ago

    cat 1

  • Ghostie@lemmy.zip
    link
    fedilink
    arrow-up
    0
    ·
    20 hours ago

    I’ll hit them with an rm /etc. We go out, we go out together and on my terms.

  • timestatic@feddit.org
    link
    fedilink
    arrow-up
    0
    ·
    20 hours ago

    They never guess the next move: Unplugs pc

    • rockerface🇺🇦@lemmy.cafe
      link
      fedilink
      English
      arrow-up
      0
      ·
      18 hours ago

      loud knocking on the door

      • 𝕾𝖕𝖎𝖈𝖞 𝕿𝖚𝖓𝖆@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        12 hours ago

        Either that or the PC keeps running anyway.

        • FreddiesLantern@leminal.space
          link
          fedilink
          arrow-up
          0
          ·
          7 hours ago

          Boston Dynamics: “Either that or the PC keeps running away.”

  • durinn@programming.dev
    link
    fedilink
    English
    arrow-up
    0
    ·
    20 hours ago

    I wonder if we could bash -n -v the source code? 🤔 Since -n should error check without execution.

    Edit: maybe that only works on scripts?

  • KoboldCoterie@pawb.social
    link
    fedilink
    English
    arrow-up
    0
    ·
    21 hours ago

    Based on the responses in this thread, I feel like you could present this screenshot with a “I bet you couldn’t find your way out of this!” and a zip of the directory, and a significant number of users would voluntarily download it and extract it just to “prove that they could”.

    • tyler@programming.dev
      link
      fedilink
      arrow-up
      0
      ·
      11 hours ago

      Well yeah? And you do it in a vm. But seems like a decently simple problem anyway. ls -al and compare the sizes.

      • BeatTakeshi@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        8 hours ago

        Obvioulsy whoever set this minefield thought about this

    • moonshadow@slrpnk.net
      link
      fedilink
      arrow-up
      0
      ·
      21 hours ago

      Genuinely my first response. What are VMs for?

      • 🇦🇺𝕄𝕦𝕟𝕥𝕖𝕕𝕔𝕣𝕠𝕔𝕠𝕕𝕚𝕝𝕖@hilariouschaos.com
        link
        fedilink
        English
        arrow-up
        0
        ·
        12 hours ago

        I run QubesOS BTW. My entire computer is just a bunch of VMs in a trench coat.

        • Allero@lemmy.today
          link
          fedilink
          arrow-up
          0
          ·
          9 hours ago

          Running Qubes as a daily driver is some serious level of privacy enthusiasm

  • DasFaultier@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    0
    ·
    21 hours ago

    Maybe something like find ./ -type f | xargs md5sum, then avoid the one directory where the executable has a different checksum. Heck, even find | ls might suffice.

    • SwingingTheLamp@piefed.zip
      link
      fedilink
      English
      arrow-up
      0
      ·
      21 hours ago

      This could be trivially defeated by a program which erases the hard drive unless run using a particular executable name. Then, all twenty entries could simply be hard links to the same executable file on disk, but one of the names would trigger different behavior.

      • tyler@programming.dev
        link
        fedilink
        arrow-up
        0
        ·
        11 hours ago

        So then you either cat the executable and hope it’s a shell script, you output the binary with a hex viewer and compare, you modify the executable so it’s in a lower permission group and thus wouldn’t have access to erase the drive, there’s like a hundred ways to solve this.

  • Wildmimic@anarchist.nexus
    link
    fedilink
    English
    arrow-up
    0
    ·
    21 hours ago

    i had a school colleague who could write small programs in bytecode, so i think someone who really knows their shit can get out without issues with cat and ls, as long as there isn’t much obfuscation

linuxmemes@lemmy.world

linuxmemes@lemmy.world

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !linuxmemes@lemmy.world

Hint: :q!


Sister communities:
  • !tech_memes@lemmy.world
  • !memes@lemmy.world
  • !lemmyshitpost@lemmy.world
  • !risa@startrek.website

Community rules (click to expand)

1. Follow the site-wide rules
  • Instance-wide TOS: https://legal.lemmy.world/tos/
  • Lemmy code of conduct: https://join-lemmy.org/docs/code_of_conduct.html
2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack users for any reason. This includes using blanket terms, like “every user of thing”.
  • Don’t get baited into back-and-forth insults. We are not animals.
  • Leave remarks of “peasantry” to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn, no politics, no trolling or ragebaiting.
  • Don’t come looking for advice, this is not the right community.
4. No recent reposts
  • Everybody uses Arch btw, can’t quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
5. 🇬🇧 Language/язык/Sprache
  • This is primarily an English-speaking community. 🇬🇧🇦🇺🇺🇸
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
6. (NEW!) Regarding public figures

We all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.

  • Keep discussions polite and free of disparagement.
  • We are never in possession of all of the facts. Defamatory comments will not be tolerated.
  • Discussions that get too heated will be locked and offending comments removed.

 

Please report posts and comments that break these rules!


Important: never execute code or follow advice that you don’t understand or can’t verify, especially here. The word of the day is credibility. This is a meme community – even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don’t remove France.

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 149 users / day
  • 387 users / week
  • 657 users / month
  • 751 users / 6 months
  • 0 local subscribers
  • 30.8K subscribers
  • 166 Posts
  • 1.9K Comments
  • Modlog
  • mods:
  • zephyr@lemmy.world
  • rtxn@lemmy.world
  • BE: 0.19.17
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org