class Cradare2::Options

Overview

Configuration options for establishing a radare2 session.

Defined in:

cradare2/options.cr

Constructors

Instance Method Summary

Constructor Detail

def self.build(&block : Options -> Nil) : Options #

Fluent builder helper


[View source]
def self.new(target : String | Nil = nil, flags : Array(String) = [] of String, debug : Bool = false, write : Bool = false, r2_path : String | Nil = nil, timeout : Time::Span | Nil = nil, attach_pid : Int64 | Nil = nil, source_paths : Array(String) = [] of String, path_mappings : Hash(String, String) = Hash(String, String).new, auto_analyze : Bool = false, log_commands : Bool = false, arch : String | Nil = nil, bits : Int32 | Nil = nil, cpu : String | Nil = nil, eval_commands : Array(String) = [] of String) #

[View source]

Instance Method Detail

def add_flag(flag : String) : self #

[View source]
def add_flags(flags : Array(String)) : self #

[View source]
def analyze_on_open(enabled : Bool = true) : self #

[View source]
def arch(val : String | Nil) : self #

[View source]
def arch : String | Nil #

[View source]
def arch=(arch : String | Nil) #

[View source]
def attach_pid(val : Int32 | Int64 | Nil) : self #

[View source]
def attach_pid : Int64 | Nil #

[View source]
def attach_pid=(attach_pid : Int64 | Nil) #

[View source]
def auto_analyze : Bool #

[View source]
def auto_analyze=(auto_analyze : Bool) #

[View source]
def bits(val : Int32 | Nil) : self #

[View source]
def bits : Int32 | Nil #

[View source]
def bits=(bits : Int32 | Nil) #

[View source]
def clone : Options #

[View source]
def cpu(val : String | Nil) : self #

[View source]
def cpu : String | Nil #

[View source]
def cpu=(cpu : String | Nil) #

[View source]
def debug : Bool #

[View source]
def debug=(debug : Bool) #

[View source]
def debug_mode(enabled : Bool = true) : self #

[View source]
def eval(key : String, value : String) : self #

[View source]
def eval_commands : Array(String) #

[View source]
def eval_commands=(eval_commands : Array(String)) #

[View source]
def flags : Array(String) #

[View source]
def flags=(flags : Array(String)) #

[View source]
def gdb_target(host : String = "127.0.0.1", port : Int32 = 1234) : self #

[View source]
def log_commands : Bool #

[View source]
def log_commands=(log_commands : Bool) #

[View source]
def path_mappings : Hash(String, String) #

[View source]
def path_mappings=(path_mappings : Hash(String, String)) #

[View source]
def r2_path(path : String | Nil) : self #

[View source]
def r2_path : String | Nil #

[View source]
def r2_path=(r2_path : String | Nil) #

[View source]
def read_only_mode : self #

[View source]
def skip_analysis : self #

[View source]
def source_paths : Array(String) #

[View source]
def source_paths=(source_paths : Array(String)) #

[View source]
def target(val : String | Nil) : self #

[View source]
def target : String | Nil #

[View source]
def target=(target : String | Nil) #

[View source]
def timeout(span : Time::Span | Nil) : self #

[View source]
def timeout : Time::Span | Nil #

[View source]
def timeout=(timeout : Time::Span | Nil) #

[View source]
def write : Bool #

[View source]
def write=(write : Bool) #

[View source]
def write_mode(enabled : Bool = true) : self #

[View source]