https://github.com/theflash2k/tmux-spawn
An automated TMUX Spawner script that will increase your workflow and setup basic stuff you might need in your CTFs
https://github.com/theflash2k/tmux-spawn
Last synced: about 1 year ago
JSON representation
An automated TMUX Spawner script that will increase your workflow and setup basic stuff you might need in your CTFs
- Host: GitHub
- URL: https://github.com/theflash2k/tmux-spawn
- Owner: TheFlash2k
- Created: 2023-01-03T12:59:35.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-10T04:01:49.000Z (almost 2 years ago)
- Last Synced: 2025-03-29T10:32:18.369Z (over 1 year ago)
- Language: Shell
- Size: 3.91 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TMUX-Spawn
An automated script that will allow you to automate your TMUX workflow when solving CTF challenges.
## Usage:
```bash
# Usage:
$ IP= MACHINE_NAME= $0
# Example:
$ IP=192.168.0.100 MACHINE_NAME=TEST tmux-spawn
```
### Commands.sh:
You can add your custom commands in this file. Following commands are added by default:
```bash
$ 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"
```
> ## Note:
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.