Files
metasploit-gs/tools/payloads/format_aarch64.rb
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
295 B
Ruby
Raw Normal View History

2023-07-29 08:26:56 -07:00
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