Ausnahme gefangen: SSL certificate problem: certificate is not yet valid πŸ“Œ Dwn - D(Ockerp)Wn - A Docker Pwn Tool Manager

🏠 Team IT Security News

TSecurity.de ist eine Online-Plattform, die sich auf die Bereitstellung von Informationen,alle 15 Minuten neuste Nachrichten, Bildungsressourcen und Dienstleistungen rund um das Thema IT-Sicherheit spezialisiert hat.
Ob es sich um aktuelle Nachrichten, Fachartikel, BlogbeitrÀge, Webinare, Tutorials, oder Tipps & Tricks handelt, TSecurity.de bietet seinen Nutzern einen umfassenden Überblick über die wichtigsten Aspekte der IT-Sicherheit in einer sich stÀndig verÀndernden digitalen Welt.

16.12.2023 - TIP: Wer den Cookie Consent Banner akzeptiert, kann z.B. von Englisch nach Deutsch ΓΌbersetzen, erst Englisch auswΓ€hlen dann wieder Deutsch!

Google Android Playstore Download Button fΓΌr Team IT Security



πŸ“š Dwn - D(Ockerp)Wn - A Docker Pwn Tool Manager


πŸ’‘ Newskategorie: IT Security Nachrichten
πŸ”— Quelle: feedproxy.google.com


dwn is a "docker-compose for hackers". Using a simple YAML "plan" format similar to docker-compose, image names, versions and volume / port mappings are defined to setup a tool for use.


features

With dwn you can:

  • Configure common pentest tools for use in a docker container
  • Have context aware volume mounts
  • Dynamically modify port bindings without container restarts
  • And more!

installation

Simply run pip3 install dwn.


usage

dwn is actually really simple. The primary concept is that of "plans" where information about a tool (such as name, version, mounts and binds) are defined. There are a few built-in plans already available, but you can also roll your own. Without arguments, just running dwn would look like this.

❯ dwn
Usage: dwn [OPTIONS] COMMAND [ARGS]...

__
___/ / _____
/ _ / |/|/ / _ \
\_,_/|__,__/_//_/
docker pwn tool manager
by @leonjza / @sensepost

Options:
--debug enable debug logging
--help Show this message and exit.

Commands:
check Check plans and Docker environment
network Work with networks
plans Work with plans
run Run a plan
show Show running plans
stop Stop a plan

To list the available plans, run dwn plans show.

❯ dwn plans show
dwn plans
┏━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ name ┃ path ┃
┑━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
β”‚ sqlmap β”‚ /tools/dwn/plans/sqlmap.yml β”‚
β”‚ wpscan β”‚ /tools/dwn/plans/wpscan.yml β”‚
β”‚ gowitness-report β”‚ /tools/dwn/plans/gowitness-report.yml β”‚
β”‚ msfconsole β”‚ /tools/dwn/plans/msfconsole.yml β”‚
β”‚ gowitness β”‚ /tools/dwn/plans/gowitness.yml β”‚
β”‚ nginx β”‚ /tools/dwn/plans/nginx.yml β”‚
β”‚ cme β”‚ /tools/dwn/plans/cme.yml β”‚
β”‚ netcat-reverse β”‚ /tools/dwn/plans/netcat-reverse.yml β”‚
β”‚ semgrep-sec β”‚ /tools/dwn/plans/semgrep-sec.yml β”‚
β”‚ semgrep-ci β”‚ ~/.dwn/plans/semgrep-ci.yml β”‚
β”‚ neo4j β”‚ ~/.dwn/plans/neo4j.yml β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
11 plans

To run a plan such as gowitness screenshotting https://google.com, run dwn run gowitness --disable-db single https://www.google.com. This plan will exit when done, so you don’t have to dwn stop gowitness.

❯ dwn run gowitness --disable-db single https://www.google.com
(i) found plan for gowitness
(i) volume: ~/scratch -> /data
(i) streaming container logs
08 Feb 2021 10:46:18 INF preflight result statuscode=200 title=Google url=https://www.google.com
❯
❯ ls screenshots
https-www.google.com.png

A plan such as netcat-reverse however will stay alive. You can connect to the plans TTY after it is started to interact with any shells you may receive. Example usage would be:

