Sha256: a5ba5e6c08a07d47719a215dc73a76791ef5c75cc8810068ac75b3b1d04bbd8e

Contents?: true

Size: 1006 Bytes

Versions: 65

Compression:

Stored size: 1006 Bytes

Contents

# frozen_string_literal: true

require 'colorize'

module PWN
  module Banner
    # This plugin processes images into readable text
    module Radare2
      # Supported Method Parameters::
      # PWN::Banner::Radare2.get

      public_class_method def self.get
        '
        $ target_arm_bin="/usr/bin/id";
        $ alias r2="setarch $(uname -m) -R r2 -AA -c \"v /opt/pwn/third_party/r2-pwn-layout\""
        $ r2 -c "db (0x`readelf -S $target_arm_bin | grep text | awk "{print $NF}"`)+0x4+0x00000328" -c "ood" -c "dc" -c "v" $target_arm_bin
        '.yellow
      rescue StandardError => e
        raise e
      end

      # Author(s):: 0day Inc. <request.pentest@0dayinc.com>

      public_class_method def self.authors
        "AUTHOR(S):
          0day Inc. <request.pentest@0dayinc.com>
        "
      end

      # Display Usage for this Module

      public_class_method def self.help
        puts "USAGE:
          #{self}.get

          #{self}.authors
        "
      end
    end
  end
end

Version data entries

65 entries across 65 versions & 1 rubygems

Version Path
pwn-0.5.84 lib/pwn/banner/radare2.rb
pwn-0.5.83 lib/pwn/banner/radare2.rb
pwn-0.5.81 lib/pwn/banner/radare2.rb
pwn-0.5.80 lib/pwn/banner/radare2.rb
pwn-0.5.79 lib/pwn/banner/radare2.rb
pwn-0.5.78 lib/pwn/banner/radare2.rb
pwn-0.5.77 lib/pwn/banner/radare2.rb
pwn-0.5.76 lib/pwn/banner/radare2.rb
pwn-0.5.75 lib/pwn/banner/radare2.rb
pwn-0.5.74 lib/pwn/banner/radare2.rb
pwn-0.5.73 lib/pwn/banner/radare2.rb
pwn-0.5.72 lib/pwn/banner/radare2.rb
pwn-0.5.71 lib/pwn/banner/radare2.rb
pwn-0.5.70 lib/pwn/banner/radare2.rb
pwn-0.5.69 lib/pwn/banner/radare2.rb
pwn-0.5.68 lib/pwn/banner/radare2.rb
pwn-0.5.67 lib/pwn/banner/radare2.rb
pwn-0.5.66 lib/pwn/banner/radare2.rb
pwn-0.5.65 lib/pwn/banner/radare2.rb
pwn-0.5.64 lib/pwn/banner/radare2.rb