0x00

插入电脑后在“网络连接”中会出现P4wnP1网卡以太网 Remote NDIS Compatibl...

打开目前连接网络的网卡设置,选择“共享”勾选“连接共享”,选择P4wnP1的接口以太网
选择P4wnP1的网卡,配置静态ip,更改ip和子网掩码:

ip:         172.16.0.2
子网掩码:    255.255.255.252

0x01 win8-10额外配置(ping 172.16.0.2不通)可忽略

管理员身份运行power shell,将网卡改为私有

输入Get-NetConnectionProfile,复制P4wnP1网卡的名字

输入Set-NetConnectionProfile -Name "你的P4wnP1网卡名字" -NetworkCategory Private
微信截图_20180407132535.png

0x02设置路由访问外网

ssh连接P4wnP1后输入sudo route add -net default gw 172.16.0.2

切换到root添加dns,输入echo nameserver 114.114.114.114 > /etc/resolv.conf

Done

Last modification:October 24, 2019
如果觉得我的文章对你有用,请随意赞赏