❯ dwn run netcat-reverse
(i) found plan for netcat-reverse
(i) port: 4444<-4444
(i) container booted! attach & detach commands are:
(i) attach: docker attach dwn_wghz_netcat-reverse
(i) detach: ctrl + p, ctrl + q

Attaching to the plan (and executing nc -e somewhere else)

❯ docker attach dwn_wghz_netcat-reverse
connect to [::ffff:172.19.0.2]:4444 from dwn_wghz_netcat-reverse_net_4444_4444.dwn:46318 ([::ffff:172.19.0.3]:46318)

env | grep -i shell
SHELL=/bin/zsh

read escape sequence

You can get a running plan report too

❯ dwn show
running plan report
┏━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ plan ┃ container(s) ┃ port(s) ┃ volume(s) ┃
┑━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━┩
β”‚ netcat-reverse β”‚ dwn_wghz_netcat-reverse_net_4444_4444 β”‚ 4444<-4444 β”‚ β”‚
β”‚ β”‚ dwn_wghz_netcat-reverse β”‚ β”‚ β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

And finally, stop a plan.

❯ dwn stop netcat-reverse -y
(i) stopping 2 containers for plan netcat-reverse

networking

dwn lets you dynamically map ports to plans without any container restarts. Networking commands live under the dwn network subcommand. Taking the nginx plan as an example, we can add a port mapping dynamically. First, start the nginx plan.

❯ dwn run nginx
(i) found plan for nginx
(i) volume: ~/scratch -> /usr/share/nginx/html
(i) port: 80<-8888
(i) container dwn_wghz_nginx started for plan nginx, detaching

Next, test the communication with cURL

❯ curl localhost:8888/poo.txt
haha, you touched it!

❯ curl localhost:9000/poo.txt
curl: (7) Failed to connect to localhost port 9000: Connection refused

Port 9000 is not open, so let's add a new port binding and test connectivity

❯ dwn network add nginx -i 80 -o 9000
(i) port binding for 9000->nginx:80 created
❯
❯ curl localhost:9000/poo.txt
haha, you touched it!

updating plans

The dwn plans pull command can be used to update the images defined in plans. To only update a single plan, add the plan name after pull. Eg: dwn plans pull nginx.


writing plans

A dwn plans new command exists to quickly scaffold a new plan. While only a few options are needed to get a plan up and running, all of the options that exist in the Python Docker SDK for the run call are valid tags that can be used.



...



πŸ“Œ Dwn - D(Ockerp)Wn - A Docker Pwn Tool Manager


πŸ“ˆ 110.92 Punkte

πŸ“Œ [shellcode] Linux/ARM64 - Egghunter (PWN!PWN!) + execve("/bin/sh", NULL, NULL) + mprotect() Shellcode (88 Bytes)


πŸ“ˆ 27.43 Punkte

πŸ“Œ Linux/ARM64 Egghunter (PWN!PWN!) + execve("/bin/sh", NULL, NULL) + mprotect() Shellcode


πŸ“ˆ 27.43 Punkte

πŸ“Œ #0daytoday #Linux/ARM64 - Egghunter (PWN!PWN!) + execve(&amp;quot;/bin/sh&amp;quot;, NULL, [#0day #Exploit]


πŸ“ˆ 27.43 Punkte

πŸ“Œ DEF CON 27 Social Engineering Village - Jayson Street - I PWN thee I PWN thee not


πŸ“ˆ 27.43 Punkte

πŸ“Œ Docker users unhappy with latest forced login to download Docker and Docker Store images


πŸ“ˆ 26.93 Punkte

πŸ“Œ Mehrere Probleme in containerd, docker-runc, go1.11, go1.12, golang-github-docker-libnetwork, go und docker (SUSE)


πŸ“ˆ 26.93 Punkte

πŸ“Œ Security: Mehrere Probleme in containerd, docker-runc, go1.11, go1.12, golang-github-docker-libnetwork, go und docker (SUSE)


πŸ“ˆ 26.93 Punkte

πŸ“Œ Mehrere Probleme in containerd, docker-runc, golang-github-docker-libnetwork und docker (SUSE)


πŸ“ˆ 26.93 Punkte

