this post was submitted on 03 Apr 2024
44 points (97.8% liked)

Programming

17558 readers
264 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 2 years ago
MODERATORS
 

More investigations on the xz bash attack script.

top 5 comments
sorted by: hot top controversial new old
[–] [email protected] 5 points 8 months ago
[–] [email protected] 3 points 8 months ago (1 children)

I learned so much from this! Its funny I have been working on shell stuff.

https://github.com/dislux-hapfyl/pynksh

[–] [email protected] 2 points 8 months ago (1 children)

Oh man, your demo gives me Hudsucker Proxy vibes ("You know, for kids!"). I'm going to have to watch it a couple of times to understand what pnk is doing here. My initial take is pnk is a DSL of bash functions that appear to be composing together Tkinter "primitives."

An "APL" for UI. Interesting stuff.

[–] [email protected] 1 points 8 months ago* (last edited 8 months ago)

Yes a DSL. And almost all of Python is hidden inside shell functions. I can make anything Python just writing in shell. I did make some high order functions for Tkinter so I can code faster and I used colors for quicker visual parsing and also removed worrying about indentation by classifying the function using capital letters and a tag for making the color block. Its simply me trying to write code more effectively. Abstracted away the boilerplate in a sense. Its dead simple really. I would love to tell you more.

[–] simbico 2 points 8 months ago

Wow, this is some hardcore bash black magic.