前记 upload-labs,是一个关于文件上传的靶场.具体的write-up社区里也都有文章. 不过我在看了pass-16的源码后,发现了一些有意思的东西. 分析问题 关于检测gif的代码 第71行检测$fileext和$filetype是否为gif格式. 然后73行使用move_uploaded ...
分类:
其他好文 时间:
2020-06-25 17:38:14
阅读次数:
78
c:\windows\apsou.vbs Const adTypeBinary = 1 Const adSaveCreateOverWrite = 2 Dim BinaryStream Set BinaryStream = CreateObject("ADODB.Stream") BinaryStr ...
分类:
其他好文 时间:
2020-06-25 17:30:10
阅读次数:
64
安装docker-compose出现错误,安装命令: curl -L "https://github.com/docker/compose/releases/download/1.23.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/b ...
分类:
Web程序 时间:
2020-06-25 13:35:57
阅读次数:
85
使用 window.alert() 写入警告框 使用 document.write() 写入 HTML 输出 使用 innerHTML 写入 HTML 元素 使用 console.log() 写入浏览器控制台 innerHTML要配合 document.getElementById(id) 方法使用 ...
分类:
Web程序 时间:
2020-06-25 09:51:59
阅读次数:
84
题目 Given an array of citations sorted in ascending order (each citation is a non-negative integer) of a researcher, write a function to compute the re ...
分类:
其他好文 时间:
2020-06-25 09:37:51
阅读次数:
61
break可以离开当前switch、for、while、do while的程序块,并前进至程序块后下一条语句,在switch中主要用来中断下一个case的比较。在for、while与do while中,主要用于中断目前的循环执行。 注意:循环嵌套时只会跳出带break那层的循环,例如 1 class ...
分类:
编程语言 时间:
2020-06-24 23:50:02
阅读次数:
67
问题根源:初学者或者说不太了解Python才会犯这种错误,其实只需要注意一点!不要使用任何模块名作为文件名,任何类型的文件都不可以!我的错误根源是在文件夹中使用xgboost.*的文件名,当import xgboost时会首先在当前文件中查找,才会出现这样的问题。 所以,再次强调:不要用任何的模块名 ...
分类:
其他好文 时间:
2020-06-24 23:21:56
阅读次数:
149
删除报错warning: Immediate deletion does not wait for confirmation that the running resource has been terminated. The resource may continue to run on the ...
分类:
其他好文 时间:
2020-06-24 23:20:00
阅读次数:
130
CORS 跨域 在服务端设置响应头 ACAO( Access-Control-Allow-Origin )即可 前端代码,运行在 8080 端口上 $.ajax({ url:'http://localhost:3000/cors' }) .done( res =>{ console.log(res) ...
分类:
其他好文 时间:
2020-06-24 23:18:04
阅读次数:
60
Vasya works as a DJ in the best Berland nightclub, and he often uses dubstep music in his performance. Recently, he has decided to take a couple of ol ...
分类:
其他好文 时间:
2020-06-24 23:15:59
阅读次数:
50