摘要: re.sub('\x1b.*?m', '', s) https://stackoverflow.com/questions/1833873/python-regex-escape-characters 阅读全文
posted @ 2021-11-27 13:37 总得前行 阅读(2017) 评论(0) 推荐(0) 编辑
摘要: from pprint import pprint import requests host = 'http://127.0.0.1' user = { 'username': 'showdoc', 'password':'123456' } s = requests.Session() # => 阅读全文
posted @ 2021-11-10 21:48 总得前行 阅读(111) 评论(0) 推荐(0) 编辑
摘要: csdn里参考的很多在rc.d和rc.local文件里添加命令的形式不成功,最后在stackoverflow里找到了答案,就是在docker-compose.yml文件里添加restart标签,其中v2和v3的restart参数不一样 具体看连接 https://stackoverflow.com/ 阅读全文
posted @ 2021-10-13 22:36 总得前行 阅读(936) 评论(0) 推荐(0) 编辑
摘要: python csv模块使用时遇到'gbk' codec can't decode byte 0xaa in position 6713: illegal multibyte sequence 或者 UnicodeDecodeError: 'utf-8' codec can't decode byt 阅读全文
posted @ 2021-09-26 21:53 总得前行 阅读(170) 评论(0) 推荐(0) 编辑
摘要: soup = BeautifulSoup(html,'html.parser') print(soup.get_text()) 阅读全文
posted @ 2021-09-26 13:01 总得前行 阅读(172) 评论(0) 推荐(0) 编辑
摘要: import docx2txt my_text = docx2txt.process("test.docx") print(my_text) 阅读全文
posted @ 2021-09-24 13:27 总得前行 阅读(548) 评论(0) 推荐(0) 编辑
摘要: wget --content-disposition http://xxxx.com?id=ff80808175791b5101758c1 阅读全文
posted @ 2021-09-23 20:15 总得前行 阅读(399) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/hehigoxqc606/article/details/110391664?utm_medium=distribute.pc_relevant_t0.none-task-blog-2%7Edefault%7EBlogCommendFromMachineL 阅读全文
posted @ 2021-06-14 17:24 总得前行 阅读(581) 评论(0) 推荐(0) 编辑
摘要: api-ms-win-crt-string-l1-1-0.dll丢失解决办法: 下载下面的更新包即可 https://support.microsoft.com/en-us/topic/update-for-universal-c-runtime-in-windows-322bf30f-4735-b 阅读全文
posted @ 2021-06-08 21:17 总得前行 阅读(8236) 评论(0) 推荐(0) 编辑
摘要: 😒et tabstop=4 😒et softtabstop=4 😒et shiftwidth=4 😒et expandtab 😒et number 阅读全文
posted @ 2021-05-28 18:03 总得前行 阅读(37) 评论(0) 推荐(0) 编辑
摘要: 使用当前哦用户执行chmod u+xr,go-rwx ~/.ssh即可 一般来说: 对.ssh目录设置700权限 对id_rsa,authorized_keys文件设置600权限 对id_rsa.pub,known_hosts文件设置644权限 所以,大家要注意权限的设置,权限设置不对的话ssh登陆 阅读全文
posted @ 2021-05-26 15:00 总得前行 阅读(2060) 评论(0) 推荐(0) 编辑
摘要: 执行如下命令即可解锁 cd /etc/ssh chattr -V -ia sshd_config 阅读全文
posted @ 2021-05-18 17:31 总得前行 阅读(873) 评论(0) 推荐(0) 编辑
摘要: Fatal error: Uncaught Error: Call to undefined function load_textdomain() 错误百度 goole bing都没找到解决方案,最后发现是: 安装时候第二步输入数据库信息后,wordpress提示让复制代码到wp-config.ph 阅读全文
posted @ 2021-05-18 14:03 总得前行 阅读(591) 评论(1) 推荐(0) 编辑
摘要: macos中单纯安装mysql_client总是报错,百度几个方法都不行; 后面在mysql官网找到mysql shell 安装包,百度看这个mysql shell是替代mysql client的新工具,直接下载这个使用了; 下载地址: https://dev.mysql.com/downloads 阅读全文
posted @ 2021-05-15 22:24 总得前行 阅读(305) 评论(0) 推荐(0) 编辑
摘要: 创建文件,写入内容 vi ~/.ssh/config #Added lines to fix. Host * IPQoS lowdelay throughput 赋权 chmod 644 ~/.ssh/config 最好在sshd文件中加入 ClientAliveInterval 30 Client 阅读全文
posted @ 2021-04-18 15:05 总得前行 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 在burpsuite插件中原使用的也是官网下载的jython,打开python版本的插件也是可以正常使用的;但是尝试开发插件过程中遇到导入py文件时总是报 Failed to load Python interpreter from Jython JAR file错误,排查后发现使用maven站点的 阅读全文
posted @ 2021-04-11 09:09 总得前行 阅读(1544) 评论(0) 推荐(0) 编辑
摘要: curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py sudo python2 get-pip.py 阅读全文
posted @ 2021-04-09 17:36 总得前行 阅读(1881) 评论(0) 推荐(0) 编辑
摘要: sudo git clone https://github.com/SecureAuthCorp/impacket.git cd impacket/ sudo pip3 install . sudo python3 setup.py install 参考自https://github.com/Leo 阅读全文
posted @ 2021-03-10 10:41 总得前行 阅读(2839) 评论(1) 推荐(1) 编辑
摘要: from concurrent.futures import ThreadPoolExecutor,ProcessPoolExecutor #线程池,进程池 import threading,time def test(arg): print(arg,threading.current_thread 阅读全文
posted @ 2020-12-23 10:38 总得前行 阅读(417) 评论(0) 推荐(0) 编辑
摘要: ####kali中安装docker 每次kali中遇到使用docker时候都发现apt中没有源,不能直接安装,百度来百度去还报错 官网文档https://docs.docker.com/engine/install/debian/安装会报错,索性直接用以前的安装方式了,这儿记录下我前几年保存的做法 阅读全文
posted @ 2020-12-23 09:11 总得前行 阅读(1810) 评论(0) 推荐(0) 编辑