Skip to content

mdvalv/kali-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Kali Docker

Just a Dockerfile with some tools I use for CTFs.

Using the image

You can easily use the image by running:

docker run --rm -it mdval/kali-docker bash

However, this is how I usually start the container:

docker run --name kali --rm -it -p 1123-1133:1123-1133 --mount src=kali-docker-root,dst=/root --mount src=kali-docker-postgres,dst=/var/lib/postgresql mdval/kali-docker bash
  • -p 1123-1133:1123-1133: This will publish ports for 1123 to 1133, so we can use nc -lvnp 1123 from the container, for example
  • --mount src=kali-docker-root,dst=/root: This will save the home directory in a volume, to make it persistent
  • --mount src=kali-docker-postgres,dst=/var/lib/postgresql: This will save Postgres databases in a volume, to make it persistent

By using --name kali, you can easily get a new connection to the container by running:

docker exec -it kali bash

Building the image

make build

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published