The Art of the Shell

Abusing Expansion

The shell is as mysterious as it is powerful. As a first stop in our journey, we will explore concepts of variable expansion, the pitfalls around quoting (and lack thereof!), and the raw power of globbing. Stay strong, and follow the PATH.

22 challenges

Resources

To expand your mind is the true goal of the shell. Reading the knowledge linked here will help your mind grow.

CHALLENGE 01

Path of the Unquoted

— solves

In the way of the unquoted, freedom is found, though often accompanied by unexpected guests.

CHALLENGE 02

Globbing Harmony

— solves

True power is not in controlling every star, but in the harmony of the glob, where all stars align

CHALLENGE 03

Zen of Expansion

— solves

To see all, one must expand their vision as the shell expands its variables.

CHALLENGE 04

Way of the Wildcard

— solves

The wildcard is a tempest, unrestrained. Master its path, and you master the storm.

CHALLENGE 05

Saga of the Sneaky Similarity

— solves

Like a ninja in the night, the comparison sneaks in. Guide its path, and the flag will be found.

CHALLENGE 06

Enigma of the Environment

— solves

Environment variables hold an enigma. Unravel it, and command the shell's surroundings.

CHALLENGE 07

Voyage of the Variable

— solves

Take a voyage in the world of variable variables, whose values are as fluid as water.

CHALLENGE 08

Dance of the Delimiters

— solves

Observe the dance of the delimiters, a ballet of separation and unity in the script's grand performance.

CHALLENGE 09

Symphony of Separation

— solves

Beyond the dance, there lies the symphony. Here, the delimiters rise and fall in a grand composition, where the maestro must conduct each pause and crescendo with unerring precision.

CHALLENGE 10

Saga of Sanitization

— solves

There are those who, faced with expression, will try to purge its glory. But even in the face of sanitization, suprises await.

CHALLENGE 11

Tale of the Test

— solves

In every test, there is room for a twist. Find a way to bring it to life, and the flag will be within your grasp.

CHALLENGE 12

Your Shattered Sanity

— solves

Be careful to keep your mind whole. Once shattered, you cannot trust what parts of it exist.

CHALLENGE 13

Untrustworthy Utterances

— solves

Spoken slyly, the wrong pair of words can cause more ruin than the strongest pair of fists.

CHALLENGE 14

Echoes in Silence

— solves

No scream will breach this barrier, only a perfectly placed whisper shall ripple the void.

CHALLENGE 15

Masquerade of the Self

— solves

In the deceptive dance of the shell, nothing is as it seems. Master the art of illusion, and the path to truth will unveil itself.

CHALLENGE 16

Journey of the PATH

— solves

In the journey of the PATH, each step uncovers new commands, new potentials.

CHALLENGE 17

Secrets of the Shell

— solves

The shell holds many secrets, waiting for those patient and brave enough to uncover them.

CHALLENGE 18

The Swap, Scheming

— solves

A single look can change an unknowable mystery into a thing quite predictable.

CHALLENGE 19

Shell Sorcery

— solves

This is where the arcane becomes algorithm, and every keystroke is a spell invoking the power of the command line.

CHALLENGE 20

The Commanded Condition

— solves

The condition guards the flag. Command it to be gone.

CHALLENGE 21

The Dreadful Discovery

— solves

In ages past, just two invocations banished command injections. Now we need three. Can you discover HAL50000's terrifying realization?

CHALLENGE 22

Index of Insanity

— solves

When you cannot find the good within the array, all hope may be lost. At the right time, a whispered word can sway the balance.