Docker
Repository
First clone lekir-docker repository into your computer
then just run this command
Linux
I recommend installing LEKIR Docker on Kali Linux to gain access to vulnerable Docker environments for easier learning and experimentation.
apt install docker.io
apt install docker compose
cd lekir/
chmod +x setup.sh
./setup.sh
Linux manually run or windows cmd
cd lekir/
docker-compose build
docker-compose up
run detach mode
docker-compose up -d
two image will run after successful.
then you can access using
[http://localhost:1337]
or
[http://127.0.0.1:1337]
Information
This docker will bind to port 3306, 1337 & 4444 on your localhost
3306 - mysql
1337 - web
4444 - port for reverse shell or etc to your kali vm?
Make sure
No service are currently running on this port on your local machine or change your desire port number on docker-compose.yml
version: "3.9"
services:
php-apache:
ports:
- "1337:80"
- "4444:4444"
build: './build/php'
mysql:
ports:
- "3306:3306"
build: './build/mysql'
environment:
MYSQL_ROOT_PASSWORD: "deducted"
MYSQL_DATABASE: "lekir"
volumes:
- dbData:/var/lib/mysql
- ./lekir.sql:/docker-entrypoint-initdb.d/dump.sql
volumes:
app:
dbData:
Expose your docker to LAN network - Linux
export DOCKER_HOST=tcp://localIp:1337
docker compose up
Notes
List running container
docker ps
Stopping running container
docker stop <CONTAINER_ID>
List docker images
docker images
Delete docker images
docker rmi <IMAGE_ID>
Force delete docker images
docker rmi <IMAGE_ID>
Accessing shell
docker ps -it <CONTAINER_ID> /bin/bash
or
docker ps -it <CONTAINER_ID> /bin/sh
Last updated