Shutdown or reboot your linux system with assembly.
This is made using the reboot syscall.
It needs to be ran as superuser.
Examples:
sudo cbot shutdown
sudo cbot reboot
How to build:
git clone https://github.com/robiot/cbot.git
cd cbot
make
The binary will be placed in the bin folder