python27下载库

  • 问题:pycryptodome ≥ 3.19 在源码安装时,会尝试编译 C 扩展,而 Python 2.7 在 Windows 上只能用 Visual C++ 9.0(=VS2008) 的编译环境。你的系统里没有装 VS2008,于是 setuptools 直接报错退出。
    • 解决:
      直接装旧版 whl(推荐,30 秒搞定)
      打开https://github.com/Legrandin/pycryptodome/releases
      找到 3.18.0 及之前的版本,挑对应位数的 whl,例如
      pycryptodome-3.18.0-cp27-cp27m-win_amd64.whl(64 位)下载后本地安装
      bash
pip install pycryptodome-3.18.0-cp27-cp27m-win_amd64.whl

Win11和Win10家庭版添加组策略gpedit.msc

@echo off

pushd "%~dp0"

dir /b C:\Windows\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientExtensions-Package~3*.mum >List.txt

dir /b C:\Windows\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientTools-Package~3*.mum >>List.txt
for /f %%i in ('findstr /i . List.txt 2^>nul') do dism /online /norestart /add-package:"C:\Windows\servicing\Packages\%%i"


pause
  • 改后缀.cmd运行,重启

关闭window安全中心

https://blog.csdn.net/weixin_42119542/article/details/125385103

yaki

用途:ctf web
下载官网:https://yaklang.com/
使用文档:https://yaklang.io/products/intro/

alt text

QRresearch

用途:ctf misc
下载地址:https://wwws.lanzouy.com/iRLUn11jc12h

mysql

IDA

  • 现在更新到9.2了

ida mcp

uv下载

在 Windows 上安装
  • 使用 Winget:
winget install uv
  • 或者使用官方安装脚本:
irm https://astral.sh/uv/install.ps1 | iex
  • 安装完成后,验证安装是否成功:
uv --version

输出内容类似如下,表明安装成功:

uv 0.8.14 (Homebrew 2025-08-28)
管理 Python 版本

uv 可以轻松管理多个 Python 版本,无需额外安装 pyenv 等工具。
查看可用的 Python 版本:

uv python list

安装特定版本的 Python:

# 安装最新的 Python 3.12
uv python install 3.12

# 安装特定版本
uv python install 3.11.6

# 安装 PyPy 版本
uv python install pypy3.10

设置全局默认 Python 版本:

uv python default 3.12
管理虚拟环境

创建并激活虚拟环境:

# 创建名为 .venv 的虚拟环境(默认)
uv venv

# 激活环境(macOS/Linux)
source .venv/bin/activate

# 激活环境(Windows)
.venv\Scripts\activate

在项目中指定 Python 版本:

# 为当前项目固定 Python 3.11
uv python pin 3.11

这会创建 .python-version 文件,标识项目所需的 Python 版本。

  • 不大好用我现在用anaconda
包管理

安装包:

# 安装最新版本
uv pip install requests

# 安装特定版本
uv pip install requests==2.31.0

# 从 requirements.txt 安装
uv pip install -r requirements.txt

安装包到开发环境:

uv pip install --dev pytest

升级包:

uv pip upgrade requests

卸载包:

uv pip uninstall requests

导出依赖:

# 导出当前环境的依赖
uv pip freeze > requirements.txt

# 导出生产环境依赖(排除开发依赖)
uv pip freeze --production > requirements.txt
  • 没用过这一块,纯存档
项目管理

uv 支持 pyproject.toml 格式的项目管理,这是现代 Python 项目的标准配置文件。
初始化一个新项目:

uv init my_project
cd my_project

这会创建基本的项目结构和 pyproject.toml 文件。
安装项目的依赖:

uv sync

这个命令会根据 pyproject.toml 和 requirements.txt 安装所有依赖,类似于 pip install -e . 但更高效。

说明:
uv sync 是一个依赖管理命令,它的作用类似于您可能更熟悉的 pip install -r requirements.txt,但更快、更强大、更可靠。
您可以把它理解为:“一键安装这个项目正常运行所需的所有第三方软件包(依赖库)”。
uv sync 如果安装太慢,可以设置国内镜像源 https://pypi.tuna.tsinghua.edu.cn/simple:
在项目根目录的 pyproject.toml 文件 [tool.uv] 处设置 index-url:

