PHP 的 HTTP 认证机制仅在 PHP 以 Apache 模块方式运行时才有效,因此该功能不适用于 CGI 版本。
在 _h5ai/public/index.php 最下面增加以下代码:
function mima(){
$user=array('nonni','nonni');
if(!($user[0]===$_SERVER['PHP_AUTH_USER'] && $user[1]===$_SERVER['PHP_AUTH_PW'])){
header('WWW-Authenticate: Basic realm="nonni"');
header('HTTP/1.0 401 Unauthorized');
die("please login");
}
}
在第二行 <?php 的下面插入以下代码:
mima();
OK了。
- 去https://github.com/gnab/rtl8812au下载驱动,解压。
- 文件夹中打开终端运行:
make sudo make install sudo modprobe 8812au
- 插入USB网卡,检查Setting --> WiFi。
Trace route interface:
http://ipms.chinatelecomglobal.com/public/lookglass/lookglassDisclaimer.html?lang=zh_CN
<h1 class="lenovo-infomation-close icon-up">The Windows Recovery Media Systems Program DOES support</h1>
<div class="r-txt">
Windows 10 Pro systems that are downgraded to Windows 7 Pro (Downgrade program) --(get Windows10 recovery media)
Windows 8.1 Pro systems that are downgraded to Windows 7 Pro (Downgrade program) -- (get Windows8.1 recovery media)
Windows 10 THINK systems and Selected Idea pad and Desktop systems (get Windows10 recovery media and Digital Download only)
</div>
Old:
yum provides ifconfig
yum whatprovides ifconfig
yum install net-tools
yum install traceroute
New:
和ifconfig 显示的一样
ip addr
查看介面传输状态-s是详细显示
ip -s link
ip link
TCP listen
ss -lt
UDP listen
ss -ul
TCP连线
ss -t
traceroute/traceroute6改成tracepath
route改为ip -route
route table 看起来有点不习惯
ip route
route6 IPv6的route table
ip -6 rou
arp改为ip nei查看附件的arp和IPv6的neighbor,这个把v6 v4整合的还不错。
ip neighbor
网卡接口开关
ifconfig eth1 up
ifconfig eth1 down
改为
ip l set eth1 up
ip l set eth1 down