首页 > 代码库 > 安装kali之后那些事儿
安装kali之后那些事儿
完全是自己学习后的笔记,和基本的linux配置命令
输入的命令 输入的内容
1.更新软件源:
修改sources.list文件:
leafpad /etc/apt/sources.list
#官方源
deb http://http.kali.org/kali kali main non-free contrib
deb-src http://http.kali.org/kali kali main non-free contrib
deb http://security.kali.org/kali-security kali/updates main contrib non-free
#中科大kali源
deb http://mirrors.ustc.edu.cn/kali kali main non-free contrib
deb-src http://mirrors.ustc.edu.cn/kali kali main non-free contrib
deb http://mirrors.ustc.edu.cn/kali-security kali/updates main contrib non-free
#debian_wheezy国内源
deb http://ftp.sjtu.edu.cn/debian wheezy main non-free contrib
deb-src http://ftp.sjtu.edu.cn/debian wheezy main non-free contrib
deb http://ftp.sjtu.edu.cn/debian wheezy-proposed-updates main non-free contrib
deb-src http://ftp.sjtu.edu.cn/debian wheezy-proposed-updates main non-free contrib
deb http://ftp.sjtu.edu.cn/debian-security wheezy/updates main non-free contrib
deb-src http://ftp.sjtu.edu.cn/debian-security wheezy/updates main non-free contrib
deb http://mirrors.163.com/debian wheezy main non-free contrib
deb-src http://mirrors.163.com/debian wheezy main non-free contrib
deb http://mirrors.163.com/debian wheezy-proposed-updates main non-free contrib
deb-src http://mirrors.163.com/debian wheezy-proposed-updates main non-free contrib
deb-src http://mirrors.163.com/debian-security wheezy/updates main non-free contrib
deb http://mirrors.163.com/debian-security wheezy/updates main non-free contrib
2.运行 Metasploit Framework
因为kali没有开机启动数据库以及 metasploit服务所以需要先手动开启
service postgresql start
service metasploit start
开机启动我选择的是在/etc/rc.local加上述命令
leafpad /etc/rc.local 增加
service postgresql start
service metasploit start
之后不用每次开机都敲命令了
3.端口配置
临时配置ip(重启后清除)
ifconfig eth0 10.10.10.1 netmask 255.0.0.0
永久配置:
cd /etc/network
leafpad interfaces
iface eth0 inet static //配置eth0使用默认的静态地址
address 192.168.77.133 //设置eth0的IP地址
netmask 255.255.255.0 //配置eth0的子网掩码
gateway 192.168.77.254 //配置当前主机的默认网关
查看更多interfaces的可配置信息
man interfaces
配置dns
在/etc/resolv.conf 下
nameserver 202.99.XX.xx
最后重启下网络服务 service networking restart 或者 /etc/init.d/networking restart
另外如果是复制的虚拟机会出现网卡信息不一致,导致配置出错,使用MSF或者其他工具时可能会提示eth0: ERROR while getting interface flags: No such device 需要删除网卡配置并重启rm /etc/udev/rules.d/70-persistent-net.rules 并且重启 (重启网卡服务是不行的) reboot
4.界面美化
办公电脑没显卡,就不美化了。。。。。
5.升级
kali-linux的升级命令有小的区别
apt-get update
apt-get dist-upgrade