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.cr

Constructors

Instance Method Summary

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) #

[View source]

Instance Method Detail

def close : Nil #

Closes the r2 session by sending "q!" and terminating the child process.


[View source]
def closed? : Bool #
Description copied from class Cradare2::Transport::Base

Returns true if the transport has been closed.


[View source]
def cmd(command : String) : String #

Executes an r2 command string and returns its output up to the null byte terminator.


[View source]
def process : Process #

[View source]
def target : String #

[View source]