Skip to content

0xCyberBerserker/Tor-AttackTools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

AttackTools & Tor Proxy

A Dockerized penetration testing environment with Kali Linux, ProxyChains, and Tor. Includes tools like Nmap, Metasploit, Nikto, and FFUF to perform anonymous network reconnaissance and scanning through the Tor network. ๐Ÿš€

Overview

This project consists of two Docker containers:

  1. Tor Container: Runs a Tor proxy to route traffic through the Tor network.
  2. AttackTools Container: A Kali Linux environment with penetration testing tools configured to use the Tor network via ProxyChains.

Features

  • Tor proxy configured to allow SOCKS5 connections on port 9050.
  • AttackTools container includes:
    • Nmap
    • ProxyChains4
    • Nikto
    • FFUF
    • Metasploit Framework
    • Ping utilities
    • Vim
  • ProxyChains is configured to route traffic through the Tor container.
  • Automated setup of Docker network and environment variables.

Installation

Prerequisites

Ensure you have Docker installed on your system.

Build and Run Containers

  1. Clone this repository:

    git clone https://github.com/0xCyberBerserker/Tor-AttackTools.git
    cd Tor-AttackTools
  2. Build the Docker images:

    chmod +x tor-attacktools.sh
    ./tor-attacktools.sh

    This script will:

    • Build the Tor and AttackTools images.
    • Create a Docker network.
    • Start the Tor container.
    • Retrieve the internal IP of the Tor container.
    • Start the AttackTools container with the correct Tor configuration.

Usage

Check if Tor is working

Run inside the AttackTools container:

checktor

If the output confirms that you are using Tor, everything is correctly set up.

Running Nmap through Tor

Use proxychains4 before Nmap commands:

proxychains4 nmap -sT -p- <target-ip>

Retrieve Public IP (through Tor)

pubip

Attach to the AttackTools Container

If you get disconnected, you can reattach using:

docker attach attacktools

Stopping and Cleaning Up

To stop and remove the containers:

docker stop tor attacktools

To remove the network:

docker network rm tor_network

You can use my docker-armaggedon script too.

Notes

  • The tor-attacktools.sh script should be run every time you restart your system to ensure correct environment variables and configurations.
  • Tor may take some time to start up; ensure it is running before using ProxyChains.

Disclaimer

This project is for educational and ethical hacking purposes only. Unauthorized scanning or attacks on networks you do not own is illegal.

License

MIT License. Feel free to use and modify but always follow ethical hacking guidelines.

About

A Dockerized penetration testing environment with Kali Linux, ProxyChains, and Tor. Includes tools like Nmap, Metasploit, Nikto, and FFUF to perform anonymous network reconnaissance and scanning through the Tor network. ๐Ÿš€

Resources

License

Stars

Watchers

Forks

Contributors

Languages