Struct pwninit::opts::Opts [−][src]
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, pub no_patch_bin: bool, pub no_template: bool, }
Expand description
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
no_patch_bin: bool
Disable running patchelf on binary
no_template: bool
Disable generating template solve script
Implementations
For the unspecified files, try to guess their path
Trait Implementations
Builds the struct from clap::ArgMatches
. It’s guaranteed to succeed
if matches
originates from an App
generated by StructOpt::clap
called on
the same type, otherwise it must panic. Read more
Builds the struct from the command line arguments (std::env::args_os
).
Calls clap::Error::exit
on failure, printing the error message and aborting the program. Read more
Builds the struct from the command line arguments (std::env::args_os
).
Unlike StructOpt::from_args
, returns clap::Error
on failure instead of aborting the program,
so calling .exit
is up to you. Read more
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
Gets the struct from any iterator such as a Vec
of your making.
Print the error message and quit the program in case of failure. Read more
fn from_iter_safe<I>(iter: I) -> Result<Self, Error> where
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,
Gets the struct from any iterator such as a Vec
of your making. Read more
Auto Trait Implementations
impl RefUnwindSafe for Opts
impl UnwindSafe for Opts
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more