1. 程式人生 > >kali網路環境配置

kali網路環境配置

修改網絡卡配置

在終端輸入命令vim /etc/network/interfaces,配置網路資訊

# This file describles the network interfaces available on your system

#and how to activate them. For more information,see interfaces(5).

#The loopback network interface

Auto lo

Iface lo inet loopback

# The primary network interface

Allow-hotplup eth0

Iface eth0 inet dhcp

配置完成後,在終端輸入“reboot”

如果kali需要採用靜態地址上網方式序言修改/etc/network/interfaces配置檔案

檔案

# This file describles the network interfaces available on your system

#and how to activate them. For more information,see interfaces(5).

#The loopback network interface

auto lo

Iface lo inet loopback

# The primary network interface

allow-hotplup eth0

iface eth0 inet static//配置eth0使用預設的靜態地址

address 192.168.1.1  //設定eth0的IP地址

netmask 255.255.255.0  //設定eth0的子網掩碼

 

開啟ssh和apache2服務

開啟ssh服務,在終端輸入“vim /etc/ssh/sshd_config”。將#passwordAuthentication yes 註釋去掉,儲存並推出,在終端中輸入“service ssh start”啟動ssh服務

 

 

在終端中輸入命令“vim /etc/apache2/ports.conf”,修改apache2的預設埠號,把監聽埠修改為“8080”,儲存退出

 

 

輸入service apache2 start

在瀏覽器中輸入http://localhost:8080回車,或http://ip:8080