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: Mode
client: AthenaClient
available_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 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