heywoodlh/reverse-shell

By heywoodlh

Updated about 23 hours ago

Server and client reverse shell

Image
Security
0

3.9K

heywoodlh/reverse-shell repository overview

Server and client reverse shell container images.

Dockerfile and related resources are here: https://github.com/heywoodlh/dockerfiles/tree/master/reverse-shell

GitHub Action for building this image: https://github.com/heywoodlh/actions/blob/master/.github/workflows/reverse-shell-buildx.yml

Usage:

Example docker-compose.yml:

services:
  client:
    hostname: client
    image: docker.io/heywoodlh/reverse-shell:client
    restart: unless-stopped
    environment:
      - SERVER_ADDRESS="server"
      - SERVER_PORT=1337
    networks:
      - net-1
    depends_on:
      - server
  server:
    hostname: server
    image: docker.io/heywoodlh/reverse-shell:server
    restart: unless-stopped
    networks:
      - net-1
    environment:
      - LISTEN_PORT=1337

networks:
  net-1:

Then bring it up and attach to the reverse shell:

docker compose up -d
docker compose exec -it server /attach.sh

The client image also includes the Docker client and kubectl in case you want to attach to privileged Docker contexts and/or the Kubernetes cluster running the container.

Tag summary

Content type

Image

Digest

sha256:9f725bf74

Size

127.6 MB

Last updated

about 23 hours ago

docker pull heywoodlh/reverse-shell:client-alpine-3.24.1