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.104 lib/pwn/banner/radare2.rb
pwn-0.5.103 lib/pwn/banner/radare2.rb
pwn-0.5.102 lib/pwn/banner/radare2.rb
pwn-0.5.101 lib/pwn/banner/radare2.rb
pwn-0.5.100 lib/pwn/banner/radare2.rb
pwn-0.5.99 lib/pwn/banner/radare2.rb
pwn-0.5.98 lib/pwn/banner/radare2.rb
pwn-0.5.97 lib/pwn/banner/radare2.rb
pwn-0.5.96 lib/pwn/banner/radare2.rb
pwn-0.5.95 lib/pwn/banner/radare2.rb
pwn-0.5.94 lib/pwn/banner/radare2.rb
pwn-0.5.93 lib/pwn/banner/radare2.rb
pwn-0.5.92 lib/pwn/banner/radare2.rb
pwn-0.5.91 lib/pwn/banner/radare2.rb
pwn-0.5.90 lib/pwn/banner/radare2.rb
pwn-0.5.89 lib/pwn/banner/radare2.rb
pwn-0.5.88 lib/pwn/banner/radare2.rb
pwn-0.5.87 lib/pwn/banner/radare2.rb
pwn-0.5.86 lib/pwn/banner/radare2.rb
pwn-0.5.85 lib/pwn/banner/radare2.rb