Sha256: 9c2d038f1282225f73c24b731a62e634f987449d8ee58c3a8dc241c4946bba5a

Contents?: true

Size: 990 Bytes

Versions: 86

Compression:

Stored size: 990 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. <support@0dayinc.com>

      public_class_method def self.authors
        "AUTHOR(S):
          0day Inc. <support@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

86 entries across 86 versions & 1 rubygems

Version Path
pwn-0.5.236 lib/pwn/banner/radare2.rb
pwn-0.5.235 lib/pwn/banner/radare2.rb
pwn-0.5.234 lib/pwn/banner/radare2.rb
pwn-0.5.233 lib/pwn/banner/radare2.rb
pwn-0.5.232 lib/pwn/banner/radare2.rb
pwn-0.5.231 lib/pwn/banner/radare2.rb
pwn-0.5.230 lib/pwn/banner/radare2.rb
pwn-0.5.229 lib/pwn/banner/radare2.rb
pwn-0.5.228 lib/pwn/banner/radare2.rb
pwn-0.5.227 lib/pwn/banner/radare2.rb
pwn-0.5.226 lib/pwn/banner/radare2.rb
pwn-0.5.225 lib/pwn/banner/radare2.rb
pwn-0.5.224 lib/pwn/banner/radare2.rb
pwn-0.5.223 lib/pwn/banner/radare2.rb
pwn-0.5.222 lib/pwn/banner/radare2.rb
pwn-0.5.221 lib/pwn/banner/radare2.rb
pwn-0.5.220 lib/pwn/banner/radare2.rb
pwn-0.5.219 lib/pwn/banner/radare2.rb
pwn-0.5.217 lib/pwn/banner/radare2.rb
pwn-0.5.216 lib/pwn/banner/radare2.rb