class
Cradare2::Transport::ProcessTransport
Overview
Spawns a local radare2 child process using -q0 null-byte delimited pipe mode.
Supported on Windows, Linux, and macOS.
Defined in:
cradare2/transport/process.crConstructors
Instance Method Summary
-
#close : Nil
Closes the r2 session by sending "q!" and terminating the child process.
-
#closed? : Bool
Returns true if the transport has been closed.
-
#cmd(command : String) : String
Executes an r2 command string and returns its output up to the null byte terminator.
- #process : Process
- #target : String
Instance methods inherited from class Cradare2::Transport::Base
close : Nil
close,
closed? : Bool
closed?,
cmd(command : String) : String
cmd,
timeout : Time::Span | Nil
timeout,
timeout=(timeout : Time::Span | Nil)
timeout=
Constructor Detail
def self.new(target : String, flags : Array(String) = [] of String, debug : Bool = false, write : Bool = false, r2_path : String | Nil = nil, timeout : Time::Span | Nil = nil)
#
Instance Method Detail
def closed? : Bool
#
Description copied from class Cradare2::Transport::Base
Returns true if the transport has been closed.
def cmd(command : String) : String
#
Executes an r2 command string and returns its output up to the null byte terminator.