https://pastebin.com/p6PmeQDm

Just sharing how “magical” the CLI can be. You are welcome.

-EDIT Did a little “oopsie” there. My bad. It’s fixed now.

-EDIT2 Nvm that, lemmy disliked my code for some reason. It’s in the pastebin link. And the code in there is working as intended.

  • ssboomman@lemm.ee
    link
    fedilink
    arrow-up
    2
    ·
    8 months ago

    Why tf would anyone run a random shell script on their machine? You don’t even need an RCE anymore you just need a dumb ass on social media.

  • Arthur Besse@lemmy.mlM
    link
    fedilink
    arrow-up
    0
    arrow-down
    1
    ·
    edit-2
    8 months ago

    💯

    this is way more beautiful than i expected. amazing work!

    to everyone reporting this post as “malware”: 🤣 it really isn’t.

    (i read it carefully before running it… if you don’t comprehend something like this, refraining from running it is a good choice.)

    edit: lmao at the downvotes! For fun I ported it to Python… this version produces identical output to the original, but stops after a couple thousand seconds instead of running forever. and it is sadly 36 bytes longer.

    (maybe the python version helps convince a few people it isn’t malware?)