An automated script that will allow you to automate your TMUX workflow when solving CTF challenges.
# Usage:
$ IP=<IP> MACHINE_NAME=<MACHINE_NAME> $0
# Example:
$ IP=192.168.0.100 MACHINE_NAME=TEST tmux-spawn
You can add your custom commands in this file. Following commands are added by default:
$ export nc_listen="rlwrap nc -lvnp $1"
$ export nmap_allports="nmap -p- --min-rate=10000 -oN logs/initial.nmap $IP $1"
$ export nmap_full="nmap -p $1 -sC -sV -oN logs/full.nmap $IP $2"
$ export gobuster_common="gobuster dir -u $1 -w /usr/share/wordlists/dirb/common.txt -o logs/gobuster-common.txt"
$ export gobuster_medium="gobuster dir -u $1 -w /usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt -o gobuster-medium.txt"
$ export nikto_full="nikto -h $1 | tee logs/nikto.log"
$ export smbclient_list="smbclient -L \\\\$IP\\"
$ export smbclient_connect="smbclient \\\\$IP\\$1"
$ export add_host="echo $1 | sudo tee -a /etc/hosts"
The script currently only supports Boot2Root machines. Later I will add support for a jeopardy CTF that will create several folders such as Web
, Pwn
, Rev
, Crypto
etc.