babashka 2026-11-18

Info on java4shell: https://github.com/babashka/babashka/issues/2291 tl;dr: (newest) bb is not affected

πŸ‘ 6
πŸ˜… 1

@lorilynjmiller made a java4shell-check bb script that checks all of your local JDKs for risk:

bbin install 
https://gist.github.com/lambduhh/8e155ce1e3ebc7afb7cbb5fa9dbd38d6#file-java4shell-check-bb

Hmm, weirdly that script is failing to read /proc/cpuinfo on my system, which I can reproduce in the Babashka REPL:

Babashka v1.13.229
Type :repl/help for help
user=> (slurp "/proc/cpuinfo")
java.io.IOException: Invalid argument [at <repl>:1:1]
While (in the same REPL):
user=> (require '[babashka.process :refer [shell]])
nil
user=> (:out (shell {:out :string} "cat /proc/cpuinfo")))
"processor\t: 0\nvendor_id\t: GenuineIntel\n
<SNIP>

This can work:

$ bb
Babashka v1.13.229
Type :repl/help for help
user=> (require '[babashka.fs :as fs])
nil
user=> (fs/read-all-lines "/proc/cpuinfo")

πŸ‘ 2
πŸ™πŸΌ 1

thanks for the repost and feedback πŸ™πŸΌ β€’ the script now reads /proc/cpuinfo with fs/read-all-lines. If the read fails anyway, it reports β€œCPU features not readable” instead of crashing. β—¦ revision b85fbcf): https://gist.github.com/lambduhh/8e155ce1e3ebc7afb7cbb5fa9dbd38d6

πŸ™ 1

Awsome! Thanks for the script, @lorilynjmiller!

πŸ‘πŸΌ 1

Such a great picture. Let the memes begin!