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.63 lib/pwn/banner/radare2.rb
pwn-0.5.62 lib/pwn/banner/radare2.rb
pwn-0.5.61 lib/pwn/banner/radare2.rb
pwn-0.5.60 lib/pwn/banner/radare2.rb
pwn-0.5.59 lib/pwn/banner/radare2.rb
pwn-0.5.58 lib/pwn/banner/radare2.rb
pwn-0.5.57 lib/pwn/banner/radare2.rb
pwn-0.5.55 lib/pwn/banner/radare2.rb
pwn-0.5.54 lib/pwn/banner/radare2.rb
pwn-0.5.53 lib/pwn/banner/radare2.rb
pwn-0.5.52 lib/pwn/banner/radare2.rb
pwn-0.5.51 lib/pwn/banner/radare2.rb
pwn-0.5.50 lib/pwn/banner/radare2.rb
pwn-0.5.49 lib/pwn/banner/radare2.rb
pwn-0.5.47 lib/pwn/banner/radare2.rb
pwn-0.5.46 lib/pwn/banner/radare2.rb
pwn-0.5.45 lib/pwn/banner/radare2.rb
pwn-0.5.44 lib/pwn/banner/radare2.rb
pwn-0.5.43 lib/pwn/banner/radare2.rb
pwn-0.5.42 lib/pwn/banner/radare2.rb