Posts

Showing posts from July, 2019

Use Packer to create docker images

Using Packer (packer.io) to create ephemeral docker based penetration testing images - Example Egressbuster – this is required to effectively test the egress filtering during internal penetration assessments and potentially red teaming. Install packer: refer (https://www.packer.io/downloads.html) Install Docker CE: refer (https://docs.docker.com/install/linux/docker-ce/ubuntu/) Clone Egressbuster on your kali VM : refer (https://github.com/trustedsec/egressbuster) Packer script is {   "variables": {     "repository": "ubuntu",     "tag": "1.0",     "root_password": null   },   "builders": [{     "type": "docker",     "author": "",     "image": "ubuntu:latest",     "commit": true,     "changes": [      "USER ubuntu"     ]   }],   "provisioners": [    {      "type": "shell"