Kali Linux in Docker

Поділитися
Вставка
  • Опубліковано 24 чер 2024
  • We'll run Kali inux ( or any other Linux distribution) with a graphical user environment such as xfce or KDE or mate inside a Docker Container! I'll explain briefly Docker images, Docker containers and Dockerfiles. I provide you with a Dockerfile on my github server that allows you to chose the X11 desktop environment, the remote access client to use (VNC, RDP, x2go), the Kali software packages to install and which network to use (bridged, host). #kalilinux #docker
    MANY THANKS TO ALL MY PATRONS on / onemarcfifty !!!
    The Docker File can be found here: github.com/onemarcfifty/kali-...
    The ‪@OffSecTraining‬ YT channel is here: / offensivesecuritytraining
    My other Docker videos can be found here:
    Bridge networks: • The Docker Bridge Netw...
    Host+macvlan networks : • The Docker HOST and MA...
    ###############################
    Chapters:
    0:00 Setting the Scene
    2:30 About Docker
    4:40 Getting Docker
    5:50 Installing Kali in Docker
    6:54 Accessing Kali
    7:56 Networking
    9:40 Volumes
    ###############################
    KALI LINUX (TM) is a trademark of Offensive Security. The original Kali Dragon is a Trademark of Offensive Security (www.kali.org) and is used with friendly permission of kali.org and Offensive Security
    MANY THANKS TO ALL MY PATRONS on / onemarcfifty !!!
    Please visit my channel page: / onemarcfifty
    Want to talk to me? Join my Discord Server: / discord
    Shopping on Amazon ? Please bookmark my affiliate link www.amazon.com/?tag=onemarcfi...
    Marc on Patreon: / onemarcfifty
    Marc's channel on youtube: / onemarcfifty
    Marc on Twitter: / onemarcfifty
    Marc on Facebook: / onemarcfifty
    Marc on Reddit: / onemarcfifty
    Chat with me on Discord: / discord
    The docker logo from Wikimedia Commons By dotCloud, Inc. - File:Docker (container engine) logo.png, Apache License 2.0, commons.wikimedia.org/w/index...
    The Thumbnail of this video is under the Apache 2.0 License: www.apache.org/licenses/LICEN...
  • Наука та технологія

