elecv2 / elecv2p Goto Github PK
View Code? Open in Web Editor NEW一款基于 NodeJS,可通过 JS 修改网络请求,以及定时运行脚本或 SHELL 指令的网络工具。
Home Page: https://elecv2p.onrender.com
一款基于 NodeJS,可通过 JS 修改网络请求,以及定时运行脚本或 SHELL 指令的网络工具。
Home Page: https://elecv2p.onrender.com
比如我使用dropbox多台电脑同步,在一台关闭的时候使用另一台就不用重复设定脚本和cookie了
感谢楼主~
运行脚本 https://raw.githubusercontent.com/nzw9314/QuantumultX/master/Task/jd_fruit.js 时报错:
TypeError: Cannot read property 'code' of undefined
at step (evalmachine.:252:43)
at step.next ()
at Timeout._onTimeout (evalmachine.:596:14)
at listOnTimeout (internal/timers.js:549:17)
at processTimers (internal/timers.js:492:7)
error Command failed with exit code 7.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
可以更方便添加其他有依赖的脚本。
虽然现在也能通过组合操作的方式实现。
但是编辑的话得去文件里修改才可以,也不好控制安装操作。
如题,系统是 Debian ,log信息如下:
yarn run v1.22.5
$ node index.js
[utilsFile error][2021-01-26 11:03:42.575] no list useragent.list
[elecV2Proc error][2021-01-26 11:03:42.625] Caught exception Error: Cannot find module '../script/runJSFile'
Require stack:
[utilsFeed notify][2020-12-11 10:15:16.356]: bark notify: 中青看点 获取Cookie: 成功🎉 a empty message.
没有任何通知内容。
[AnyProxy Log][2020-12-11 10:15:16]: received request to: POST kd.youth.cn/TaskCenter/sign
[AnyProxy Log][2020-12-11 10:15:16]: received request to: POST kd.youth.cn/TaskCenter/sign
[AnyProxy Log][2020-12-11 10:15:16]: received request to: POST kd.youth.cn/TaskCenter/sign
[runJSFile notify][2020-12-11 10:15:16.701]: run youth.js from rule
[youth.js notify][2020-12-11 10:15:16.716]: 中青看点 获取阅读请求: 成功🎉
[utilsFeed notify][2020-12-11 10:15:16.717]: bark notify: 中青看点 获取阅读请求: 成功🎉 a empty message.
没有任何通知内容。
[runJSFile notify][2020-12-11 10:15:16.732]: run youth.js from rule
[youth.js notify][2020-12-11 10:15:16.747]: 中青看点 获取Cookie: 成功🎉
[utilsFeed notify][2020-12-11 10:15:16.747]: bark notify: 中青看点 获取Cookie: 成功🎉 a empty message.
没有任何通知内容。
[AnyProxy Log][2020-12-11 10:15:16]: received request to: POST kd.youth.cn/TaskCenter/sign
[runJSFile notify][2020-12-11 10:15:16.897]: run youth.js from rule
[youth.js notify][2020-12-11 10:15:16.912]: 中青看点 获取阅读请求: 成功🎉
[utilsFeed notify][2020-12-11 10:15:16.914]: bark notify: 中青看点 获取阅读请求: 成功🎉 a empty message.
没有任何通知内容。
[AnyProxy ERROR][2020-12-11 10:15:17]: Error: connect ETIMEDOUT 198.18.0.196:80
[AnyProxy ERROR][2020-12-11 10:15:17]: Error: connect ETIMEDOUT 198.18.0.196:80
[AnyProxy ERROR][2020-12-11 10:15:17]: Error: connect ETIMEDOUT 198.18.0.196:80
[AnyProxy ERROR][2020-12-11 10:15:17]: Error: connect ETIMEDOUT 198.18.0.196:80
[AnyProxy ERROR][2020-12-11 10:15:17]: Error: connect ETIMEDOUT 198.18.0.196:80
[AnyProxy ERROR][2020-12-11 10:15:17]: Error: connect ETIMEDOUT 198.18.0.196:80
[AnyProxy ERROR][2020-12-11 10:15:17]: Error: connect ETIMEDOUT 198.18.0.196:80
[AnyProxy ERROR][2020-12-11 10:15:17]: Error: connect ETIMEDOUT 198.18.0.196:80
[AnyProxy ERROR][2020-12-11 10:15:17]: Error: connect ETIMEDOUT 198.18.0.196:80
[AnyProxy ERROR][2020-12-11 10:15:17]: Error: connect ETIMEDOUT 198.18.0.196:80
[AnyProxy ERROR][2020-12-11 10:15:17]: Error: connect ETIMEDOUT 198.18.0.196:80
[AnyProxy ERROR][2020-12-11 10:15:17]: Error: connect ETIMEDOUT 198.18.0.196:80
[AnyProxy ERROR][2020-12-11 10:15:17]: Error: connect ETIMEDOUT 198.18.0.196:80
[AnyProxy Log][2020-12-11 10:15:18]: received request to: POST kd.youth.cn/TaskCenter/sign
[AnyProxy Log][2020-12-11 10:15:18]: received request to: POST kd.youth.cn/TaskCenter/sign
[AnyProxy Log][2020-12-11 10:15:18]: received request to: POST kd.youth.cn/TaskCenter/sign
[AnyProxy Log][2020-12-11 10:15:18]: received request to: POST kd.youth.cn/TaskCenter/sign
[AnyProxy Log][2020-12-11 10:15:18]: received request to: POST kd.youth.cn/TaskCenter/sign
[AnyProxy Log][2020-12-11 10:15:18]: received request to: POST kd.youth.cn/TaskCenter/sign
[AnyProxy Log][2020-12-11 10:15:18]: received request to: POST kd.youth.cn/TaskCenter/sign
[AnyProxy Log][2020-12-11 10:15:18]: received request to: POST kd.youth.cn/TaskCenter/sign
[AnyProxy Log][2020-12-11 10:15:18]: received request to: POST kd.youth.cn/TaskCenter/sign
[AnyProxy Log][2020-12-11 10:15:18]: received request to: POST kd.youth.cn/TaskCenter/sign
[AnyProxy Log][2020-12-11 10:15:18]: received request to: POST kd.youth.cn/TaskCenter/sign
[AnyProxy Log][2020-12-11 10:15:18]: received request to: POST kd.youth.cn/TaskCenter/sig
建立容器后访问80端口对应的映射端口出现“获取端口数据失败 Error: Network Error”,“websocket 连接数: 已断开”
换了多个映射端口也是一样,请问是不是还要设置什么?
刚装好想用elecV2P抓包,于是就拿百度贴吧cookie开刀,JS是
https://raw.githubusercontent.com/chavyleung/scripts/master/tieba/tieba.cookie.js
推送到本地服务器之后(点眼睛图标还看了下),填写REWRITE规则,却遇到了保存不了改写规则的怪事
tieba.cookie.js 变成了大红色,提示要删除新增的这条规则,原因:无对应规则或js
[wbjsfile info][2021-01-13 20:47:52.918]: ::ffff:192.168.1.161 put js file
[eAxios notify][2021-01-13 20:47:56.917]: download: https://raw.githubusercontent.com/chavyleung/scripts/master/tieba/tieba.cookie.js to: /home/rock/elecV2P/script/JSFile/tieba.cookie.js
[wbjsfile info][2021-01-13 20:48:52.120]: ::ffff:192.168.1.161 get js file tieba.cookie.js
[wblist info][2021-01-13 20:48:58.362]: ::ffff:192.168.1.161 保存 rewrite 规则列表
[wbjsfile info][2021-01-13 20:49:39.838]: ::ffff:192.168.1.161 get js file tieba.cookie.js
[wbjsfile info][2021-01-13 20:50:13.794]: ::ffff:192.168.1.161 post js file tieba.cookie.js
[wbjsfile notify][2021-01-13 20:50:13.794]: tieba.cookie.js success saved
你好,感谢你提供的优秀项目,请问下能添加一个REPL环境吗?
目前使用Android上的Termux搭建了一个平台跑elecV2P,git clone整个项目到/sdcard/Github/Nodejs/
文件夹下,wifi代理设置为手动127.0.0.1:8001
,./anyproxy/certificate
下的证书已经复制到/sdcard/Github/Nodejs/elecV2P/rootCA/
文件夹下,同时rootCA.crt
已经安装到手机系统中。设置已经按照教程做好了,使用Nodejs方式运行(yarn start),因主页面端口80无法访问,自行修改了config.js
配置文件中的webst: 8080
。测试能够使用Chrome Canary浏览器正常访问后台管理页面(以下简称webui)、代理请求查看端口8002(以下简称AnyProxy)
尝试使用elecV2P抓取企鹅阅读的cookie,webui中rewrite已按照脚本说明设置好,且对应的js能够正常访问。mitm中mitm host也已设置正确,cfilter中分流列表也做了设置。
访问QQ app中企鹅阅读小程序后,返回AnyProxy可以看到抓包情况
目前出现以下几个问题,请开发者解答一下
1.AnyProxy中,抓包的网址code全部为200,是否正常?
2.AnyProxy中,选择查看抓取的url后,只有第一次可以在网页的右面看到详细信息,之后不管怎么重启elecV2P服务都不会再显示了,这个情况是什么原因?
3.已经完全按照TG频道中的教程做的,为什么cookie的解密信息依旧看不到?(rootCA.crt证书已安装,mitm中解密域名也设置了)
4.Termux日志中并不会出现类似抓取xxx cookie成功的提示
恳请开发者能够解答一下,非常希望在Android上通过Termux搭建平台使用上elec2V2P,通过elec2V2P抓包,非常方便
请问怎样增加代理认证模块?
这里有说明:alibaba/anyproxy#137
请问该怎样操作
其他会打开新页面的交互方式似乎都会这样。
[softup...js info][2021-04-09 21:28:30.855] 开始获取最新版本号...
[softup...js info][2021-04-09 21:28:31.459] 当前版本: 3.2.8 最新版本: 3.2.9
[softup...js info][2021-04-09 21:28:31.459] 检测到有新的版本: 3.2.9
[softup...js info][2021-04-09 21:28:31.459] 向 webhook 端口发送保存当前任务列表的指令
[softup...js info][2021-04-09 21:28:31.460] 开始获取更新文件列表
[softup...js info][2021-04-09 21:28:31.466] You don't have permission to access.
IP: 127.0.0.1 is recorded.
Powered BY elecV2P: https://github.com/elecV2/elecV2P
[softu...js error][2021-04-09 21:28:36.462] elecV2P 软更新失败 timeout of 5000ms exceeded
[elecV2Proc error][2020-12-10 15:42:39.032]: Caught exception line 741:12 error: notify.sendNotify is not a function
/usr/local/app/node_modules/brotli/build/encode.js:3
1<process.argv.length?process.argv[1].replace(/\/g,"/"):"unknown-program");b.arguments=process.argv.slice(2);"undefined"!==typeof module&&(module.exports=b);process.on("uncaughtException",function(a){if(!(a instanceof y))throw a;});b.inspect=function(){return"[Emscripten Module object]"}}else if(x)b.print||(b.print=print),"undefined"!=typeof printErr&&(b.printErr=printErr),b.read="undefined"!=typeof read?read:function(){throw"no read() available (jsc?)";},b.readBinary=function(a){if("function"===
^
TypeError: notify.sendNotify is not a function
at showmsg (evalmachine.:741:12)
at Timeout._onTimeout (evalmachine.:283:15)
at listOnTimeout (node:internal/timers:556:17)
at processTimers (node:internal/timers:499:7)
error Command failed with exit code 7.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
yarn run v1.22.5
$ node index.js
大佬您好,之前有个版本好像可以直接导入QuanX的订阅地址,比如https://github.com/nzw9314/QuantumultX/raw/master/Get_Cookie_Remote.conf
现在不行了。
另外,希望能够考虑以后支持TASK远程订阅
[runJSFile notify][2020-12-08 21:45:15.443]: run qqreads.js from task
[qqreads.js info][2020-12-08 21:45:15.454]:
🔔企鹅读书, 开始!
[schedule info][2020-12-08 21:45:15.464]: schedule task: test finished
/usr/local/app/node_modules/brotli/build/encode.js:3
1<process.argv.length?process.argv[1].replace(/\/g,"/"):"unknown-program");b.arguments=process.argv.slice(2);"undefined"!==typeof module&&(module.exports=b);process.on("uncaughtException",function(a){if(!(a instanceof y))throw a;});b.inspect=function(){return"[Emscripten Module object]"}}else if(x)b.print||(b.print=print),"undefined"!=typeof printErr&&(b.printErr=printErr),b.read="undefined"!=typeof read?read:function(){throw"no read() available (jsc?)";},b.readBinary=function(a){if("function"===
^
TypeError: Object.key is not a function
at Object.body (/usr/local/app/script/context.js:22:34)
at Object.uest (/usr/local/app/script/context.js:38:18)
at surgeContext.surgeRequest (/usr/local/app/script/context.js:88:20)
at Object.post (/usr/local/app/script/context.js:131:12)
at Object.post (evalmachine.:706:5235)
at evalmachine.:332:7
at new Promise ()
at qqreadtrack (evalmachine.:324:10)
at Timeout._onTimeout (evalmachine.:230:21)
at listOnTimeout (node:internal/timers:556:17)
at processTimers (node:internal/timers:499:7)
error Command failed with exit code 7.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
这种错误改怎么解决呢?
如题
我是N1盒子openwrt里面搞的 但就是访问不了付费求大佬指点
在task定时任务界面
修改了任务,点击保存当前任务列表,保存后刷新又复原成原来未修改前的了。
但是重启容器,又会变成修改后的。
2021.1.19更新镜像后还是有这个问题。
因为这个涉及到自建服务,这样地址前缀就是个人设置的了
有个挂机脚本, 会每隔几秒输出日志, 我在js文件开头加入// @grant silent ;一样会提示
task 会脚本出现
[jd_joy...js info][2020/12/3 08:00:01]:
🔔宠汪汪积分兑换奖品, 开始!
[jd_joy...js info][2020/12/3 08:00:01]:
开始【京东账号1】脱衣服
[jd_jo...js error][2020/12/3 08:00:07]: $httpClient {"url":"https://jdjoy.jd.com/gift/getHomeInfo","headers":{"Host":"jdjoy.jd.com","Cookie":"脱敏","reqSource":"h5","Connection":"keep-alive","Accept":"*/*","User-Agent":"jdapp;iPhone;9.2.5;14.2;%E4%BA%AC%E4%B8%9C/9.2.5 CFNetwork/1206 Darwin/20.1.0","Referer":"https://jdjoy.jd.com/pet/index","Accept-Language":"zh-cn","Accept-Encoding":"gzip, deflate, br","Content-Type":"application/x-www-form-urlencoded"}} timeout of 5000ms exceeded
[jd_joy...js info][2020/12/3 08:00:07]: "request config error"
[jd_joy...js info][2020/12/3 08:00:07]: 宠汪汪积分兑换奖品 API请求失败,请检查网路重试
[jd_joy...js info][2020/12/3 08:00:07]: 宠汪汪积分兑换奖品getExchangeRewards异常,undefined
[jd_joy...js info][2020/12/3 08:00:07]:
开始【京东账号2】脱裤子
[jd_joy...js info][2020/12/3 08:00:10]: 当前积分 20243
[jd_joy...js info][2020/12/3 08:00:10]: 宠物等级 16
[jd_joy...js info][2020/12/3 08:00:10]: 京东昵称 幾米orz
[jd_joy...js info][2020/12/3 08:00:10]: 当前京豆库存:127
[jd_joy...js info][2020/12/3 08:00:10]: saleInfoId:192
[jd_joy...js info][2020/12/3 08:00:10]: 当前账户积分:20243
当前京豆库存:127
满足兑换条件,开始为您兑换京豆
[jd_joy...js info][2020/12/3 08:00:11]: 兑换500成功,【宠物等级】16
【消耗积分】8000个
【剩余积分】12243个
[jd_j...js notify][2020/12/3 08:00:11]: 宠汪汪积分兑换奖品 兑换500京豆成功 【京东账号2】脱裤子
【宠物等级】16
【积分详情】消耗积分 8000, 剩余积分 12243
[jd_joy...js info][2020/12/3 08:00:11]:
==============📣系统通知📣==============
宠汪汪积分兑换奖品
兑换500京豆成功
【京东账号2】脱裤子
【宠物等级】16
【积分详情】消耗积分 8000, 剩余积分 12243
[jd_joy...js info][2020/12/3 08:00:11]:
🔔宠汪汪积分兑换奖品, 结束! 🕛 9.586 秒
rules 规则的脚本调用也会出现
[utilsFile error][2020/12/3 09:53:56]: store key dd_autoCharge no exist.
[utilsFile error][2020/12/3 09:53:56]: store key dd_notifyTime no exist.
[utilsFile error][2020/12/3 09:53:56]: store key jx_showLog no exist.
[utilsFile error][2020/12/3 09:53:56]: store key jx_autoCharge no exist.
[utilsFile error][2020/12/3 09:53:56]: store key jx_notifyTime no exist.
[boxjs...js error][2020/12/3 09:53:59]: Error: Script execution timed out after 5000ms
at Script.runInContext (node:vm:143:18)
at Script.runInNewContext (node:vm:148:17)
at Object.runInNewContext (node:vm:303:38)
at runJS (/usr/local/app/script/runJSFile.js:118:23)
at runJSFile (/usr/local/app/script/runJSFile.js:174:10)
at requestDetail.requestOptions.headers.User-Agent (/usr/local/app/script/rule.js:231:21)
at new Promise ()
at Object.beforeSendRequest (/usr/local/app/script/rule.js:230:14)
at beforeSendRequest.next ()
at onFulfilled (/usr/local/app/node_modules/co/index.js:65:19)
[utilsFile error][2020/12/3 09:39:20]: no list useragent.list
[utilsFile error][2020/12/3 09:39:22]: no list rewrite.list
[utilsFile error][2020/12/3 09:39:22]: no list useragent.list
[utilsFeed error][2020/12/3 09:39:28]: Client network socket disconnected before secure TLS connection was established
[utilsFile error][2020/12/3 10:17:15]: no list useragent.list
[utilsFile error][2020/12/3 10:17:18]: no list rewrite.list
[utilsFile error][2020/12/3 10:17:18]: no list useragent.list
[utilsFile error][2020/12/3 10:36:41]: no list useragent.list
不知道 eAxios 相关设置 的 TIMEOUT: 5000 是否跟这个 5000有关联?
我修改这个5000为其他值(20000)也没用。依旧报 5000ms 错误。
rules 规则的脚本一般不会出现超时的情况吧?
限制可访问此后台管理页面的 IP打开后日志不能查看,
我使用http://xxxxxxxx/?token=xxxxxx可以正常访问V2P,但是日志页面不行,望修复下。
2.8.5还是有过半个小时会所有脚本重新启动的问题
多账号的脚本,有时候只能收到其中一个账号的通知。查看日志,丢失的账号通知,是正常的。
但是手机没有正确收到推送。
日志错误如下:
[elecV2Proc error][2021-02-25 16:58:48.832] Caught exception TypeError: req.url.replaceAll is not a function
at custPush (D:\V2P\utils\feed.js:161:23)
at feedPush (D:\V2P\utils\feed.js:228:5)
at Object.push (D:\V2P\utils\feed.js:235:5)
at feedAddItem (D:\V2P\utils\feed.js:259:17)
at Task.start (D:\V2P\func\task.js:26:7)
at D:\V2P\func\task.js:65:25
at Object. (D:\V2P\func\task.js:68:2)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
感谢大佬辛苦付出,软件很好用,但是因为手机是安卓的,没有bark,sever酱常常没有响应,自从换了企业微信以来,非常稳定且样式好看,请大佬空闲之余,增加企业微信通知接口。
宿主机能够下载https://jdsharedresourcescdn.azureedge.net/jdresource/jd_xtg.js
但是v2p里面不能下载,进入容器,无法解析jdsharedresourcescdn.azureedge.net,应该是dns解析出现问题,将resolv.conf里面注释nameserver 127.0.0.11后,添加8.8.8.8,能够解析和下载,希望解决这个网络问题。
好像都在跟圈X和S什么什么的。研究了下,实在是没弄明白。
教程记得加二维码!😂
如题,n1,docker安装,换了好几个脚本都出现这个情况
由于拷贝任务繁多,一个一个输入特别慢,,所以我想给web前端页面添加一个按批量导入task的功能,您方便的话可以开源下前端代码不呢
大佬 可以给Task 任务添加两个功能按钮吗:一个全部停止任务按钮, 一个全部删除任务按钮。 只是建议 如果不好实现就算了。
非常感谢作者开发的工具
现在有这个小问题,比如现在容器安装的py环境和依赖库,下次更新镜像,更新容器后py环境和依赖是不是就会没有。那能不能请容器内改成自动同步github的代码。
从订阅链接中添加任务时,使用替换功能,点击添加替换后,UI界面运行状态会变成停止,但实际还在运行,刷新后显示正在运行状态
ERROR: Version in "./docker-compose.yaml" is unsupported. You might be seeing this error because you're using the wrong Compose file version. Either specify a supported version (e.g "2.2" or "3.3") and place your service definitions under the `services` key, or omit the `version` key and place your service definitions at the root of the file to use version 1.
For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/
将docker-compose.yaml 里面version的 3.7
改成 3
解决了
不懂是不是docker-compose 版本低的情况情况引起的
能否在TASK界面增加一个远程自动更新JS到本地的功能?
如题可以根据时间表达式来定义什么时候更新,或者在运行前更新。
大佬,本来想提交个issue,后来发现是我自己的问题,issue不会删除,打扰了
首先感谢作者的无私奉献。
我一直把这个项目当成电脑版本的quanx来使用,主要是运行一些定时js脚本任务。
不知道能否接入boxjs
实现自动抓取部分cookie
boxjs项目地址:https://github.com/chavyleung/boxjs-doc
因为是行外人,不太清楚是否有可实现性
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.