This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| docu:csheet:sysadm:venv:docker:run_kali [2020/03/21 23:17] – created admin | docu:csheet:sysadm:venv:docker:run_kali [2020/03/21 23:24] (current) – admin | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| <code bash> | <code bash> | ||
| #!/bin/bash | #!/bin/bash | ||
| - | docker run -it \ | + | xhost +local: >/ |
| + | docker run -it --rm \ | ||
| --mount type=bind, | --mount type=bind, | ||
| --mount type=bind, | --mount type=bind, | ||
| --mount type=bind, | --mount type=bind, | ||
| --mount type=bind, | --mount type=bind, | ||
| - | --privileged --network=host | + | --privileged --network=host kalilinux/ |
| - | docker rm -f kali | + | xhost -local: |
| </ | </ | ||
| A self-destructive docker container mounting different paths from an already configured kali-linux filesystem (mounting this paths could be ommited) | A self-destructive docker container mounting different paths from an already configured kali-linux filesystem (mounting this paths could be ommited) | ||
| + | \\ | ||
| + | xhost (+|-)local: accepts/ | ||
| \\ | \\ | ||
| --privileged is needed to capture packets, use special devices, etc | --privileged is needed to capture packets, use special devices, etc | ||
| \\ | \\ | ||
| --network=host speaks by itself | --network=host speaks by itself | ||
| - | \\ | ||
| - | --dns=127.0.0.1 (totally optional) | ||