Interact-sh logging is a bit complicated. To have long running sessions in the background, you either have to configure disk storage + encryption, or keep your client running. This repo aims to provide a quick solution for logging / saving long runnning collaborators instances and ensure that no data is lost. It also helps if you need to (rip)grep a string in the logs later.
Create aliases to execute the interact-sh client on a remote server within a tmux session.
The interactsh
script will create a new tmux session if it does not exists (ex: clientname.yourdomain.org) and only monitors interactions on that domain.
Tmux scrollback is set to 99999
interactsh poc1
The interactsh-list will, if given no args, list the remote tmux sessions and prompt you a nice UI (FZF) to choose your session and automatically attach to it
interactsh-list
The interactsh-read will, if given a session name, list the logged interactions in a short format
interactsh-read poc1
By killing the tmux window, the associated process will be killed. Use either interactsh-kill $1
for a single window, or interactsh-killall
for all client windows.
- Remote server with interactsh-client (go install -v github.com/projectdiscovery/interactsh/cmd/interactsh-client@latest)
- Remote server with tmux installed (apt install tmux)
- Adapt the placeholders within the code :
<yoursub>.<yourdom>.<yourtld>
<youruser>@<yourserver>