Skip to content

Interactsh wrappers to keep logs, monitor specific domains in the background. Allows you to quickly attach to a session.

Notifications You must be signed in to change notification settings

doomerhunter/interactsh-loggers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

interactsh-loggers / wrappers

Why ?

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.

Solution

Create aliases to execute the interact-sh client on a remote server within a tmux session.

Create a new 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

Attach and interact

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

Quicly read the interaction log

The interactsh-read will, if given a session name, list the logged interactions in a short format

interactsh-read poc1

Kill a session or all session

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.

Requirements

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

About

Interactsh wrappers to keep logs, monitor specific domains in the background. Allows you to quickly attach to a session.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages