上一页 1 ··· 4 5 6 7 8 9 10 下一页
摘要: FROM python:3.8.10-slim RUN sed -i 's/deb.debian.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list && \ apt-get update && \ apt-get install -y 阅读全文
posted @ 2023-12-15 18:00 干炸小黄鱼 阅读(85) 评论(0) 推荐(0)
摘要: 最近由pycharm切到VScode, 记录一下项目的通用配置; 在项目目录建一个.vscode的文件夹分别创建三个文件 lunch.json python运行配置 settings.json vscode配置 包括代码校验; sftp.json 文件服务器配置, 直接右键上传到服务器 lunch. 阅读全文
posted @ 2023-12-08 19:32 干炸小黄鱼 阅读(331) 评论(0) 推荐(0)
摘要: ` import jieba from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.metrics.pairwise import cosine_similarity templates = [ "分析一下攻 阅读全文
posted @ 2023-11-27 18:52 干炸小黄鱼 阅读(73) 评论(0) 推荐(0)
摘要: pip3安装时提示 ERROR: Could not build wheels for python-ldap, uWSGI, M2Crypto, which is required to install pyproject.toml-based projects ERROR: Could not 阅读全文
posted @ 2023-09-12 16:07 干炸小黄鱼 阅读(1789) 评论(0) 推荐(0)
摘要: wsl 运行一段时间后执行没有反应, 需要重启LxssManager 管理员模式打开 powshell 找到pid, 结束pid ``` >tasklist /svc /fi "services eq LxssManager" 映像名称 PID 服务 svchost.exe 20572 LxssMa 阅读全文
posted @ 2023-09-07 09:45 干炸小黄鱼 阅读(2195) 评论(0) 推荐(0)
摘要: ``` $ sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak $ sudo sed -i 's/security.ubuntu/mirrors.aliyun/g' /etc/apt/sources.list $ sudo sed -i ' 阅读全文
posted @ 2023-09-06 20:06 干炸小黄鱼 阅读(515) 评论(0) 推荐(0)
摘要: 搭建k8s后,执行inspect后 显示hostname 不符合规范, 修改/etc/hostname 后重启, 发现又自动恢复到默认主机名: 查资料后发现腾讯云的配置里,如果重启会重置hostname.修改配置/etc/cloud/cloud.cfg ``` vim /etc/cloud/clou 阅读全文
posted @ 2023-08-28 19:26 干炸小黄鱼 阅读(139) 评论(0) 推荐(0)
摘要: ``` #!/usr/bin/env python # -*- coding: utf-8 -*- import json import os import platform from ctypes import cdll, c_char_p from urllib import parse imp 阅读全文
posted @ 2023-08-28 10:55 干炸小黄鱼 阅读(107) 评论(0) 推荐(0)
摘要: python3调用nmap封装; 外部处理好参数后直接调用; ``` #!/usr/bin/env python # -*- coding: utf-8 -*- """ 代码修改自: https://pypi.org/project/python-nmap/ nmap.py - version an 阅读全文
posted @ 2023-08-28 10:49 干炸小黄鱼 阅读(139) 评论(0) 推荐(0)
摘要: 向木马发出指令后, 如果是cmd命令会有一个黑窗口一闪而灭, 不利于木马隐藏, 需要将`executeHandler`从`handlers.go`拷贝到handlers_windows.go里,核心代码为 `cmd.SysProcAttr = &syscall.SysProcAttr{HideWin 阅读全文
posted @ 2023-08-21 19:24 干炸小黄鱼 阅读(208) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 下一页