Campfyre
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
not_IO@lemmy.blahaj.zone to Programmer Humor@programming.devEnglish · 3 months ago

finally something worse then curl | sh

lemmy.blahaj.zone

message-square
99
fedilink
151

finally something worse then curl | sh

lemmy.blahaj.zone

not_IO@lemmy.blahaj.zone to Programmer Humor@programming.devEnglish · 3 months ago
message-square
99
fedilink

https://labyrinth.zone/objects/96478395-64d9-452c-a906-9e6159cd10a3

  • kayzeekayzee@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    0
    ·
    3 months ago

    yeah you can also just curl > cat and check the script yourself

    • nanometer1625@thelemmy.club
      link
      fedilink
      arrow-up
      2
      ·
      3 months ago

      🐱.sh

      • softwarist@programming.dev
        link
        fedilink
        English
        arrow-up
        0
        ·
        3 months ago

        Relevant

        • cravl@slrpnk.net
          link
          fedilink
          arrow-up
          1
          ·
          3 months ago

          Huh, nifty.

    • FishFace@piefed.social
      link
      fedilink
      English
      arrow-up
      2
      ·
      3 months ago

      Do you mean curl | cat or do you really want to create a file called cat?

      Also piping to cat seems redundant but malicious hosts can detect whether the request is getting redirected, using some clever trick, so it’s not.

      Also, your chance of spotting something bad in a malicious script is probably quite small.

      • cenzorrll@piefed.ca
        link
        fedilink
        English
        arrow-up
        2
        ·
        3 months ago

        This is my opinion on curl | sh/bash type directions. If the maintainers don’t provide a hash so I can confirm that is what they intended, there ain’t much I can do unless someone slapped in a function named “totallyNotMalware” into the script. I’ve looked through scripts, seen what they do, but I’m not good enough to recognize anything funky.

      • Dumhuvud@programming.dev
        link
        fedilink
        English
        arrow-up
        1
        ·
        3 months ago

        Also piping to cat seems redundant but malicious hosts can detect whether the request is getting redirected, using some clever trick, so it’s not.

        Just so you know, servers cannot detect piping to any arbitrary process. The trick you’re talking about is detecting piping to an interpreter, for the lack of a better term. Piping sleep N to bash is observable behaviour, for example. Piping anything to cat is not.

        https://web.archive.org/web/20250622061208/https://www.idontplaydarts.com/2016/04/detecting-curl-pipe-bash-server-side/

Programmer Humor@programming.dev

programmer_humor@programming.dev

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: [email protected]

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.
Visibility: Public
globe

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

  • 1.53K users / day
  • 3.05K users / week
  • 8.21K users / month
  • 18.5K users / 6 months
  • 1 local subscriber
  • 34K subscribers
  • 2.62K Posts
  • 97K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.7
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org