三种模式
桥接网络
没有用到虚拟网卡 虚拟机会分配到局域网中真实的网络地址,网关以及子网掩码。
虚拟机和宿主机以及局域网中其他主机处于平等地位
NAT模式
使用VMnet8虚拟网卡,由这块虚拟网卡分配ip网关dns
虚拟机只能和宿主机互相通信,并能够访问该局域网中其他主机
Host-Only(仅主机)模式
使用VMnet1虚拟网卡,由这块虚拟网卡分配ip网关dns
虚拟机和主机之间通过虚拟私有网络进行连接,所以只有同为host-only模式且在同一个VMware连接下才可以互相访问
虚拟机只能和宿主机之间进行相互通信,不能访问局域网中其他主机。
三种模式的区别
kali的简单配置
1.设置root用户
打开kali命令终端,输入sudo passwd root进行修改
2.设置中文
sudo dpkg-reconfigure locales
3.安装Python3的pip
pip是Python包管理工具,该工具提供了对Python包的查找、下载、安装、卸载的功能。关于python编程语言有关的知识将在后文介绍。许多黑客脚本都用python编写,也依赖某些python模块运行。因此我们需要pip来安装某些python脚本所需的模块。
安装pip3
apt-get install python3-pip
安装pip2
curl-o https://bootstrap.pypa.io/pip/2.7/get-pip.py
python2 get-pip.py
如没有curl命令kali会提示安装,选y。
安装完成后,执行如下命令:
pip2 -v
pip3-v
可以查看pip的版本。验证安装是否完成。
4.更换源(……)
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak sudo vim /etc/apt/sources.list
阿里云
deb http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
deb-src http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
清华大学
deb http://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free
中科大源
deb http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
deb-src http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
apt update更新系统,相当于windows的检查更新,并不是真正的更新
apt upgrade升级已安装的所有软件包,是真正的更新
apt dist-upgrade升级软件会自动处理依赖包
5.firefox设置中文
centos7初始配置
1.左上角设置里更改锁屏时间(power),改为从不
2.selinux关闭
使用vi/etc/selinux/config命令编辑selinux配置文件。将文件中的SELINUX=enforcing更改为SELINUX=disabled。
完成操作后重启生效。
3.firewalld关闭
systemctl stop firewalld
systemctl disable firewalld
执行systemctl stop firewalld 命令关闭防火墙。
执行systemctl disable firewalld命令取消防火墙开机自启。