Skip to content

Latest commit

 

History

History

rat

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Setup

$ docker build -t black_hat_rust/ch13:latest .
$ make bundle

Usage

$ docker run -d -p 1322:22 --name bhr_ch13_ssh black_hat_rust/ch13:latest
$ cargo run -p agent -- 127.0.0.1:1322

On Linux, the agent will be installed in $XDG_DATA_HOME/bhr_ch13 or $HOME/.local/share/bhr_ch13

Inspect container

$ docker exec -ti bhr_ch13_ssh bash
$ ls -lah /tmp
$ ls -lahR /root/.local/share/

Cleanup

$ docker rm -f bhr_ch13_ssh
# on linux
$ rm -rf ~/.local/share/bhr_ch13/
# on macOS
$ rm -rf $HOME/Library/Application Support/bhr_ch13/

Build for Linux

make agent_linux

Build for Windows

make agent_windows