Giter Site home page Giter Site logo

pysunday / sdenv Goto Github PK

View Code? Open in Web Editor NEW
191.0 6.0 114.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 Issues

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.