-
Book Overview & Buying
-
Table Of Contents
Kali Linux Intrusion and Exploitation Cookbook
By :
In this recipe, we will be to and setting-up on Kali Linux.
To step through this recipe, you will need a running Kali Linux in Oracle Virtualbox or VMware, and an Internet connection. No other prerequisites are required.
For this recipe, you need to perform the following steps:
/etc/apt/sources.list.d/backports.list in your favorite editor. If the file doesn't exist, create it.
deb http://http.debian.net/debian wheezy-backports main
$ apt-get update $ apt-get install apt-transport-https ca-certificates
$ apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80
--recv-keys 58118E89F3A912897C070ADBF76221572C52609D
/etc/apt/sources.list.d/docker.list in your favorite editor. If the file doesn't exist, create it.
$ deb https://apt.dockerproject.org/repo debian-wheezy main
$ apt-get update && apt-cache policy docker-engine
$ apt-get install docker-engine
$ service docker start
$ docker run hello-world
Since, you're already logged in as root in your Kali Linux installation, you don't need to use sudo. But it is important to note that the docker daemon always runs as the root user and the docker daemon binds to a Unix socket instead of a TCP port. By default, that Unix socket is owned by the user root, and so, you will need to use the preceding commands with sudo, if you are not logged in as root.
In this recipe, we have added the docker source list so that we can fetch the Docker updates every time we use the apt-get update command on our system. Then, update the apt-get sources and install the prerequisites required for installing Docker. We added the GPG key to ensure that whatever updates we are installing are valid official unchanged packages. After all this basic configuration, we ran a basic apt-cache to ensure APT is fetching the docker-engine from the right repository. Finally, we installed docker-engine using apt-get.
Change the font size
Change margin width
Change background colour