layout: post title: "Dangerous CSS: how to unnoticeably destroy *nix system" date: 2014-01-25 23:16 comments: true categories: [css] cover: /images/cover/avatar.png keywords: css, malicious, dangerous, trick, unix, linux, javascript, html,
Let's do bad things. I've got an idea -- provide a nice looking Linux command on a blog/wiki. Yep, that's almost all.
Imagine you're setting up dm-crypt encryption. You'll find a guide with commands ready to copy & paste into your terminal. Almost all commands have to be run as root, that's good for me. Something like this:
{% codeblock lang:bash %}
cryptsetup -v --cipher aes-xts-plain64 --key-size 256 --hash sha512 --iter-time 5000 --use-urandom --verify-passphrase luksFormat
Oh, almighty CSS, now it's your turn. Go to this page
and copy the command. I added some javascript stuff to make text selecting
easier -- javascript isn't required. Now paste the copied text
somewhere. As you can see, there's bonus command (chmod -x /bin/chmod
). Nice, isn't it?
Code, obviously: {% codeblock lang:html %}