Sign inSign up

simonthomas/alpha

By simonthomas

•Updated over 8 years ago

Linux Distributions Images for Testing and Staging Purposes

Image
0

448

simonthomas/alpha repository overview

⁠Repository details - README

Usage: docker pull simonthomas/alpha:image-tag-name-and-version

⁠Kali Linux Docker Images

All versions are based on Kali Linux Official Docker Minimal Image: https://www.kali.org/news/official-kali-linux-docker-images/⁠

⁠Kali Linux Docker Image version 3
⁠Social Engineering Toolkit, Armitage, Metasploit framework

###### What is in the image From an official Kali Linux minimal Docker image, I have added common useful tools with apt.

  • Common tools: bmon iftop iptraf nethogs net-tools nmap wireshark htop curl
    apt-transport-https apt-utils strace sysstat ca-certificates gnupg2 software-properties-common
    gzip bzip2 whois dnsutils rblcheck unzip vim vim-common vim-runtime httrack
  • Kali Linux Meta-packages kali-linux-web kali-linux-top10
  • Additional applications metasploit-framework setoolkit armitage
  • Dependencies for SET, Metasploit-framework and Armitage in X11 export mode python2.7-minimal python3 python-pip pexpect pycrypto requests pyopenssl pefile impacket impacket qrcode pillow libxext-dev libxrender-dev libxtst-dev python-elixir
    ldap-utils rwho rsh-client x11-apps finger python-pyside.qtwebkit python-qt4 hydra nmap libapache2-mod-php python-pefile python-pexpect python-ptyprocess
⁠Before lauching the container

First build the image with: docker build -t $IMAGE_NAME .

⁠Metsploit Framework and SET Usage

Run a new container from the image: docker run -ti $IMAGE_NAME

⁠After lauching the container for the first time

You will need to connect to the container and,

  • Launch postgresql database server: /etc/init.d/postgresql start
  • Initiate the metasploit framework database for its firt run:
    msfdb init
  • You can also connect to metasploit framework to check everything is ok and build database cache msfconsole db_rebuild_cache
⁠Social Engineering Toolkit Nota Bene

In order for some attack vectors to work properly you will need to expose some or all container's ports to host. Also for remote WAN usage you may need to have these ports open in your firewall too. In example, Website based attack vectors will need to have at least the port 80 configured properly.

⁠In case metasploit do not work properly

It may means that services.sh did not work properly on the container start, please mannually execute following commands : /etc/init.d/postgresql start msfdb init

⁠Armitage Usage
⁠Before lauching the container
  • Modifiy the Dockerfile lines containing the UID and GUID with your Docker user UID and GUID uid=1000 gid=1000
  • On the Docker host running the container, you should allowd at least your docker containers network range to connect to X server: sudo xhost +
⁠Running a new container from the image

docker run -ti --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix $IMAGE_NAME

⁠After lauching the container for the first time and before allowing Armitage to connect and launch RPC Server

You will need to connect to the container just right after Armitage poped up and before you click on login and,

  • Launch postgresql database server: /etc/init.d/postgresql start
  • Initiate the metasploit framework database for its firt run:
    msfdb init
  • You can also connect to metasploit framework to check everything is ok and build database cache msfconsole> db_rebuild_cache /etc/init.d/postgresql start> msfdb init

You can read more detailed information on my building process and have a look at the Dockerfiles on my Github here

⁠Armitage latest Official Kali Linux based
  • Tag name: armitage-v2
  • Image size: 1 GB
  • Description: Default Kali Linux Official container with ibxext-dev libxrender-dev libxtst-dev metasploit-framework and armitage installed. Some configuration is added to export the X11 application GUI from the container. To use please, read below:
⁠Before lauching the container
  • Modifiy the Dockerfile lines containing the UID and GUID with your Docker user UID and GUID The currently used are uid=1000 gid=1000
  • On the Docker host running the container, you should allowd at least your docker containers network range to connect to X server: sudo xhost +
⁠Running a new container from the image

docker run -ti --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix armitage

⁠After launching the container for the first time and before allowing Armitage to connect and launch the RPC Server:

You will need to connect to the container just right after Armitage poped up and before you click on login and,

  • Launch postgresql database server: /etc/init.d/postgresql start
  • Initiate the metasploit framework database for its firt run:
    msfdb init
  • You can also connect to metasploit framework to check everything is ok and build database cache msfconsole db_rebuild_cache The Dockerfile is available on Github.com here > https://github.com/t0m-a/armitage-docker-mage⁠
⁠Sparta Docker Image Kali Linux based
  • Tag name: sparta-v1
  • Image size: 948 MB
  • Description: Default Kali Linux Official container with Secforce Sparta version 1.0.3 and dependencies installed: iptraf net-tools curl gzip bzip2 unzip libxext-dev libxrender-dev libxtst-dev libqtwebkit4 libqt4-dev python-elixir ldap-utils rwho rsh-client x11-apps finger python-pyside.qtwebkit python-qt4 hydra cutycapt nmap
⁠Before lauching the container
  • Modifiy the Dockerfile lines containing the UID and GUID with your Docker user UID and GUID The currently used are uid=1000 gid=1000
  • On the Docker host running the container, you should allowd at least your docker containers network range to connect to X server: sudo xhost +
⁠Running a new container from the image

docker run -ti --rm -e DISPLAY=$DISPLAY --env QT_X11_NO_MITSHM=1 -v /tmp/.X11-unix:/tmp/.X11-unix sparta:latest Please note that:

  • We are running the latest Sparta development version due to bugs with QT libraries avoiding the GUI to load properly all the elements. You can update or downgrade it by downloading the code directly from Secforce's Sparta Github repository into the tool's folder.
  • At that point, cutycapt still provokes non blocking errors while trying to display the screenshots. I am working on it. The Dockerfile is available on Github.com here > https://github.com/t0m-a/sparta-docker-image⁠
⁠Kali Linux Web Meta-packages v2
  • Tag name: kali-linux-web-v2
  • Image size: 4 GB.
  • Description: Default Kali Linux Official container with kali-linux-web and kali-linux-top10 meta-packages installed. + Software added: bmon iftop iptraf nethogs net-tools nmap wireshark htop curl apt-transport-https apt-utils strace sysstat ca-certificates gnupg2 software-properties-common gzip bzip2 whois dnsutils rblcheck wget unzip vim vim-common vim-runtime
⁠Kali Linux Web Meta-packages v1
  • Tag name: kali-linux-web-v1
  • Image size: 4 GB.
  • Description: Default Kali Linux Official container with kali-linux-web and kali-linux-top10 meta-packages installed.

Tag summary

Content type

Image

Digest

Size

4.2 GB

Last updated

over 8 years ago

docker pull simonthomas/alpha:kali-linux-v3