pub struct ChainSpec {
pub target: String,
pub api_addr: Option<String>,
pub api_name: Option<String>,
pub shellcode_addr: Option<String>,
pub shellcode_size: Option<String>,
pub chain_base: Option<String>,
pub prot: Option<String>,
pub syscall: Option<String>,
pub syscall_args: Option<String>,
pub pivot: Option<String>,
pub stage: Option<String>,
}Expand description
The shared request layer, re-exported so that rf_cli::ScanRequest and
rf_api::ScanRequest stay one type and every existing use rf_cli::…
keeps compiling. The definitions live in rf-api.
Chain target + Windows parameters (the CLI’s --chain, --api-addr,
--api-name, --shellcode-addr, --shellcode-size, --chain-base,
--prot; MCP passes the same).
Fields§
§target: String“linux-execve” (default) or “windows-virtualprotect”.
api_addr: Option<String>--api-addr (hex): the runtime address of the API to call. A
comma-separated list supplies one address per --api-name.
api_name: Option<String>CHWIN-06: which API to resolve and whose argument recipe to use.
None = the builder’s default, VirtualProtect.
shellcode_addr: Option<String>--shellcode-addr (hex): where the shellcode will live.
shellcode_size: Option<String>--shellcode-size (hex): the dwSize / length argument.
chain_base: Option<String>CHWIN-04: “aligned” or “return-address”/“return_address”.
None = the builder’s default, return_address.
prot: Option<String>flNewProtect / flProtect (hex). None = 0x40 on Windows, 7
(PROT_READ|WRITE|EXEC) for linux-mprotect.
syscall: Option<String>--syscall <n>: decimal, or hex with an explicit 0x.
syscall_args: Option<String>--syscall-args rdi=..,rsi=...
pivot: Option<String>--chain-pivot <addr> (CHWIN-08).
stage: Option<String>--stage <hex> (CHWIN-08).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ChainSpec
impl RefUnwindSafe for ChainSpec
impl Send for ChainSpec
impl Sync for ChainSpec
impl Unpin for ChainSpec
impl UnsafeUnpin for ChainSpec
impl UnwindSafe for ChainSpec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more