Giter Site home page Giter Site logo

pysunday / sdenv Goto Github PK

View Code? Open in Web Editor NEW
162.0 162.0 105.0 1.69 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

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

sdenv's Issues

本地模式怎么吐出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.