Struct cli::State[][src]

pub struct State<W: Write> {
    pub write: BufWriter<W>,
    pub mode: Mode,
    pub client: AthenaClient,
    pub available_victims: Vec<Victim>,
    pub selected_victims: Vec<Victim>,
    pub editor: Option<String>,
    pub payload_ids: Vec<(PayloadID, String)>,
}
Expand description

Application state

Fields

write: BufWriter<W>mode: Modeclient: AthenaClientavailable_victims: Vec<Victim>selected_victims: Vec<Victim>editor: Option<String>payload_ids: Vec<(PayloadID, String)>

Implementations

Create new state

Get list of victims from the server

print welcome message

print default prompt

Print shell prompt

Print prompt when the application is set to target all victims on the C2 server

Lists all the victims that are registered on the C2 server

Runner method to select all victims. Should be called after calling Self::list_victims as the user will have to see the victim list first before making their choices

Upload payload to all selected victims

Read victim response to all registered payloads from the C2 server

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 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.