摘要: 1.安装python(mac os 自带python2 开发可安装python3) 2. 安装 pip -- python的包管理工具: 3. 安装完pip之后,就要安装 virtualenv: 4. 然后要安装virtualenvwrapper: Virtaulenvwrapper 是 virtu 阅读全文
posted @ 2019-09-17 15:02 arthur豆 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 自己写OAuth后台太麻烦,直接拉取gitbub现成的。拉取活跃度比较高的bshaffer/oauth2-server-php 注:以下编码是Oauth四种认证中的第四种:凭证式。想了解其他几种方式,请移步阮一峰大大的博客http://www.ruanyifeng.com/blog/2019/04/ 阅读全文
posted @ 2019-05-14 17:02 arthur豆 阅读(2559) 评论(0) 推荐(0) 编辑
摘要: $val) $string[$key] = new_addslashes($val); return $string; } /** * 返回经stripslashes处理过的字符串或数组 * @param $string 需要处理的字符串或数组 * @return mixed */ function new_stripslashes($string) { if(!is... 阅读全文
posted @ 2019-03-18 14:11 arthur豆 阅读(3712) 评论(0) 推荐(1) 编辑
摘要: 转自:https://blog.tonyseek.com/post/introduce-to-xss-and-csrf/ XSS:跨站脚本(Cross-site scripting) CSRF:跨站请求伪造(Cross-site request forgery) 在那个年代,大家一般用拼接字符串的方 阅读全文
posted @ 2019-02-26 16:41 arthur豆 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 安装工具 brew install expect brew install spawn-fcgi 编写可执行脚本 例如~/.wiwide_dev.sh #!/usr/bin/expectset user rootset ipaddress 120.76.xx.xxset passwd xxxset 阅读全文
posted @ 2019-02-14 14:43 arthur豆 阅读(779) 评论(0) 推荐(0) 编辑