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

finally something worse then curl | sh

lemmy.blahaj.zone

message-square
97
fedilink
151

finally something worse then curl | sh

lemmy.blahaj.zone

not_IO@lemmy.blahaj.zone to Programmer Humor@programming.devEnglish · 28 days ago
message-square
97
fedilink

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

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

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

    • nanometer1625@thelemmy.club
      link
      fedilink
      arrow-up
      2
      ·
      28 days ago

      🐱.sh

      • softwarist@programming.dev
        link
        fedilink
        English
        arrow-up
        0
        ·
        27 days ago

        Relevant

        • cravl@slrpnk.net
          link
          fedilink
          arrow-up
          1
          ·
          27 days ago

          Huh, nifty.

    • FishFace@piefed.social
      link
      fedilink
      English
      arrow-up
      2
      ·
      28 days 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
        ·
        28 days 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
        ·
        26 days 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
Visibility: Public
globe

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

  • 1.48K users / day
  • 3.68K users / week
  • 5.04K users / month
  • 18.5K users / 6 months
  • 1 local subscriber
  • 33K subscribers
  • 2.49K Posts
  • 91.2K 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