Introduction to Docker for CTFs

preview_player
Показать описание
I'm using docker more often for CTFs, but it's also useful to host challenges. More CTFs share Dockerfiles to run it locally, so I figured it's time to give an introduction to docker. If you have some other tips or tricks about your workflow, please share it below!

-=[ ❤️ Support ]=-

-=[ 🐕 Social ]=-

-=[ 📄 P.S. ]=-

All links with "*" are affiliate links.
LiveOverflow / Security Flag GmbH is part of the Amazon Affiliate Partner Programm.
Рекомендации по теме
Комментарии
Автор

Who felt triggered by me using python2?

LiveOverflow
Автор

OK, if you starting with docker, you probably want to know that:
8:55
When you start container you can ofc give it a name with `--name some_name` (if you do not give any name it will assign some radom one, in this case it was `cool_yonath`)
later if you want to exec something it there, instead of using id, you can use that name.
Also if you are using if, you don't need to use full id (in fact that id that is displayed when you use `docker ps` is also first 12 characters of id) you need to use enough characters to have single matching result (it might be even only 1 character)


ps: if you using distro with selinux enabled, mount your volumes with `:z` at the end, eg: `-v $PWD:/pwd:z`


ps2: if you run container with `--link container_name:hostname` you are getting connectivity to mentioned container (`ping hostname`)

PiotrekR-aka-Szpadel
Автор

liveoverflow : docker tutorial
everyone: where r u these days ?

nikhilt
Автор

You could use a bridge network for inter-container communication. With it you don't need to expose any port to the local network and can use the name of the container as IP address

asparagii
Автор

>beginning of video: Docker. Docker container. Docker.
>Middle of video: docker docks docking docks docker dock
>end of video: dakka dakka durka durka docka docka dock


i think im going insane XD

drawapretzel
Автор

I made a docker-like program (called doqueru-kun) and a tutorial that made me understand how docker works. Waiting for your next video to link it in my project!

danielmitre
Автор

Docker is just amazing, Kubernetees is the next step

MattiaRighetti
Автор

nc host.docker.internal 1024 (instead of finding the IP address of host), or just use the host network when creating the container

zzh
Автор

When using VSCode there is that awesome plugin that runs your current workspace on docker, so the set up is much easier and the development is much cleaner.

piotrmielnik
Автор

Useful information as always. Thanks LiveOverflow

jfaustino
Автор

holy crap. nice animation.. very descriptive.. do this more often..

MrFudge
Автор

Great way of explaining things, kudos to you!!

dipanshujha
Автор

Looking forward to the next video.


(Also Holy shit, I have the green icon now)

RoiEXLab
Автор

if u want your last container to execute an arbitrary command, you can prefix the command with docker exec -it $(docker ps -lq) <command>
maybe someone reads this and finds it useful (in an automated setup ofcourse)

TheGrimravager
Автор

Hey, a video around pwntools would be awesome!

niteshsurana
Автор

Loved it, this was awesome and now I know what to use!
Thx

abc
Автор

these videos are amazing, keep up the great work.

Podoco_music
Автор

I have a container setup with the Kali Linux Desktop Environment running and I use Reminna to access it; But it slows my machine done as much as a VM does.

enpassant
Автор

If you want to run something on the host machine ip from a container you don't need to look for the ip you can just use host.docker.internal :)

xcffee_
Автор

So, basically Docker is like a solution to "works on my machine ¯\_(ツ)_/¯" syndrome. 😛

Demonslay