Sign inSign up

madereddy/honeypot

By madereddy

Updated 6 months ago

Image
0

1.5K

madereddy/honeypot repository overview

🍯 Honeygain Pot Auto Claim

License

Automatically claims your daily Honeygain lucky pot reward and displays your earnings stats. Built with Bun and runs in a hardened Docker container.


Setup & Usage

Prerequisites
Pull the image
# From Docker Hub
docker pull madereddy/honeypot:latest

# From GitHub Container Registry
docker pull ghcr.io/madereddy/honeypot:latest
Run the container
docker run \
  --read-only \
  --tmpfs /tmp \
  --cap-drop ALL \
  --security-opt no-new-privileges \
  --memory 256m \
  -e [email protected] \
  -e PASSWORD=yourpassword \
  madereddy/honeypot:latest

Environment Variables

VariableRequiredDescription
EMAIL✅ YesYour Honeygain account email
PASSWORD✅ YesYour Honeygain account password

⚠️ Never hard-code credentials in your docker-compose.yml. Use a .env file — it is already in .gitignore.


Docker Compose - Runs both Honeypot and Honeygain

Create a .env file in the same directory:

[email protected]
PASSWORD=yourpassword
DEVICE_NAME=You device name

Then use the provided docker-compose.yml:

services:
  honeypot:
    image: madereddy/honeypot:latest
    restart: on-failure:5
    read_only: true
    cap_drop:
      - ALL
    security_opt:
      - no-new-privileges:true
    mem_limit: 256m
    tmpfs:
      - /tmp
    environment:
      - EMAIL=${EMAIL}
      - PASSWORD=${PASSWORD}

  honeygain:
    image: honeygain/honeygain:latest
    restart: on-failure:5
    command: -tou-accept -email ${EMAIL} -pass ${PASSWORD} -device ${DEVICE_NAME:-honeypot}

restart: on-failure:5 means Docker will restart the container up to 5 times on a crash, but will stop retrying if credentials are wrong — preventing an infinite restart loop.

Run with:

docker compose up -d

View logs:

docker compose logs -f

How It Works

  1. Logs into your Honeygain account on startup
  2. Claims the daily lucky pot reward if available
  3. Displays your active devices, earnings, and current balance
  4. Retries automatically on failure:
    • Not enough traffic (code 2) → retries in 1 hour
    • Login or known error (code 1) → retries in 2 hours
    • Unexpected error → retries in 3 hours
    • Expired session (401) → re-authenticates immediately and retries
  5. Once the claim succeeds, sleeps in-process until UTC midnight then loops back to claim again
  6. Runs forever — no restart required

Building Locally

git clone https://github.com/madereddy/honeypot.git
cd honeypot

docker build -t honeypot .

docker run \
  -e [email protected] \
  -e PASSWORD=yourpassword \
  honeypot

GitHub Actions Setup

This repo automatically builds and pushes the image to both Docker Hub and GHCR on every push to main and on new releases.

Add the following secrets to your GitHub repository under Settings → Secrets and variables → Actions:

SecretDescription
DOCKERHUB_USERNAMEYour Docker Hub username
DOCKERHUB_TOKENA Docker Hub access token (create one here)

GITHUB_TOKEN is provided automatically by GitHub Actions — no setup needed.


License

This project is licensed under the Apache 2.0 License — you are free to use, modify, and distribute this software, but you must include attribution to the original author.

Copyright (c) 2026 madereddy

See the LICENSE file for full details.

Tag summary

Content type

Image

Digest

sha256:7eb925516

Size

45.2 MB

Last updated

6 months ago

docker pull madereddy/honeypot