[tool.uv]
index-url = "https://pypi.tuna.tsinghua.edu.cn/simple"
优势
  • 速度极快:由于使用 Rust 编写,uv 的性能远超 pip 和其他包管理工具,安装依赖的速度可以提升 10-100 倍。
  • 功能集成:集成语法分析、依赖解析、包安装、环境管理和 Python 版本管理于一体,无需再安装和学习多个工具。
  • 确定性构建:uv 会生成 uv.lock 文件,确保在任何环境中都能安装完全相同的依赖版本,避免 “在我机器上能运行” 的问题。
  • 与现有工具兼容:uv 可以处理 requirements.txt 和 pyproject.toml,可以无缝替代现有工作流中的 pip。
迁移

如果你正在使用其他工具,可以轻松迁移到 uv:
对于使用 pip + virtualenv 的项目:

# 创建并激活 uv 虚拟环境
uv venv
source .venv/bin/activate

# 安装依赖
uv pip install -r requirements.txt

对于使用 pip-tools 的项目:

uv pip compile requirements.in -o requirements.txt
uv pip sync

对于使用 poetry 或 pdm 的项目:

# 直接使用现有的 pyproject.toml
uv sync

burpsuite+chrome

python23共存【前期anaconda使用不惯的替代方法,但后续使用不佳,纯存档】

  • pip23共存
    • 报错Fatal error in launcher: Unable to create process using ‘“E:\python\python.exe” “E:\python\Scripts\pip.exe” list’: ???
# Python2 安装:
python2 -m pip install XXX
# Python3 安装
python3 -m pip install XXX

cipher

下面方法属于前期anaconda用不惯的替代方法

  • 所有命令中ciphey用下方文字代替
e:\ciphey-venv38\Scripts\ciphey.exe
  • e:\ciphey-venv38\Scripts\ciphey.exe -t ''

conda虚拟3.8python环境

(python38) A:\ctftool\编码解码\ciphey>ciphey --help
Usage: ciphey [OPTIONS] [TEXT_STDIN]

Ciphey - Automated Decryption Tool

Documentation: https://github.com/Ciphey/Ciphey/wiki

Discord (support here, we're online most of the day):
https://discord.ciphey.online/

GitHub: https://github.com/ciphey/ciphey

Ciphey is an automated decryption tool using smart artificial intelligence
and natural language processing. Input encrypted text, get the decrypted
text back.

Examples:

Basic Usage: ciphey -t "aGVsbG8gbXkgbmFtZSBpcyBiZWU="

Options:
-t, --text TEXT The ciphertext you want to decrypt.
-q, --quiet Decrease verbosity
-g, --greppable Only print the answer (useful for grep)
-v, --verbose
-C, --checker TEXT Use the given checker
-c, --config TEXT Uses the given config file. Defaults to
appdirs.user_config_dir('ciphey',
'ciphey')/'config.yml'

-w, --wordlist TEXT Uses the given wordlist
-p, --param TEXT Passes a parameter to the language checker
-l, --list-params BOOLEAN List the parameters of the selected module
--searcher TEXT Select the searching algorithm to use
-b, --bytes Forces ciphey to use binary mode for the input
--default-dist TEXT Sets the default character/byte distribution
-m, --module PATH Adds a module from the given path
-A, --appdirs Print the location of where Ciphey wants the
settings file to be

-f, --file FILENAME
--help Show this message and exit.

dig

conda命令

  1. 创建(新建)虚拟环境
conda create -n 环境名称 python=3.10

常用可选项

  • 同时装包:conda create -n tf2 python=3.10 tensorflow=2.16
  • 指定路径:conda create -p D:\envs\myenv python=3.10
  1. 查看已有环境列表
conda env list
# 或
conda info --envs
# 简写
conda info -e
  1. 激活/切换环境
conda activate 环境名称
  1. 删除环境
conda remove -n 环境名称 --all
  1. 克隆环境
conda create -n 新名称 --clone 旧名称

记住:

  • 创建和删除用的是 -n(或 --name),列出环境用 conda env list / conda info -e