[][src]Struct pwninit::opts::Opts

pub struct Opts {
    pub bin: Option<PathBuf>,
    pub libc: Option<PathBuf>,
    pub ld: Option<PathBuf>,
    pub template_path: Option<PathBuf>,
    pub template_bin_name: String,
    pub template_libc_name: String,
    pub template_ld_name: String,
}

automate starting binary exploit challenges

Fields

bin: Option<PathBuf>

Binary to pwn

libc: Option<PathBuf>

Challenge libc

ld: Option<PathBuf>

A linker to preload the libc

template_path: Option<PathBuf>

Path to custom pwntools solve script template. Check the README for more information.

template_bin_name: String

Name of binary variable for pwntools solve script

template_libc_name: String

Name of libc variable for pwntools solve script

template_ld_name: String

Name of linker variable for pwntools solve script

Methods

impl Opts[src]

pub fn with_bin(self, value: Option<PathBuf>) -> Self[src]

Sets the bin field of this struct.

pub fn with_libc(self, value: Option<PathBuf>) -> Self[src]

Sets the libc field of this struct.

pub fn with_ld(self, value: Option<PathBuf>) -> Self[src]

Sets the ld field of this struct.

impl Opts[src]

pub fn print(&self)[src]

Print the locations of known files (binary, libc, linker)

pub fn find_if_unspec(self) -> Result<Self>[src]

For the unspecified files, try to guess their path

Trait Implementations

impl Clone for Opts[src]

impl StructOpt for Opts[src]

Auto Trait Implementations

impl Send for Opts

impl Sync for Opts

impl Unpin for Opts

impl UnwindSafe for Opts

impl RefUnwindSafe for Opts

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err