Giter Site home page Giter Site logo

pysunday / sdenv Goto Github PK

View Code? Open in Web Editor NEW
263.0 263.0 128.0 1.7 MB

sdenv补环境框架,完美过瑞数vmp理论通杀,配合瑞数vmp纯算法逆向项目(rs-reverse)更好学习原理,商标网更新后在线样例失效,可尝试使用其它网站试验(不保证有效)

Home Page: https://github.com/pysunday/sdenv

License: BSD 3-Clause "New" or "Revised" License

JavaScript 76.52% C++ 8.07% Python 0.57% HTML 14.84%
sdenv

sdenv's Introduction

Downloads Supported Versions Contributors

pysunday

官方文档PySunday

安装

pysunday已在pypi上发布

安装:python3 -m pip install pysunday

卸载:python3 -m pip uninstall pysunday

更新:python3 -m pip install --upgrade pysunday

安装成功后需要执行python3 -c '__import__("sunday.core.init")'让sunday自动检查并初始化执行环境, 暂时只支持zshbash的环境初始化

或者手动修改shell的rc文件,添加:

export SUNDAY_ROOT=~/.sunday
export PATH=$SUNDAY_ROOT/bin:$PATH

sunday支持及未来支持

[x] 敏捷工具核心库
[x] 插件化
[x] 日志系统集成
[x] 持久化登录态
[x] 开发环境代理
[x] 系统PAC支持
[x] 列表打印
[x] 多线程运行
[x] 密文加解密支持
[X] 前端辅助开发工具
[ ] LSP多语言支持
[ ] 开发环境配置
[ ] UI自动化测试工具
[ ] 文档同步wiki
[ ] 其它功能...

插件开发

插件主要指工具插件, 其它配套支持登录插件.

如A开发了一个网站的登录插件, 此后B和C可基于该登录插件开发工具插件

插件必须包含package.json的描述文件, 该文件配置如下:

  1. name: 工具名称
  2. type: login(登录)/tools(工具)
  3. depend: 程序依赖,依赖包git地址的集合
  4. keywords: 关键词
  5. author: 作者

公共配置文件

新建文件$SUNDAY_ROOT/config.ini

配置格式如下:

# config.ini
[NAME1]
key1 = value
key2 = value

[NAME2]
key1 = value
key2 = value

LOGGING

控制日志输出

key: level

控制程序日志输出级别, 默认级别为ERROR, 及只输出报错日志

key: format

日志输出格式控制, 本人使用格式: format = %%(blue)s[%%(asctime)s.%%(msecs)-3d] %%(log_color)s%%(levelname)-7s: %%(purple)s<%%(name)s> %%(log_color)s%%(message)s

PROXY

代理配置, 未设置时, 程序中的请求根据网络配置走系统的pac代理文件, 否则当设置了值后程序中的网络请求不走pac仅走配置的代理

key: proxy

配置程序中的请求是否走代理, 代理配置格式如proxy = 127.0.0.1:8888

CRYPTO

加密程序相关配置

key=str

key为加密用的密钥, 默认是HOWDUUDU, 可自行修改增加密码安全性

GIT

GIT相关配置, 如插件安装来源

base: git_url_base

配置git地址,当安装的插件或者依赖中的插件不存在git地址则使用该地址

内置命令

sunday_install

用于安装sunday插件

uusage: sunday_install [-v] [-h] [--giturl GIT_URL_BASE] [-l] [-N] [MODULE_URLS) [MODULE_URL(S ...]]

安装sunday模块

Positionals:
  MODULE_URL(S)          安装模块的本地模块路径或者仓库名称, 分支请用#字符拼接

Optional:
  -v, --version          当前程序版本
  -h, --help             打印帮助说明
  --giturl GIT_URL_BASE  git元地址, 取配置中的GIT.base字段,未配置则默认为ssh://[email protected]
  -l, --list             打印所有的已安装安装
  -N, --notdepend        是否跳过依赖安装,如果安装本地模块,且依赖的模块也是本地安装则可设置为不安装依赖

使用案例:
    sunday_install sunday/name1.git
    sunday_install https://website.com/sunday/name1.git https://website.com/sunday/name2.git
    sunday_install --giturl https://website.com sunday/name1.git https://website.com/sunday/name2.git sunday/name3.git https://website.com/sunday/name4.git
    sunday_install /path/to/package

