主要是对key进行处理$key = substr(openssl_digest(openssl_digest($key, 'sha1', true), 'sha1', true), 0, 16);
// openssl_encrypt 加密不同Mcryp...
阅读全文...
ThinkPHP5,未开启强制路由导致远程执行代码漏洞
漏洞表现?s=\think\app/invokefunction&function=call_user_func_array&vars[0]=phpinfo&vars[1][]=100修复方案1、开启强制路由config/app....
阅读全文...
阅读全文...
Golang解析Xml文件做配置
解析方法package main
import (
"encoding/xml"
"errors"
"fmt"
"os"
)
type T...
阅读全文...
阅读全文...
简单更新web资源脚本
#!/bin/bash
#登录账号
user=`whoami`
#运行环境
env="debug";
if [[ $user = "root" ]]; then
echo $user;
env=&q...
阅读全文...
阅读全文...
虚拟环境-virtualenv的使用
安装virtualenvpip install virtualenv查看版本号virtualenv --version创建新环境virtualenv venv启动环境source venv/bin/activate在虚拟环境中安装包pip install...
阅读全文...
阅读全文...