Skip to content

Commit d8b544b

Browse files
authored
Land #20707, adds note "CAP_SYS_BOOT privileges are required" to Linux Reboot payloads
Add note "CAP_SYS_BOOT privileges are required" to Linux Reboot payloads
2 parents 3576e2b + c77c138 commit d8b544b

File tree

4 files changed

+18
-6
lines changed

4 files changed

+18
-6
lines changed

modules/payloads/singles/linux/mipsbe/reboot.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,14 @@ def initialize(info = {})
1717
A very small shellcode for rebooting the system.
1818
This payload is sometimes helpful for testing purposes or executing
1919
other payloads that rely on initial startup procedures.
20+
Requires CAP_SYS_BOOT privileges.
2021
},
2122
'Author' => [
2223
'Michael Messner <devnull[at]s3cur1ty.de>', # metasploit payload
2324
'rigan - <imrigan[at]gmail.com>' # original payload
2425
],
2526
'References' => [
27+
['URL', 'https://man7.org/linux/man-pages/man2/reboot.2.html'],
2628
['URL', 'http://www.shell-storm.org/shellcode/files/shellcode-795.php']
2729
],
2830
'License' => MSF_LICENSE,

modules/payloads/singles/linux/mipsle/reboot.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,16 @@ def initialize(info = {})
1414
info,
1515
'Name' => 'Linux Reboot',
1616
'Description' => %q{
17-
A very small shellcode for rebooting the system.
18-
This payload is sometimes helpful for testing purposes.
17+
A very small shellcode for rebooting the system using
18+
the reboot syscall. This payload is sometimes helpful
19+
for testing purposes. Requires CAP_SYS_BOOT privileges.
1920
},
2021
'Author' => [
2122
'Michael Messner <devnull[at]s3cur1ty.de>', # metasploit payload
2223
'rigan - <imrigan[at]gmail.com>' # original payload
2324
],
2425
'References' => [
26+
['URL', 'https://man7.org/linux/man-pages/man2/reboot.2.html'],
2527
['URL', 'http://www.shell-storm.org/shellcode/files/shellcode-795.php']
2628
],
2729
'License' => MSF_LICENSE,

modules/payloads/singles/linux/riscv32le/reboot.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,16 @@ def initialize(info = {})
1616
'Description' => %q{
1717
A very small shellcode for rebooting the system using
1818
the reboot syscall. This payload is sometimes helpful
19-
for testing purposes.
19+
for testing purposes. Requires CAP_SYS_BOOT privileges.
2020
},
2121
'Author' => 'bcoles',
2222
'License' => MSF_LICENSE,
2323
'Platform' => 'linux',
24-
'Arch' => ARCH_RISCV32LE
24+
'Arch' => ARCH_RISCV32LE,
25+
'References' => [
26+
['URL', 'https://man7.org/linux/man-pages/man2/reboot.2.html'],
27+
['URL', 'https://github.com/bcoles/shellcode/blob/main/riscv32/reboot/reboot.s'],
28+
]
2529
)
2630
)
2731
end

modules/payloads/singles/linux/riscv64le/reboot.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,16 @@ def initialize(info = {})
1616
'Description' => %q{
1717
A very small shellcode for rebooting the system using
1818
the reboot syscall. This payload is sometimes helpful
19-
for testing purposes.
19+
for testing purposes. Requires CAP_SYS_BOOT privileges.
2020
},
2121
'Author' => 'bcoles',
2222
'License' => MSF_LICENSE,
2323
'Platform' => 'linux',
24-
'Arch' => ARCH_RISCV64LE
24+
'Arch' => ARCH_RISCV64LE,
25+
'References' => [
26+
['URL', 'https://man7.org/linux/man-pages/man2/reboot.2.html'],
27+
['URL', 'https://github.com/bcoles/shellcode/blob/main/riscv64/reboot/reboot.s'],
28+
]
2529
)
2630
)
2731
end

0 commit comments

Comments
 (0)