Skip to content

Commit

Permalink
feat: add PrependSetreuid for linux/aarch64
Browse files Browse the repository at this point in the history
  • Loading branch information
dledda-r7 committed Dec 20, 2024
1 parent 30e13c9 commit aca6613
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/msf/core/payload/linux/aarch64/prepends.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,13 @@ def prepends_map
# setuid(0)
'PrependSetuid' => "\xe0\x03\x1f\xaa" + # mov x0, xzr
"\x48\x12\x80\xd2" + # mov x8, #0x92
"\x01\x00\x00\xd4" # svc 0x0
"\x01\x00\x00\xd4", # svc 0x0

# setreuid(0, 0)
'PrependSetreuid' => "\xe0\x03\x1f\xaa" + # mov x0, xzr
"\xe1\x03\x1f\xaa" + # mov x1, xzr
"\x28\x12\x80\xd2" + # mov x8, #0x91
"\x01\x00\x00\xd4" # svc 0x0
}
end

Expand Down

0 comments on commit aca6613

Please sign in to comment.