[−][src]Struct pwninit::opts::Opts
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]
fn clap<'a, 'b>() -> App<'a, 'b>
[src]
fn from_clap(matches: &ArgMatches) -> Self
[src]
fn from_args() -> Self
[src]
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
[src]
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
fn from_iter_safe<I>(iter: I) -> Result<Self, Error> where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
[src]
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
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]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,