this post was submitted on 16 Nov 2023
-78 points (6.7% liked)

Linux

56570 readers
436 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS
 
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.

top 11 comments
sorted by: hot top controversial new old
[–] KISSmyOS@lemmy.world 44 points 2 years ago* (last edited 2 years ago)

I'm pretty sure it just plays sounds/music.
But still, I'm not running obfuscated code from the internet on my machine.

EDIT:

Nvm that, lemmy disliked my code for some reason.

"Here, run this unreadable code" just goes against all rules of computer safety.

EDIT2:

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

And that's one of the reasons.

Aplay can wreck your speakers and/or soundcard depending on what's fed to it.

[–] bigkahuna1986@lemmy.ml 36 points 2 years ago (1 children)

I wouldn't even run this on someone else's machine.

[–] johsny@lemmy.world 17 points 2 years ago

I ran it on my boss’ laptop.

[–] ssboomman@lemm.ee 15 points 2 years 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.

[–] the_q@lemmy.world 11 points 2 years ago

Downvote, block user and move on.

[–] ElectroLisa@lemmy.blahaj.zone 5 points 2 years ago

Ye run this script which uses GCC and launches compiled result, what could possibly go wrong

[–] Blaiz0r@lemmy.ml 4 points 2 years ago

Show don't tell

[–] akash_rawal@lemmy.world 3 points 2 years ago

https://imgur.com/8p7oPbp

spoilerIt's fine guys, I ran it in a VM with no networking.

[–] wetferret@lemmy.world 3 points 2 years ago* (last edited 2 years ago)

If you want to run some less low-level code to explore the kinds of sounds that code like this can create, I wrote a python applet that lets you explore random and custom functions interactively. It comes with several presets for interesting functions I've discovered on various websites.

YouTube video

source code