pysunday / sdenv Goto Github PK
View Code? Open in Web Editor NEWsdenv补环境框架,完美过瑞数vmp理论通杀,配合瑞数vmp纯算法逆向项目(rs-reverse)更好学习原理
Home Page: https://github.com/pysunday/sdenv
License: BSD 3-Clause "New" or "Revised" License
sdenv补环境框架,完美过瑞数vmp理论通杀,配合瑞数vmp纯算法逆向项目(rs-reverse)更好学习原理
Home Page: https://github.com/pysunday/sdenv
License: BSD 3-Clause "New" or "Revised" License
在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'
}
作者你好,我看了使用文档,发现这好像是魔改了jsdom用来执行js的框架,能否在执行过程打印出JavaScript代码里Get和Set了哪些环境。
全局搜索了项目只在代理模式的示例代码里看到了getLog和setLog的配置,是只有代理模式支持吗
报错问题: TypeError [ERR_INVALID_ARG_TYPE]: The "paths[0]" argument must be of type string. Received type boolean (false)
// 解决
前往utils目录下找到paths.js文件。将文件中的 / 修改为 \\
就行
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.