Files
metasploit-gs/tools/payloads/format_aarch64.rb
T
usiegl00 9019b51eaa Update AARCH64 Shellcode Generation
This updates the aarch64 payloads to include comments with the
corresponding instructions for each little-endian integer. It also fixes
the debug output for x64 payloads under rosetta.
2023-07-29 08:26:56 -07:00

12 lines
295 B
Ruby

result = STDIN
.each_line(chomp: true)
.reject(&:empty?)
.map do |line|
is_label = line.start_with?("<")
next "# #{line}" if is_label
bytes, description = line.split("\t", 2)
"0x#{bytes.split(" ").reverse.join}, # #{description}"
end
puts result