On 3/25/24 11:38, Patrick O'Callaghan wrote:
On Mon, 2024-03-25 at 11:07 -0500, Thomas Cameron wrote:
dmesg > /dev/nvme1n1
What's that about?
poc
To further clarify, my system uses NVMe drives (/dev/nvme0n1 and /dev/nvme1n1). So when I do dmesg > /dev/nvme1n1 as root, it overwrites the first few hundred k of the NVMe disk, nuking the partition tables and boot instructions and the like. Then when I reboot, it causes my machine to PXE boot. You can nuke any drive by writing to the first few sectors, so it could have been /dev/sda, /dev/vda, /dev/xvda, or whatever.