SkillAgentSearch skills...

CookieFarm

CookieFarm is a Attack/Defense CTF framework inspired by DestructiveFarm, developed by the Italian team ByteTheCookies. What sets CookieFarm apart is its hybrid Go+Python architecture and "zero distraction" approach: Your only task: write the exploit logic!

Install / Use

/learn @ByteTheCookies/CookieFarm
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

<div align="center"> <img width="360px" height="auto" src="assets/logo_mucca.png" alt="CookieFarm Logo"> </div> <p align="center"> <img src="https://img.shields.io/badge/relase-1.2.1-red?style=flat-square" alt="Version"> <img alt="GitHub go.mod Go version" src="https://img.shields.io/github/go-mod/go-version/ByteTheCookies/CookieFarm?filename=go.mod&style=flat-square"> <img alt="GitHub code size in bytes" src="https://img.shields.io/github/languages/code-size/ByteTheCookies/CookieFarm?color=7289DA&style=flat-square"> <img alt="GitHub License" src="https://img.shields.io/github/license/ByteTheCookies/CookieFarm?color=orange&style=flat-square"> </p>

🍪 CookieFarm

CookieFarm is an Attack/Defense CTF framework inspired by DestructiveFarm, developed by the Italian team ByteTheCookies. Its strength lies in a hybrid Go + Python architecture and a zero-distraction philosophy:

🎯 Your only task is to write the exploit!

CookieFarm automates exploit distribution, flag submission, and result monitoring — allowing you to focus entirely on building powerful exploits.


🔧 Prerequisites

Make sure you have the following installed:

  • ✅ Python 3+
  • ✅ Docker

<!-- ## 📁 Repository Structure | Directory | Description | |------------------|-------------| | [`client/`](./docs/client/README.md) | Handles exploit creation and flag submission | | [`server/`](./docs/server/README.md) | Manages exploit distribution, flag collection, and monitoring | --- -->

⚙️ Architecture Overview

<div align="center"> <img width="800px" height="auto" src="assets/arch_farm.png" alt="Architecture Diagram"> </div>

▶️ Getting Started

🖥️ Starting the Server

  1. Create an .env file in the server directory to configure the environment settings:

      # Server configuration
      DEBUG=false                   # Enable debug mode for verbose logging
      PASSWORD=SuperSecret  # Set a strong password for authentication
      CONFIG_FILE=true  # Set if the server takes the config from config.yml in the filesystem; otherwise, do not set the variable
      PORT=8080            # Define the port the server will listen on
      BACKEND_URL=http://server:8080 # URL for the backend service (Is used by the frontend to connect to the server)
    

⚠️ For production environments, set DEBUG=false and use a strong, unique password

  1. Start the server with Docker Compose:
    docker compose up --build
    

📘 For more configuration details, refer to the server documentation.


💻 Using the Client & Running Exploits

  1. Run the installation :
pip install cookiefarm

After installation, the ckc command is available globally in your terminal (or in your virtual environment if you are using one).

  1. Log in and configure the client:

    ckc config login -P SuperSecret -h 192.168.1.10 -p 8000 -u your_username
    
  2. Install the Python helper module and create a new exploit template:

    ckc exploit create -n your_exploit_name
    

    This will generate your_exploit_name.py in ~/.cookiefarm/exploits/.

  3. Run your exploit:

    ckc exploit run -e your_exploit_name.py -n CookieService -t 120 -T 40
    

📘 For more usage examples, check out the client documentation.


🤝 Contributing

We welcome contributions, suggestions, and bug reports! See CONTRIBUTING.md for details on how to get involved.

📈 Star History

<a href="https://star-history.com/#ByteTheCookies/CookieFarm&Date&secret=Z2hwX1AzVkd6OTFZR2h1RkZWNjJHZnplTTFZZU1Yb3pHMTFKeHlDdw=="> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=ByteTheCookies/CookieFarm&type=Date&theme=dark&secret=Z2hwX1AzVkd6OTFZR2h1RkZWNjJHZnplTTFZZU1Yb3pHMTFKeHlDdw==" /> <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=ByteTheCookies/CookieFarm&type=Date&secret=Z2hwX1AzVkd6OTFZR2h1RkZWNjJHZnplTTFZZU1Yb3pHMTFKeHlDdw==" /> <img alt="Star History Chart" src="https://api.star-history.com/svg?repos=ByteTheCookies/CookieFarm&type=Date&secret=Z2hwX1AzVkd6OTFZR2h1RkZWNjJHZnplTTFZZU1Yb3pHMTFKeHlDdw==" /> </picture> </a> <div align="center"> Built with ❤️ by <strong>ByteTheCookies</strong> </div>
View on GitHub
GitHub Stars20
CategoryDevelopment
Updated10d ago
Forks2

Languages

Go

Security Score

95/100

Audited on Mar 26, 2026

No findings