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: StringName of binary variable for pwntools solve script
template_libc_name: StringName of libc variable for pwntools solve script
template_ld_name: StringName of linker variable for pwntools solve script
no_patch_bin: boolDisable running patchelf on binary
no_template: boolDisable generating template solve script
Implementations§
Trait Implementations§
Source§impl StructOpt for Opts
impl StructOpt for Opts
Source§fn from_clap(matches: &ArgMatches<'_>) -> Self
fn from_clap(matches: &ArgMatches<'_>) -> Self
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.Source§fn from_args() -> Selfwhere
Self: Sized,
fn from_args() -> Selfwhere
Self: Sized,
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.Source§fn from_args_safe() -> Result<Self, Error>where
Self: Sized,
fn from_args_safe() -> Result<Self, Error>where
Self: Sized,
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.Source§fn from_iter<I>(iter: I) -> Self
fn from_iter<I>(iter: I) -> Self
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 moreAuto Trait Implementations§
impl Freeze for Opts
impl RefUnwindSafe for Opts
impl Send for Opts
impl Sync for Opts
impl Unpin for Opts
impl UnwindSafe for Opts
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
Mutably borrows from an owned value. Read more