Corrupted Kernel

I was practicing exploiting linux executables with shellcode when after a while i things start breaking with

Execle: Exec format error

After reboot droplet didn’t connect to internet. From dash board console I ran following commands.

$cat /var/mail/root says: /bin/sh: execle: Exec format error

$ sudo service network-manager restart sudo: unable to execute /usr/sbin/service: Exec format error

$ sudo update-grub sudo: unable to execute /usr/sbin/update-grub: Exec format error

I think i corrupted the kernel, please help!!


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Your best option will likely be to reach out to the support team via a ticket. They can boot your droplet into a recovery environment. This is a Debian based LiveCD image which will allow you to boot your droplet and mount it’s normal disk to make changes, chroot into your disk if needed, or start a temporary SFTP service to copy out needed files. The image must be mounted and removed by the support team and your droplet would then be accessible from the console in the control panel.

Make sure your kernel matches your architecture or just restore from your backup / reinstall.