From 5a1262d9e5c414d3b9225565a1663b756bf4baf3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristian=20Cezar=20Mois=C3=A9s?= <86272521+cristiancmoises@users.noreply.github.com> Date: Sun, 14 Apr 2024 00:48:47 +0000 Subject: Add files via upload --- -dockervm.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '-dockervm.html') diff --git a/-dockervm.html b/-dockervm.html index e0cb924..78190b7 100644 --- a/-dockervm.html +++ b/-dockervm.html @@ -1,2 +1,2 @@ 📦 DockerVM — C.C.M. Homepage

+>---------------------------<+

[About]--[Research]--[Projects]

+>---------------------------<+


📦 DockerVM

February 18, 2024

Use docker like Qemu/VmWare/Virtualbox

[Exherbo]

[Fedora]

[Kali]

[Void]

ACCESS THE SYSTEM IN THE CONTAINER

   docker run -it IMAGE_ID_HERE /bin/bash

START ALL STOPPED CONTAINERS

   docker start $(docker ps -a -q --filter "status=exited")

RUN THE LAST STOPPED CONTAINER:

   docker start -a -i 'docker ps -q -l'

LIST ALL IMAGES

   docker images

LIST ALL CONTAINERS

   docker ps -a

RE-ACCESS THE SYSTEMS

   docker exec -it CONTAINER_ID_HERE /bin/bash

NOVNC

GRAPHICAL INTERFACE

apt install xfce-desktop xorg -y

CONFIGURE A PASSWORD FOR ROOT ON KALI

passwd

FIREWALL - HOST CONFIG

iptables -A INPUT -i docker0 -j ACCEPT

CONFIG FOR KALI LINUX

apt update && apt upgrade && apt install novnc x11vnc tigervnc-standalone-server dbus-x11 python-py python3-pip -y

NUMPY INSTALL

user > pip install numpy
-user > pip3 install numpy

START DBUS

dbus-launch

START VNCSERVER

vncserver

START NOVNC

/usr/share/novnc/utils/novnc_proxy --listen 8081 --vnc localhost:5900

ACESS VIA BROWSER

CONTAINER_IP:8081/vnc.html

FIX SOME HOSTNAME BUGS

echo $(hostname -I | cut -d\ -f1) $(hostname) | sudo tee -a /etc/hosts

\ No newline at end of file +user > pip3 install numpy

START DBUS

dbus-launch

START VNCSERVER

vncserver

START NOVNC

/usr/share/novnc/utils/novnc_proxy --listen 8081 --vnc localhost:5900

ACESS VIA BROWSER

CONTAINER_IP:8081/vnc.html

FIX SOME HOSTNAME BUGS

echo $(hostname -I | cut -d\ -f1) $(hostname) | sudo tee -a /etc/hosts

\ No newline at end of file -- cgit v1.2.3