Skip to content

Gotta love Unix hacks...

Forgetting your LUKS cryptopart password sucks. But writing a shell oneliner like this:

CODE:
for i in P{a,4}ssw{0,o}rd{-,}Permut{4,a}tions; do
  echo -n $i > /tmp/pwd
  cryptsetup luksOpen /dev/loop0 test --keyfile /tmp/pwd && echo $i
done


is awesome. :-) Took me only ten minutes to get it back once I had a copy of the superblock onto my workstation.

Trackbacks

No Trackbacks

Comments

Display comments as Linear | Threaded

El Hoyhoy on :

echo 'This is not a pipe.' | cat - > /dev/tty

Wilmer on :

You're going to like this one:

Sed is a very powerful tool. A simple sed statement may turn a cat into cement. Observe:

CODE:
echo cat | sed statement

Add Comment