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.194 lib/pwn/banner/radare2.rb
pwn-0.5.193 lib/pwn/banner/radare2.rb
pwn-0.5.192 lib/pwn/banner/radare2.rb
pwn-0.5.191 lib/pwn/banner/radare2.rb
pwn-0.5.190 lib/pwn/banner/radare2.rb
pwn-0.5.189 lib/pwn/banner/radare2.rb
pwn-0.5.188 lib/pwn/banner/radare2.rb
pwn-0.5.187 lib/pwn/banner/radare2.rb
pwn-0.5.186 lib/pwn/banner/radare2.rb
pwn-0.5.185 lib/pwn/banner/radare2.rb
pwn-0.5.184 lib/pwn/banner/radare2.rb
pwn-0.5.183 lib/pwn/banner/radare2.rb
pwn-0.5.181 lib/pwn/banner/radare2.rb
pwn-0.5.180 lib/pwn/banner/radare2.rb
pwn-0.5.179 lib/pwn/banner/radare2.rb
pwn-0.5.178 lib/pwn/banner/radare2.rb
pwn-0.5.177 lib/pwn/banner/radare2.rb
pwn-0.5.176 lib/pwn/banner/radare2.rb
pwn-0.5.175 lib/pwn/banner/radare2.rb
pwn-0.5.174 lib/pwn/banner/radare2.rb