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

Sets the bin field of this struct.

Sets the libc field of this struct.

Sets the ld field of this struct.

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

For the unspecified files, try to guess their path

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns clap::App corresponding to the struct.

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

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

Gets the struct from any iterator such as a Vec of your making. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.