01_Kali Linux环境搭建

Kali Linux环境硬盘安装/USB驱动器安装(Win32 Disk Imager写入|UNetbootin启动)、树莓派安装、虚拟机安装、ssh登录(连接工具xshell)

### 虚拟机安装:VM + Kali.iso ###

#安装VMTools 

cp /mnt/VMwareTools-version.tar.gz /tmp

 tar zxf vmware-linux-tools.tar.gz

 ./vmware-install.pl

#Kali增加源

leafpad /etc/apt/sources.list

#kali官方源

deb http://http.kali.org/kali kali-rolling main non-free contrib

#阿里云源

deb http://mirrors.aliyun.com/kali sana main non-free contrib

deb http://mirrors.aliyun.com/kali-security/ sana/updates main contrib non-free

deb-src http://mirrors.aliyun.com/kali-security/ sana/updates main contrib non-free

apt-get update  #更新源

#网络配置:

root@kali:~# vi /etc/network/interfaces

         auto eth0 #网卡

         iface eth0 inet static

         address 192.168.1.116

         gateway 192.168.1.1

         netmask 255.255.255.0

         network 192.168.1.0

         broadcast 192.168.1.255

root@kali:~# /etc/init.d/networking restart

root@kali:~# ping  #test network

root@kali:~# vi /etc/default/grub

         # GRUB_CMDLINE_LINUX_DEFAULT = “quiet”

         GRUB_CMDLINE_LINUX_DEFAULT = “text” #不启动图形界面

#SSH连接Kali

root@kali:~# service ssh status

root@kali:~# service ssh start

root@kali:~# vi /etc/ssh/sshd_config

         PermitRootLogin yes #without- password

root@kali:~# vi /etc/rc.local  #开机启动

         #running the ssh service

         service ssh start

root@ubuntu:~$ ssh [email protected]  #登录

LAMP环境:Linux+Apache+Mysql+PHP)

root@kali:~# service apache2 start  #status

root@kali:~# service mysql start  #status

         mysql> show database; #exit

root@kali:~# nano /var/www/html/index.html

root@kali:/var/www/html# touch index.php

root@ubuntu:~$ vim /etc/hosts  # windows hosts位置

                   # kali host

                   192.168.1.116 kalihost.net

你可能感兴趣的:(KaliLinux)