织梦DEDECMS cookies泄漏导致SQL漏洞修复方法,整理如下:打开文件member/inc/inc_archives_functions.php,搜索(大概在239行的样子) echo "<input type=\"hidden\" name=\"dede_fieldshash\" val ...
分类:
数据库 时间:
2020-06-11 13:21:45
阅读次数:
74
Linux下对文件操作有两种方式:系统调用(system call)和库函数调用(Library functions)。 1、系统调用 系统调用提供的函数如open, close, read, write, ioctl等,需包含头文件unistd.h。以write为例:其函数原型为 size_t w ...
分类:
其他好文 时间:
2020-06-11 01:08:38
阅读次数:
100
ROOT=$(readlink -fn $(dirname $0)/.. )find $ROOT -not -wholename \*.tox/\* -and \( -name \*.sh -or -name \*rc -or -name functions\* \) -print0 | xargs ...
分类:
系统相关 时间:
2020-06-10 19:22:10
阅读次数:
94
Python简洁的语法使编写实现大量逻辑的单行表达式变得容易。 例如,假设我想解码来自URL的查询字符串。这里,每个查询字符串参数表示一个整数值: from urllib.parse import parse_qs my_values = parse_qs('red=5&blue=0&green=' ...
分类:
其他好文 时间:
2020-06-08 23:35:13
阅读次数:
67
原因 混合java 和scala 无法编译 解决 右键项目 > properties > scala Compiler >勾选Use Project Setting > Scala Installation > Fixed Scala Installation(对应版本)(built-in) > B ...
分类:
系统相关 时间:
2020-06-06 09:27:26
阅读次数:
114
日志清理目前覆盖58台服务器如下 此处省略 #!/bin/sh . /etc/rc.d/init.d/functions currTime=$(date +"%Y-%m-%d %T") logpath=/home/local/logs TarlogPath=/data/home/deploy/out ...
分类:
其他好文 时间:
2020-06-05 10:31:39
阅读次数:
81
freeMarker实现字符串转数字,数字转字符串,布尔值转换为字符串-freeMarker-萨瓦迪卡 http://www.swzhinan.com/post/177.html Built-ins for strings - Apache FreeMarker Manual https://fre ...
分类:
其他好文 时间:
2020-06-03 17:41:48
阅读次数:
75
解决方法: name的命名不要使用html的标签元素即可 <script> export default { name:'button' // 不要使用内置或保留的HTML元素 , 改为Button或者置或保留的HTML元素之外的名称就好了 // 可以把button改为button1等都可以 } < ...
分类:
Web程序 时间:
2020-06-03 13:34:10
阅读次数:
133
从github下载三方扩展后直接拖拽至vendor目录运行项目报错 报scandir() has been disabled for security reasons 原因: 因为PHP里面的scandir函数被禁用了 打开php.ini disable_functions = scandir,pa ...
分类:
其他好文 时间:
2020-05-30 10:46:20
阅读次数:
65
#!/bin/env sh program=`basename $0|awk -F. '{print $1}'` lock=/var/lock/subsys/$program source /etc/rc.d/init.d/functions function start(){ if [ -e $l ...
分类:
其他好文 时间:
2020-05-26 20:01:19
阅读次数:
66