9019b51eaa
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.
12 lines
295 B
Ruby
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
|