插件收录

查看官方文档插件列表

sdenv's People

Contributors

pysunday avatar zhenxianluo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

sdenv's Issues

求解

windows上运行正常,放到服务器上报错build/Release/documentAll.node: invalid ELF header。好像是架构的问题,这个要怎么解决呀

Docker Linux 环境下运行报错

在Docker中的Linux环境下运行出现错误,但安装sdenv本身已经成功

dockerfile

FROM nikolaik/python-nodejs:python3.12-nodejs22

# 把系统源改为清华源
# 安装node-gyp所需要的依赖项
RUN sed -i 's|http://deb.debian.org/debian|https://mirrors.tuna.tsinghua.edu.cn/debian|g' /etc/apt/sources.list.d/debian.sources && \
    sed -i 's|http://security.debian.org/debian-security|https://mirrors.tuna.tsinghua.edu.cn/debian-security|g' /etc/apt/sources.list.d/debian.sources && \
    apt-get update && apt-get install -y \
    apt-transport-https \
    ca-certificates \
    gcc \
    g++ \
    libcairo2-dev \
    libpango1.0-dev \
    libjpeg-dev \
    libgif-dev \
    libpng-dev \
    && npm install -g node-gyp

# 创建应用目录
WORKDIR /app

# 复制文件
COPY ./js ./js/
COPY ./src ./src
COPY ./requirements.lock ./

# 安装 Python 依赖
RUN sed -i '/^-e file:.*/d' requirements.lock && \
    PYTHONDONTWRITEBYTECODE=1 pip install --no-cache-dir -r requirements.lock -i https://pypi.tuna.tsinghua.edu.cn/simple/

# 安装js依赖
RUN cd js && npm i && cd ..

# 设置容器入口点
ENTRYPOINT ["python", "-m", "src"]

下面是运行时的报错信息:

ERROR sdenv - Error: Not implemented: HTMLCanvasElement.prototype.getContext (without installing the canvas npm package)
    at module.exports (/app/js/node_modules/sdenv-jsdom/lib/jsdom/browser/not-implemented.js:9:17)
    at HTMLCanvasElementImpl.getContext (/app/js/node_modules/sdenv-jsdom/lib/jsdom/living/nodes/HTMLCanvasElement-impl.js:42:5)
    at HTMLCanvasElement.getContext (/app/js/node_modules/sdenv-jsdom/lib/jsdom/living/generated/HTMLCanvasElement.js:131:58)
    at evalmachine.<anonymous>:1:107447
    at evalmachine.<anonymous>:1:179703
    at evalmachine.<anonymous>:1:179743
    at Script.runInContext (node:vm:148:12)
    at main (/app/js/get_gett_token.js:15:24)
    at Object.<anonymous> (/app/js/get_gett_token.js:27:1)
    at Module._compile (node:internal/modules/cjs/loader:1434:14) undefined
(node:118) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
node:internal/modules/cjs/loader:1544
  return process.dlopen(module, path.toNamespacedPath(filename));
                 ^

Error: /app/js/node_modules/sdenv/build/Release/documentAll.node: invalid ELF header
    at Module._extensions..node (node:internal/modules/cjs/loader:1544:18)
    at Module.load (node:internal/modules/cjs/loader:1249:32)
    at Module._load (node:internal/modules/cjs/loader:1065:12)
    at Module.require (node:internal/modules/cjs/loader:1271:19)
    at require (node:internal/modules/helpers:123:16)
    at Object.<anonymous> (/app/js/node_modules/sdenv/browser/chrome/document.js:1:24)
    at Module._compile (node:internal/modules/cjs/loader:1434:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1518:10)
    at Module.load (node:internal/modules/cjs/loader:1249:32)
    at Module._load (node:internal/modules/cjs/loader:1065:12) {
  code: 'ERR_DLOPEN_FAILED'
}

本地模式怎么吐出js使用了哪些环境

作者你好,我看了使用文档,发现这好像是魔改了jsdom用来执行js的框架,能否在执行过程打印出JavaScript代码里Get和Set了哪些环境。

全局搜索了项目只在代理模式的示例代码里看到了getLog和setLog的配置,是只有代理模式支持吗

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.