Several Methods for installing kali linux on VPS, vpskali

Source: Internet
Author: User
Tags vps kali linux

Several Methods for installing kali linux on VPS, vpskali

During penetration testing, we often need to bounce a shell back. You can use empire, MSF, or other tools to avoid public IP address issues. At this time, we need a VPS for further penetration testing.

There are many ways to establish channel connections, such as NAT ing and ssh tunnel. We will not discuss them here.

Establishing a channel is highly unstable and easily disconnected, which is a great headache for network security enthusiasts. In addition, due to various reasons, you may not be able to purchase a KVM-based VPS and cannot directly install penetration testing systems such as kali linux on the VPS. The following describes how to install kali linux In debian. It works well with screen or tmux tools.

First, we install Debian 8 for our VPS.

Almost omnipotent method-docker

Docker is an open-source application container engine that allows developers to package their applications and dependencies to a portable container and then publish them to any popular Linux machine, you can also achieve virtualization. Containers fully use the sandbox mechanism and do not have any interfaces between them.

Because the docker runtime environment requires more than 3.8 kernels, this method is not particularly applicable and can be used.uname -aTo check the kernel version of the VPS. For example, a small version of the VPS vendor provides an image with a kernel version of more than 2.6. If your kernel version is earlier than 3.8, skip this method.

Install docker

Install docker In debian 8
Http://www.docker.org.cn/book/install/install-docker-on-debian-8.0-jessie-34.html

Use

Run kali linux in docker
The kali linux official website already provides a detailed description of this issue. We will not repeat it here.
Https://www.kali.org/news/official-kali-linux-docker-images/

Recommended method-directly install tools using scripts

Git address:
Https://github.com/SuperSuperSuperSuper5/katoolin4china
Usage
Http://blog.csdn.net/isinstance/article/details/52830169

The most primitive but effective solution-Direct Installation

This is a method that xiaobian has been using. I encountered some strange problems when I used the script to install kali. Due to the urgent need, I have not promoted it for further research. I will share it here, if neither of the above methods can solve the problem, use it as a backup method.

First, we can change the debian source directly to the kali official source.
Modify/etc/apt/sources.listFile to delete all content and add the following content:

##  deb cdrom:[Debian GNU/Linux 2016.1 _Kali-rolling_ - Official Snapshot  amd64 LIVE/INSTALL Binary 20160830-11:29]/ kali-rolling contrib main  non-free#deb cdrom:[Debian GNU/Linux 2016.1 _Kali-rolling_ -  Official Snapshot amd64 LIVE/INSTALL Binary 20160830-11:29]/  kali-rolling contrib main non-freedeb http://http.kali.org/kali kali-rolling main non-free contrib# deb-src http://http.kali.org/kali kali-rolling main non-free contrib

Then run:

apt-get update

After running, we can see that an error is reported !!!

W: GPG error: http://http.kali.org kali-rolling InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ED444FF07D8D0BF6

At this time, we need to add the public key of the kali source. The corresponding content is as follows:ED444FF07D8D0BF6

The following command is allowed to add the public key:

apt-key adv --keyserver pgp.mit.edu --recv-keys ED444FF07D8D0BF6

Run againapt-get update

Update checked successfully.

Next, we can install the required sub-version based on our selection.
For example:
apt-get -y install kali-linux-allInstall all the kali tools
apt-get -y install kali-linux-webAll web-related tools will be installed

Here, I chose to install web-related tools.
Some things need to be selected later
You can install the tool according to your needs. (generally, you can press enter all the way, except for some special situations)

Upgrade the software package as needed.

apt-get updateapt-get dist-upgrade

Now, even if we have installed kali, we will have a VPS with all the kali functions in combination with tools such as screen or tmux. Improve Our penetration Efficiency

Tmux usage
Http://blog.jobbole.com/87584/
Http://tangosource.com/blog/a-tmux-crash-course-tips-and-tweaks/

This article introduces three methods for installing kali on VPS. If other students have better methods or have other questions, please stay tuned to the public for further discussion and send messages directly, small series will always pay attention.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.