КОМЕНТАРІ • 53

  • @dannyaustin84
    @dannyaustin84 Рік тому +3

    Totally subscribed. Such a lot of excellent information with literally NO fluff.

  • @Alternosphere
    @Alternosphere Рік тому +2

    lol i googled for this exact thing like half an hour after you uploaded it. gold. subscribed. thank you

  • @olafgusten2671
    @olafgusten2671 Рік тому +2

    just to thank you for this video series, looking forward to implement in my next project.

  • @taherboujrida8110
    @taherboujrida8110 Рік тому +4

    Thank you very much Mr Mark for the simple awesome explanation, fantastic presentation , keep it up

    • @OneMarcFifty
      @OneMarcFifty  Рік тому +1

      Hi, thank you very much for your feedback ;-)

  • @TheEmperorXavier
    @TheEmperorXavier 3 місяці тому

    Thank you very much for this well explained but very concise video sir, cheers!

  • @ProgrammingWithOsku
    @ProgrammingWithOsku Рік тому +1

    Subscribed, and thank you so much

    • @OneMarcFifty
      @OneMarcFifty  Рік тому

      Thanks for subscribing, watching and for the feedback ;-)

  • @charlesdehavilland2437
    @charlesdehavilland2437 6 місяців тому

    That build script you created is absolute mustard! THANK YOU!!!! Any chance of a video on bash scripting like this please?

  • @elfinofficial4071
    @elfinofficial4071 Місяць тому

    Thank you so much for the script, this is exactly what I've been looking for.
    One question: I don't know what to put when asked about host volume and docker volume. I've put /home/admin for host and / for container, which gave errors.
    The image was already built so now I imagined I'll just use docker run on it?

  • @killerdude909
    @killerdude909 Рік тому +1

    verry good and simple i used it on my windows vm with docker windows all i had to do was go into to directory open a terminal in it and typ docker run build .

    • @OneMarcFifty
      @OneMarcFifty  Рік тому

      Cool stuff - thanks for the feedback ;-)

  • @bourehimyoussef111
    @bourehimyoussef111 8 місяців тому

    Thank you for the clear explanation. I have a vps server running an arm64 ubuntu 22, is there any possibility to run an x86-64 linux docker image inside it?

  • @skkar2k2
    @skkar2k2 10 місяців тому

    Thank you so much for the nice video what I was looking for. However, getting error in docker log - No log line matching the ' ' filter and not able to start

  • @BK-lv9ff
    @BK-lv9ff Рік тому +1

    ty sir im new to docker after ill switch to proxmox may be for now my needs are small very big danke for the skript

    • @OneMarcFifty
      @OneMarcFifty  Рік тому

      Hey, you're welcome. Glad you liked it ;-)

  • @kanmaber
    @kanmaber 11 місяців тому

    Hi. Well done and very informative video. Thank you so much.
    I have a concern. I'm on kubuntu 20.04 and the DockerFile has been executed successfully. But I really don't know how to access the kali-linux desktop which is in the docker. Can you help me ?

  • @kailashj2145
    @kailashj2145 Рік тому +1

    Hi mark, thanks for the video, was really useful. could you also explain how to access usb interfaces inside this container?

    • @OneMarcFifty
      @OneMarcFifty  Рік тому

      Hi, it should be as easy as mapping the device as a volume in theory (using the -v parameter, e.g. on the /dev/usb...)

  • @gizemduygusonmez8005
    @gizemduygusonmez8005 8 місяців тому

    Hi Mark, thank you so much for video. Docker container is running but I cannot open the GUI. Actually I couldn't understand how to open GUI. Do I need to download any application for this ? Could you explain how to open Kalilinux GUI?

  • @ReemRamzi
    @ReemRamzi Рік тому +1

    thank you

  • @magicsyssolucionesentecnol733
    @magicsyssolucionesentecnol733 10 місяців тому

    buen video

  • @Mr_ravee_
    @Mr_ravee_ 5 місяців тому

    I have a difference use case scenario here,I just need a light weight GUI xfce or any other made disposable with a docker container to run on docker for the vps server (Ubuntu) How do I achieve that?

  • @ShadowStormlq5mwdasd
    @ShadowStormlq5mwdasd Рік тому +1

    Thank you for your videos, interesting how to connect usb to container?

    • @OneMarcFifty
      @OneMarcFifty  Рік тому

      In theory you could just mount /dev/usb... or the like as a volume mount (-v) to the container.

  • @eid0sman
    @eid0sman 5 місяців тому

    does it possible to access Container GUI from the macOS ?

  • @mambo7668
    @mambo7668 Рік тому +1

    Hi Marc, the command line docker is not calling home and sniffing? because the windows docker with GUI is spying a lot

    • @OneMarcFifty
      @OneMarcFifty  Рік тому +1

      Hi, not that I had ever been aware of ;-)

    • @mambo7668
      @mambo7668 Рік тому

      @@OneMarcFifty thanks! I will give docker another try

  • @guocity
    @guocity 10 місяців тому

    I have raspberry pi setup as access point bridge mode, and after install docker, client will not get DHCP from router

  • @dokomann
    @dokomann Рік тому +1

    Freue mich schon auf kali unter proxmox .. wäre klasse wenn es dann ähnlich wie unter Virtual Box ist

    • @OneMarcFifty
      @OneMarcFifty  Рік тому +1

      Es ist ein bischen weniger detailliert- 21 Stunden noch ;-)

  • @afifnassar450
    @afifnassar450 10 місяців тому

    hello , I am already have running kalilinux/kali-rolling inside docker desktop on windows 11 , the sudo ./build not exist , how can I resolve this issue

  • @IBITZEE
    @IBITZEE Рік тому +1

    Marc... you have the 'gift' of explaining things in a coherent and objective way... :-)
    could you please explain the relation between the lightspeed/time and gravity??? ;-))
    ( ¨\o/¨ )

    • @OneMarcFifty
      @OneMarcFifty  Рік тому

      It’s relative, i.e. it depends on your point of view. Also there is no escape from gravity - not for free ;-)

  • @ShadowStormlq5mwdasd
    @ShadowStormlq5mwdasd Рік тому +1

    and how to connect from rdp or vnc via host docker network? It`s writing this "Published ports are discarded when using host network mode"

    • @OneMarcFifty
      @OneMarcFifty  Рік тому

      Publishing a port effectively means doing a port forward (or rather DNAT) of that port from the host interface to the Docker bridge interface. If you use the host interface then you don't need DNAT because the port would listen directly on the host's interface and hence the port publishing is discarded. The container would still listen on that port though.

  • @zaidmunir8409
    @zaidmunir8409 Рік тому +1

    Installled kali on docker successsfully but can't access the port form vnc viewer. On portainer under published ports, there is nothing there. Though in the logs its specidies the port but it dosn't work. Plz help

    • @OneMarcFifty
      @OneMarcFifty  Рік тому

      Hi Zaid, you might need to run a docker inspect on the container in order to see what it exposes or not and why. Maybe add some echo statements into the build script around line 90 to see what value the variables carry. Have you changed the build script in any way ?

  • @sarkybugger5009
    @sarkybugger5009 Рік тому +2

    Random comment. Thumb deployed. 👍

  • @JohnMandersonBM
    @JohnMandersonBM Рік тому +1

    These two files, do we need to save them as files and then run a command, or just copy and past the code and hit enter?

    • @OneMarcFifty
      @OneMarcFifty  Рік тому

      Hi John, please see the readme on the github repo: github.com/onemarcfifty/kali-linux-docker

    • @JohnMandersonBM
      @JohnMandersonBM Рік тому

      @@OneMarcFifty I did but still not able to understand. Not really a Linux guy.

    • @OneMarcFifty
      @OneMarcFifty  Рік тому

      @@JohnMandersonBM No worries - what Linux are you using, i.e. what linux version is your docker host running on ?

    • @JohnMandersonBM
      @JohnMandersonBM Рік тому

      @@OneMarcFifty Running Portainer on Ubuntu 22.04.

    • @OneMarcFifty
      @OneMarcFifty  Рік тому

      @@JohnMandersonBM OK cool - in this case - in a shell type the following commands(without the quotes). First you need to make sure you have git installed: "apt update" then "apt install git", next clone the repository with "git clone github.com/onemarcfifty/kali-linux-docker.git" . Once you have a clone then do "cd kali-linux-docker" followed by "sudo ./build"