2019年4月30日

vm虚拟机Kali无法拖拽文件解决办法

摘要: vm虚拟机Kali无法拖拽文件解决办法 apt-get updateapt-get install open-vm-tools-desktop fusereboot 阅读全文

posted @ 2019-04-30 19:01 J4s0n 阅读(1154) 评论(0) 推荐(0) 编辑

2019年4月19日

Python Requests IP直连

摘要: import re import requests from urllib3.util import connection _orig_create_connection = connection.create_connection def patched_create_connection(address, *args, **kwargs): s = str(address[1]... 阅读全文

posted @ 2019-04-19 18:30 J4s0n 阅读(544) 评论(0) 推荐(0) 编辑

2019年4月17日

python 实现dns 解析发送接收报文

摘要: http://www.qingruxu.com/code/python/851.html https://tools.ietf.org/html/rfc1035里面的图不一定正确,可以使用抓包软件来进行分析。 这里的 TYPE CLASS 应该是各占8个字节。 这里却画错了。抓包软件推荐 Wires 阅读全文

posted @ 2019-04-17 19:16 J4s0n 阅读(2568) 评论(0) 推荐(1) 编辑

2016年6月25日

刷新控制台方法

摘要: print("\033[H\033[2J"); 阅读全文

posted @ 2016-06-25 02:26 J4s0n 阅读(524) 评论(0) 推荐(0) 编辑

2016年4月16日

js 16进制字符串互转

摘要: /** * 16进制转换为字符串 * @param hex * @returns {*} */ function hexToString(hex) { var tmp = ''; if (hex.length % 2 == 0 ) { ... 阅读全文

posted @ 2016-04-16 01:11 J4s0n 阅读(1702) 评论(0) 推荐(0) 编辑

2016年4月15日

js兼容性 - 动态删除script标签后 ,定义的函数是否执行

摘要: hello.html 会执行: Chrome,firefox,IE 11,Opera 不执行: Safari 暂时仅测试这些 阅读全文

posted @ 2016-04-15 23:37 J4s0n 阅读(1607) 评论(0) 推荐(0) 编辑

2016年3月18日

WordPress nginx环境下开启多站点

摘要: 在wp-config.php插入 进入管理页面安装网络,子目录模式按提示再在wp-config.php插入 安装插件Nginx Helper,启用Nginx Map 会生成类似/home/wwwroot/www.domain.com/wp-content/uploads/nginx-helper/m 阅读全文

posted @ 2016-03-18 14:13 J4s0n 阅读(1505) 评论(0) 推荐(0) 编辑

2016年2月25日

php DOMDocument 递归 格式化缩进HTML文档

摘要: function format(\DOMNode $node, $treeIndex = 0) { //不格式化的标签 if (in_array($node->nodeName, ['title', 'p', 'span', 'li'])) return; if ($node->hasChildNodes()) { $treeIndex++... 阅读全文

posted @ 2016-02-25 20:09 J4s0n 阅读(707) 评论(0) 推荐(0) 编辑

导航