πŸ“Œ Mangelnde RechteprΓΌfung in containerd, docker-runc, golang-github-docker-libnetwork und docker (SUSE)


πŸ“ˆ 26.93 Punkte

πŸ“Œ Docker Stack Tutorial | Docker Stack Deploy Docker-Compose.yml


πŸ“ˆ 26.93 Punkte

πŸ“Œ Preisgabe von Informationen in containerd, docker-runc, golang-github-docker-libnetwork und docker (SUSE)


πŸ“ˆ 26.93 Punkte

πŸ“Œ Preisgabe von Informationen in containerd, docker-runc, golang-github-docker-libnetwork und docker (SUSE)


πŸ“ˆ 26.93 Punkte

πŸ“Œ Denial of Service in containerd, docker-runc, golang-github-docker-libnetwork und docker (SUSE)


πŸ“ˆ 26.93 Punkte

πŸ“Œ Preisgabe von Informationen in containerd, docker-runc, golang-github-docker-libnetwork und docker (SUSE)


πŸ“ˆ 26.93 Punkte

πŸ“Œ AusfΓΌhren von Code mit hΓΆheren Privilegien in docker-runc, golang-github-docker-libnetwork, docker und containerd (SUSE)


πŸ“ˆ 26.93 Punkte

πŸ“Œ Mehrere Probleme in docker-runc, golang-github-docker-libnetwork, docker und containerd (SUSE)


πŸ“ˆ 26.93 Punkte

πŸ“Œ Security: Mehrere Probleme in docker-runc, golang-github-docker-libnetwork, docker und containerd (SUSE)


πŸ“ˆ 26.93 Punkte

πŸ“Œ Setup Private Server with Docker - Pwn Adventure 3: part 2


πŸ“ˆ 22.69 Punkte

πŸ“Œ Point-and-pwn tool for posers dumbs down ransomware spreading


πŸ“ˆ 19.09 Punkte

πŸ“Œ Docker 1.13.0 RC2 Supports Building of Docker DEBs for Ubuntu 16.10 on PPC64LE


πŸ“ˆ 17.96 Punkte

πŸ“Œ Canonical and Docker Partner to Distribute Docker Releases as Snaps on Ubuntu


πŸ“ˆ 17.96 Punkte

πŸ“Œ Docker 1.13.0 Just Around the Corner as Docker 1.12.4 Enters Development


πŸ“ˆ 17.96 Punkte

πŸ“Œ Docker 1.13 Officially Released, Docker for AWS and Azure Ready for Production


πŸ“ˆ 17.96 Punkte

πŸ“Œ Docker 1.13.0 RC2 Supports Building of Docker DEBs for Ubuntu 16.10 on PPC64LE


πŸ“ˆ 17.96 Punkte

πŸ“Œ Docker versus Moby: Wie geht es mit Docker weiter?


πŸ“ˆ 17.96 Punkte

πŸ“Œ 17 Backdoored Docker Images Removed From Docker Hub


πŸ“ˆ 17.96 Punkte

πŸ“Œ vamp.io on OpenStack on Kubernetes on Mesos on Docker-in-Docker on a CentOS VM on KVM on OpenStack on CentOS on Bhyve on FreeBSD on AWS


πŸ“ˆ 17.96 Punkte

πŸ“Œ DOCKER MASTERY: THE COMPLETE TOOLSET FROM A DOCKER CAPTAIN


πŸ“ˆ 17.96 Punkte

πŸ“Œ Canonical and Docker Partner to Distribute Docker Releases as Snaps on Ubuntu


πŸ“ˆ 17.96 Punkte

πŸ“Œ Docker 1.13.0 Just Around the Corner as Docker 1.12.4 Enters Development


πŸ“ˆ 17.96 Punkte

πŸ“Œ Docker 1.13 Officially Released, Docker for AWS and Azure Ready for Production


πŸ“ˆ 17.96 Punkte

πŸ“Œ Docker is everything but pretty; let's try to fix that. Here's a rundown of some GUI options available for Docker.


πŸ“ˆ 17.96 Punkte

πŸ“Œ Knock-Knock Docker!! Will you let me in? Open API Abuse in Docker Containers


πŸ“ˆ 17.96 Punkte











matomo