More random CLI

Generate random password.

dd if=/dev/random count=8 bs=1  | uuencode -m -

Find executable files that are world-writable – for local privilege escalation exploits…

find /usr -type f -perm -102

FLAC to MP3 conversion on MacOS.

# darwin ports versions of mplayer and LAME if necessary
sudo port install mplayer
sudo port install lame

mplayer -ao pcm:file=foo.wav foo.flac

# WAV => MP3
lame -q 2 -b 320 foo.wav
Categorized as geek Tagged

Leave a comment

Your email address will not be published.