chore: sdenv-extend更新到1.2、样例use-proxy文档

This commit is contained in:
rnet 2024-03-12 23:11:30 +08:00
parent a1d2fa275b
commit 7f424dae64
17 changed files with 18482 additions and 7 deletions

1
.gitignore vendored
View File

@ -12,3 +12,4 @@ yarn.lock
*.swp
build/
*.node
*/**/*-7802

View File

@ -123,7 +123,7 @@ const { jsdomFromText, jsdomFromUrl } = require('sdenv/utils/jsdom');
sdenv-extend初始化只执行一次初始化成功后生成的环境对象可以使用`Object.sdenv()`(vm中使用非node)获取。
sdenv-extend具体功能可参考项目内README文档。
sdenv-extend具体功能可参考项目内[README文档](https://github.com/pysunday/sdenv-extend/blob/main/README.md)
## 声明

View File

@ -1 +1,53 @@
该example通过代理请求网站生成cookie作者用于开发使用用户无需关注
## 样例说明
为了模拟浏览器与sdenv运行相同瑞数vmp代码生成一摸一样的cookie的复现方法与源文件。
## 启动代理
该样例需要使用代理工具,推荐代理工具:[sd_proxy](https://github.com/pysunday/tools-proxy),该工具为自研工具,支持网站资源的收集与回放
启动代理回放:`sd_proxy -H 0.0.0.0 -p 3000 -n playback -d pysunday-proxy --log`
## 应用代理
浏览器端需要使用SwitchyOmega配置并应用3000端口转发。
sdenv需要使用jsdomFromUrl方法传入代理配置`proxy: "http://127.0.0.1:3000"`。
## 获取cookie
该example对应的访问链接为`https://wcjs.sbj.cnipa.gov.cn/sgtmi`
假设代理配置完全ok则请求该链接时会返回html内容为文件[pysunday-proxy/wcjs.sbj.cnipa.gov.cn/sgtmi/format](./pysunday-proxy/wcjs.sbj.cnipa.gov.cn/sgtmi/format)可以看到html中存在代码
```javascript
.getHandle('cookie')({
log: false,
setCb: (val) => {
if (val.includes('goN9uW4i0iKzT')) {
cookies.push(val);
if (cookies.length === 3) {
console.log(`第三次cookie值写入${val}`);
debugger;
}
}
}
})
```
其中第三次cookie的值即为最终发起请求的cookie值。
* node端: node中直接执行`node-9229 example/use-proxy/index.js`命令操作符中会打印cookie值后退出
* 浏览器端: 浏览器端需要打开开发面板后再请求网址`https://wcjs.sbj.cnipa.gov.cn/sgtmi`在断点处即可看到cookie值
## 结论
作者电脑系统版本macOS(13.4)
作者浏览器版本Chrome Canary(121.0.6124.0)
作者node和浏览器分别运行后断点处打印的值都为`goN9uW4i0iKzT=0o6uz9peZ4RlIIiCpo6uz9F9f4zZghSX8vcCtuqn0xNaRncrIKsE8SR4aRoGLBGiDlCiw69spB51I78BjEbiyeIPgiMdhjjQvrJQ.7iwYLKrWMPMi0xRa.xN64KvZGbXlPfFz0OaiHM8o.IvfnXEaf0RuNFu5VKDSSevbBeiVFAqzWPD_gZzXwDmJnf6bpaet1yyg2lmCOWCzUre8W52LiD2U95ZxkI2jrAzmfpcdX.V; path=/; expires=Tue, 12 Mar 2024 09:42:17 GMT`
如果您的系统及浏览器与作者一致,那么您可以直接运行该样例复现。
当然,您也可以参考`browser/chrome`目录下的文件内容新建一个browser并将您浏览器的值填如后参考前面方法进行试验如果试验成功请提交您browser代码的pr并写明您操作系统版本及浏览器版本感谢

View File

@ -4,17 +4,20 @@ const browser = require('../../browser/');
const { jsdomFromUrl } = require('../../utils/jsdom');
const [jsdomer, cookieJar] = jsdomFromUrl({
proxy: "http://127.0.0.1:7759",
proxy: "http://127.0.0.1:3000",
})
const baseUrl = "https://wcjs.sbj.cnipa.gov.cn"
async function loadPages() {
const dom = await jsdomer(`${baseUrl}/first`);
const dom = await jsdomer(`${baseUrl}/sgtmi`);
browser(dom.window, 'chrome');
dom.window.onbeforeunload = async (url) => {
const cookies = cookieJar.getCookieStringSync(baseUrl);
logger.debug('cookieJar', cookies);
if (cookies) {
logger.debug('cookieJar', cookies);
}
process.exit();
}
}
loadPages()

View File

@ -0,0 +1,128 @@
{
"url": "wcjs.sbj.cnipa.gov.cn/c5rxzYrjRT2h/cCdzB9ZjDFks.294cc83.js",
"url_full": "https://wcjs.sbj.cnipa.gov.cn/c5rxzYrjRT2h/cCdzB9ZjDFks.294cc83.js",
"params": {
"header_method": "GET"
},
"request": {
"http_version": "HTTP/1.1",
"headers": {
"fields": [
[
"Host",
"wcjs.sbj.cnipa.gov.cn"
],
[
"Connection",
"keep-alive"
],
[
"sec-ch-ua",
"\"Not A(Brand\";v=\"99\", \"Google Chrome\";v=\"121\", \"Chromium\";v=\"121\""
],
[
"sec-ch-ua-mobile",
"?0"
],
[
"User-Agent",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36"
],
[
"sec-ch-ua-platform",
"\"macOS\""
],
[
"Accept",
"*/*"
],
[
"Sec-Fetch-Site",
"same-origin"
],
[
"Sec-Fetch-Mode",
"no-cors"
],
[
"Sec-Fetch-Dest",
"script"
],
[
"Referer",
"https://wcjs.sbj.cnipa.gov.cn/sgtmi"
],
[
"Accept-Encoding",
"gzip, deflate, br, zstd"
],
[
"Accept-Language",
"zh-CN,zh;q=0.9"
],
[
"Cookie",
"goN9uW4i0iKzS=60kT8dOgmxXebqEWQEwYEO4TitVQH8CXD6HwieKtCzgFT2IN.iUVh7khPK0REAwDxhcNBIph3t8pLFf5JvsCPl4q; wcjs_cookie=27005561"
]
]
},
"content": "",
"trailers": null,
"timestamp_start": 1704176297.577336,
"timestamp_end": 1704176297.5777438,
"host": "wcjs.sbj.cnipa.gov.cn",
"port": 443,
"method": "GET",
"scheme": "https",
"authority": "",
"path": "/c5rxzYrjRT2h/cCdzB9ZjDFks.294cc83.js"
},
"response": {
"http_version": "HTTP/1.1",
"headers": {
"fields": [
[
"Date",
"Tue, 02 Jan 2024 06:18:17 GMT"
],
[
"Content-Type",
"text/javascript; charset=UTF-8"
],
[
"Content-Length",
"204872"
],
[
"Connection",
"keep-alive"
],
[
"Last-Modified",
"Fri, 31 Mar 2023 02:45:25 GMT"
],
[
"ETag",
"\"64264945-32048\""
],
[
"Cache-Control",
"max-age=2592000, public"
],
[
"Expires",
"Thu, 01 Feb 2024 06:09:07 GMT"
],
[
"Server",
"NSF"
]
]
},
"trailers": null,
"timestamp_start": 1704176297.717346,
"timestamp_end": 1704176297.858795,
"status_code": 200,
"reason": "OK"
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,116 @@
{
"url": "wcjs.sbj.cnipa.gov.cn/c5rxzYrjRT2h/main.js",
"url_full": "http://wcjs.sbj.cnipa.gov.cn/c5rxzYrjRT2h/main.js",
"params": {
"header_method": "GET"
},
"request": {
"http_version": "HTTP/1.1",
"headers": {
"fields": [
[
"Host",
"wcjs.sbj.cnipa.gov.cn"
],
[
"Proxy-Connection",
"keep-alive"
],
[
"Pragma",
"no-cache"
],
[
"Cache-Control",
"no-cache"
],
[
"User-Agent",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36"
],
[
"Accept",
"*/*"
],
[
"Referer",
"http://wcjs.sbj.cnipa.gov.cn/sgtmi"
],
[
"Accept-Encoding",
"gzip, deflate"
],
[
"Accept-Language",
"zh-CN,zh;q=0.9"
],
[
"Cookie",
"goN9uW4i0iKzS=60mt9j2VtAzOepQp0OsN0Q2NEQgM6PAQMjhDH24jTDj1Xl0nSZHLXijYsDSS3b.L5ICHs3Gv9dsyC80bA_8Fod8a; wcjs_cookie=42402740; JSESSIONID=GYSFb-qD1mCTHM9l8R9ooPcY-K2GvT7rU1cp8DHk; goN9uW4i0iKzT=0hXlJO4Yoh4kWJGtXTBXeUfGclxd1tODA.7U_BlAmU2j4t9NSlzZYhofyFXTPcRLn2DQsNLkZ1yYOBq1a_Dqg4aJg2_nfXLi7O4r2HSYyLJeCSsytr4.q1YL5G2Ybby3injMrJPD.ckQJprlZbqJHN9EM5Hjq2_el30txs0OmKqnf2I9u1W3Zub3jib1HhvM5ptzAGJQ7YGzHv7Mm2jaVBhnbkrEDtyjBpdtD02P4oXHuTDBkVtHtK3pyPPR2DvIw4Jq4pWaKRHJcFu4CHhamsfOWV2hBHbTbuRpijODQlwPJ.XzhEmQSguOMDfPDQo8XsDBrHPO3PuukQlhlEyG0wb8k1PpLamCqo_QFfs1AeCuTa5VMkRqQY9E0SaP0obah"
]
]
},
"content": "",
"trailers": null,
"timestamp_start": 1697703185.255662,
"timestamp_end": 1697703185.256907,
"host": "wcjs.sbj.cnipa.gov.cn",
"port": 80,
"method": "GET",
"scheme": "http",
"authority": "",
"path": "/c5rxzYrjRT2h/main.js"
},
"response": {
"http_version": "HTTP/1.1",
"headers": {
"fields": [
[
"Date",
"Thu, 19 Oct 2023 08:13:05 GMT"
],
[
"Content-Type",
"text/javascript; charset=UTF-8"
],
[
"Transfer-Encoding",
"chunked"
],
[
"Connection",
"keep-alive"
],
[
"Last-Modified",
"Fri, 31 Mar 2023 02:45:25 GMT"
],
[
"ETag",
"W/\"64264945-32048\""
],
[
"Cache-Control",
"max-age=2592000, public"
],
[
"Expires",
"Sat, 18 Nov 2023 08:05:50 GMT"
],
[
"Content-Encoding",
"gzip"
],
[
"Server",
"NSF"
]
]
},
"trailers": null,
"timestamp_start": 1697703185.387576,
"timestamp_end": 1697703185.593629,
"status_code": 200,
"reason": "OK"
}
}

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,116 @@
{
"url": "wcjs.sbj.cnipa.gov.cn/c5rxzYrjRT2h/sdenv.js",
"url_full": "http://wcjs.sbj.cnipa.gov.cn/c5rxzYrjRT2h/sdenv.js",
"params": {
"header_method": "GET"
},
"request": {
"http_version": "HTTP/1.1",
"headers": {
"fields": [
[
"Host",
"wcjs.sbj.cnipa.gov.cn"
],
[
"Proxy-Connection",
"keep-alive"
],
[
"Pragma",
"no-cache"
],
[
"Cache-Control",
"no-cache"
],
[
"User-Agent",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36"
],
[
"Accept",
"*/*"
],
[
"Referer",
"http://wcjs.sbj.cnipa.gov.cn/sgtmi"
],
[
"Accept-Encoding",
"gzip, deflate"
],
[
"Accept-Language",
"zh-CN,zh;q=0.9"
],
[
"Cookie",
"goN9uW4i0iKzS=60mt9j2VtAzOepQp0OsN0Q2NEQgM6PAQMjhDH24jTDj1Xl0nSZHLXijYsDSS3b.L5ICHs3Gv9dsyC80bA_8Fod8a; wcjs_cookie=42402740; JSESSIONID=GYSFb-qD1mCTHM9l8R9ooPcY-K2GvT7rU1cp8DHk; goN9uW4i0iKzT=0hXlJO4Yoh4kWJGtXTBXeUfGclxd1tODA.7U_BlAmU2j4t9NSlzZYhofyFXTPcRLn2DQsNLkZ1yYOBq1a_Dqg4aJg2_nfXLi7O4r2HSYyLJeCSsytr4.q1YL5G2Ybby3injMrJPD.ckQJprlZbqJHN9EM5Hjq2_el30txs0OmKqnf2I9u1W3Zub3jib1HhvM5ptzAGJQ7YGzHv7Mm2jaVBhnbkrEDtyjBpdtD02P4oXHuTDBkVtHtK3pyPPR2DvIw4Jq4pWaKRHJcFu4CHhamsfOWV2hBHbTbuRpijODQlwPJ.XzhEmQSguOMDfPDQo8XsDBrHPO3PuukQlhlEyG0wb8k1PpLamCqo_QFfs1AeCuTa5VMkRqQY9E0SaP0obah"
]
]
},
"content": "",
"trailers": null,
"timestamp_start": 1697703185.255662,
"timestamp_end": 1697703185.256907,
"host": "wcjs.sbj.cnipa.gov.cn",
"port": 80,
"method": "GET",
"scheme": "http",
"authority": "",
"path": "/c5rxzYrjRT2h/sdenv.js"
},
"response": {
"http_version": "HTTP/1.1",
"headers": {
"fields": [
[
"Date",
"Thu, 19 Oct 2023 08:13:05 GMT"
],
[
"Content-Type",
"text/javascript; charset=UTF-8"
],
[
"Transfer-Encoding",
"chunked"
],
[
"Connection",
"keep-alive"
],
[
"Last-Modified",
"Fri, 31 Mar 2023 02:45:25 GMT"
],
[
"ETag",
"W/\"64264945-32048\""
],
[
"Cache-Control",
"max-age=2592000, public"
],
[
"Expires",
"Sat, 18 Nov 2023 08:05:50 GMT"
],
[
"Content-Encoding",
"gzip"
],
[
"Server",
"NSF"
]
]
},
"trailers": null,
"timestamp_start": 1697703185.387576,
"timestamp_end": 1697703185.593629,
"status_code": 200,
"reason": "OK"
}
}

View File

@ -0,0 +1,128 @@
{
"url": "wcjs.sbj.cnipa.gov.cn/favicon.ico",
"url_full": "https://wcjs.sbj.cnipa.gov.cn/favicon.ico",
"params": {
"header_method": "GET"
},
"request": {
"http_version": "HTTP/1.1",
"headers": {
"fields": [
[
"Host",
"wcjs.sbj.cnipa.gov.cn"
],
[
"Connection",
"keep-alive"
],
[
"sec-ch-ua",
"\"Not A(Brand\";v=\"99\", \"Google Chrome\";v=\"121\", \"Chromium\";v=\"121\""
],
[
"sec-ch-ua-mobile",
"?0"
],
[
"User-Agent",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36"
],
[
"sec-ch-ua-platform",
"\"macOS\""
],
[
"Accept",
"image/avif,image/webp,image/apng,image/svg+xml,image/*,*/*;q=0.8"
],
[
"Sec-Fetch-Site",
"same-origin"
],
[
"Sec-Fetch-Mode",
"no-cors"
],
[
"Sec-Fetch-Dest",
"image"
],
[
"Referer",
"https://wcjs.sbj.cnipa.gov.cn/sgtmi"
],
[
"Accept-Encoding",
"gzip, deflate, br, zstd"
],
[
"Accept-Language",
"zh-CN,zh;q=0.9"
],
[
"Cookie",
"goN9uW4i0iKzS=60kT8dOgmxXebqEWQEwYEO4TitVQH8CXD6HwieKtCzgFT2IN.iUVh7khPK0REAwDxhcNBIph3t8pLFf5JvsCPl4q; wcjs_cookie=27005561; goN9uW4i0iKzT=0SaIRzvmEuG70nb9laLDBk1DKbrdcxOG_xKWHV14Zsy5ju3CFLjyvI6puy.hEUjLlqn8M7NgFV.xKgdTFsk9.kg.Tbh1dlShfgTWlioluCZIO5P4hAm_74bEKjZdVvzJhyUa1hLHDQKy3zsteRTmFJyCJNHBPciYBuvFMVYUvhDATFXiG049nMkDAYw7YeCbmTAoQAQVhCEXMtj1GyiALmFzizmslBF.ewr7_0w0TFl9"
]
]
},
"content": "",
"trailers": null,
"timestamp_start": 1704176306.324306,
"timestamp_end": 1704176306.325001,
"host": "wcjs.sbj.cnipa.gov.cn",
"port": 443,
"method": "GET",
"scheme": "https",
"authority": "",
"path": "/favicon.ico"
},
"response": {
"http_version": "HTTP/1.1",
"headers": {
"fields": [
[
"Date",
"Tue, 02 Jan 2024 06:18:26 GMT"
],
[
"Content-Type",
"image/x-icon"
],
[
"Content-Length",
"15406"
],
[
"Connection",
"keep-alive"
],
[
"Last-Modified",
"Fri, 01 Dec 2023 05:42:52 GMT"
],
[
"ETag",
"\"6569725c-3c2e\""
],
[
"X-Frame-Options",
"SAMEORIGIN"
],
[
"Accept-Ranges",
"bytes"
],
[
"Server",
"NSF"
]
]
},
"trailers": null,
"timestamp_start": 1704176306.389181,
"timestamp_end": 1704176306.389898,
"status_code": 200,
"reason": "OK"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View File

@ -0,0 +1,67 @@
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta content="jXIPofgABB8LYaL5Aftp52BWx_Ab7axY" r="m">
<!--[if lt IE 9]><script r='m'>document.createElement("section")</script><![endif]-->
<script type="text/javascript" charset="utf-8" src="/c5rxzYrjRT2h/sdenv.js" r='m'></script>
<script type="text/javascript" r='m'>
window.webkitRequestFileSystem = undefined;
document.cookie = '';
window.name = '';
window.localStorage.clear();
window.sessionStorage.clear();
if (!window.onbeforeunload) {
window.onbeforeunload = () => {
debugger;
return '阻止页面跳转'
};
}
if (!Object.sdenv && typeof SdenvExtend !== 'undefined') {
new SdenvExtend();
}
let timeoutNum = 0;
const Sdenv = Object.sdenv().memory.SdenvExtend || SdenvExtend;
const cookies = [];
new Sdenv()
.getHandle('connection')()
.getHandle('battery')()
.getHandle('eval')()
.getHandle('cookie')({
log: false,
setCb: (val) => {
if (val.includes('goN9uW4i0iKzT')) {
cookies.push(val);
if (cookies.length === 3) {
console.log(`第三次cookie值写入${val}`);
debugger;
}
}
}
})
.getHandle('dateAndRandom')({
datas: {"firstMap":{"_newdate":1710236537289},"_newdate":[0,4,4,9,10,12,13,13,15,16,17,17,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,28,28,29,29,32,32,33,34,34,34,34,34,34,35,35,35,35,604800035,35,36,36,36,38,39,39,39,39,39,39,40,40,40,40,40,40,40,604800040,41,46,46,51,51,51,52,52,52,52,52,52,52,52,52,52,604800052]},
randomReturn: 0.123,
});
if (Object.sdenv().config.isNode) {
var getElementsByTagNameOri = document.getElementsByTagName;
document.getElementsByTagName = (...params) => {
var findArr = getElementsByTagNameOri.apply(document, params);
if (params[0] === 'script' && document.readyState === 'loading') {
return [...findArr].slice(0, findArr.length - 1);
}
return findArr;
}
}
$_ts = {"nsd":36100,"cd":"qEYqrrAlhaEqDGWFqr93DG3bcqEqDGAFrp9IqGqFqSLqDpGFrS9drqEqoAVFqf93DGqFqsaWcqAYDGVRHaWcqq9CcAEqcs3tDGqwqsaWcAAMqGqFrfLoDpGcrSLmDGERDqEqDGqFqp93DGlWcGA3DGWRHaAcqrLrDG38DqEqDGAFrp93DGETER7qJOlcrslabnxGd8jjcSktYebVCDLTBBvkcGM_j4bulR66JVIHCy94YGqlWaQorxLzqaeRIcVSenSSs9pqI9OR1CmJwkQSW7l6VVROxsTIeUw7F1yNQbO6hbyaMb7.FXyXMc27QbzLzCSTFKyFtnFPYVzoYOrs1eW0V9SBUuJp.oz73lTDxs4qMoYNMPzNQIwXhDz6FC7LeUw7F1yNQbO6hbyaMbzFth94RUw2sUxtdmztwvNjKDO0FkpnwueCxjmRMvrXFnzj4by7tKSnFCP6MoYNMPzNQIwXhDz6FCzRznrcFlehsTiPKTrcMlJWUXfLwkmERUemXsfMF6w.FnOTwCSNhb2nFHQXMvrXFnzj4by7tKSnFCODhPxDskpdY8yf8bTWpkYo.0pRHlpC16hFEkN8Mox.FhwRKnQzRvwzzcajxnyuwUo5UT0NMox.Fhw7wK2XtC2SeCg7F6w.FTb6ElJF1UmBsJwgJuwVAn2K60fDKOzd3oKyimz.wCz.tHY6MD9XFUxLenyXQDy.tC.XMbaNMox.FW3XE9fswYE6.krAsVRCFo6zwCVCMCaNMwaGi2y7QbzLzCSTFKg.FUo6MPS.wCz.tHY6MD9XFUxLeTZ7xCW6UVHJFmmb36riUF2Kh92XJuQZT9VPHT2NQbO6hbyaMb7.FXyXMc27QbzLzCSTFKg.FUo6M20NEDJ6FwpYpbZ6pvTqC2xCHmwlQU4aR0lvimSNQIwXhDz6FC7LeUw7F1yNQbO6hbyaMb7.FXyXMmGXxKqZdUJuA2r0Q96ypVy71UJDMBwwQUAGHY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azCp7RcyfFC86RDe.hbmLQhw9MCzCtCrG51yvMDA.3o_6RKfjhbe.whwjQoVXM6JvzCzOFPyXFKC6FCyOhbyNw4w.QCLXMUALZKJntKf63cOSQbYPhbT0FdVXFbp0RPzLZbq7FKTGtCvnRPSLQOW.F8zOhDGCRPzN_ul7FoxGtCvawcSLMKW.FIp0hDf.FPzN_6E7FomXtCv.RCQNMKYztHpf8c2z3DqLeDyPtKT.3PO0wb3NQvg.wixfhoYOwcz0dDZ7wUxjt6s.Q1STQvW.wHe9hoYnQ6ZL_CSvtUxXRcO.Mb9NQvpOtiN.RP2uQ6ZL_KW7wCZ.wKUChvxLwDV.wBy2howvwczC4CA7wCJTt6I0hvJvMPz03XWXQ6xOt6pud1yuQCV.wo6Lhvp9QczuR8lXwDS9t6JzdKA7QKTTwKoTwPSS8vW.Qie9hoJS3nzn_ol7Q6mat6hORPSnMKmftiSzRbWat6rN41y6FDW.QDUzhvwTQ1zdRB3X8oYBt6eL_cygFUmdt6uLMPSeMC7.I.wgFUVXRvwBz6x7MomutC6.3aqmqGJ3EWpXqqmwECeWbaRIEKJTraklxb2eqGVTJy7qJsQcrO3lbOW"};
</script>
<script type="text/javascript" charset="utf-8" src="/c5rxzYrjRT2h/cCdzB9ZjDFks.294cc83.js" r='m'></script>
</head>
<body>
</body>
</html>
<script type="text/javascript" r='m'>_$jL();</script>

View File

@ -0,0 +1,132 @@
{
"url": "wcjs.sbj.cnipa.gov.cn/sgtmi",
"url_full": "https://wcjs.sbj.cnipa.gov.cn/sgtmi",
"params": {
"header_method": "GET"
},
"request": {
"http_version": "HTTP/1.1",
"headers": {
"fields": [
[
"Host",
"wcjs.sbj.cnipa.gov.cn"
],
[
"Connection",
"keep-alive"
],
[
"sec-ch-ua",
"\"Not A(Brand\";v=\"99\", \"Google Chrome\";v=\"121\", \"Chromium\";v=\"121\""
],
[
"sec-ch-ua-mobile",
"?0"
],
[
"sec-ch-ua-platform",
"\"macOS\""
],
[
"Upgrade-Insecure-Requests",
"1"
],
[
"User-Agent",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36"
],
[
"Accept",
"text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"
],
[
"Sec-Fetch-Site",
"none"
],
[
"Sec-Fetch-Mode",
"navigate"
],
[
"Sec-Fetch-User",
"?1"
],
[
"Sec-Fetch-Dest",
"document"
],
[
"Accept-Encoding",
"gzip, deflate, br, zstd"
],
[
"Accept-Language",
"zh-CN,zh;q=0.9"
],
[
"Cookie",
"goN9uW4i0iKzS=60kT8dOgmxXebqEWQEwYEO4TitVQH8CXD6HwieKtCzgFT2IN.iUVh7khPK0REAwDxhcNBIph3t8pLFf5JvsCPl4q; wcjs_cookie=27005561"
]
]
},
"content": "",
"trailers": null,
"timestamp_start": 1704176297.386355,
"timestamp_end": 1704176297.3870022,
"host": "wcjs.sbj.cnipa.gov.cn",
"port": 443,
"method": "GET",
"scheme": "https",
"authority": "",
"path": "/sgtmi"
},
"response": {
"http_version": "HTTP/1.1",
"headers": {
"fields": [
[
"Date",
"Tue, 02 Jan 2024 06:18:17 GMT"
],
[
"Content-Type",
"text/html"
],
[
"Transfer-Encoding",
"chunked"
],
[
"Connection",
"keep-alive"
],
[
"X-Frame-Options",
"SAMEORIGIN"
],
[
"Pragma",
"no-cache"
],
[
"Cache-Control",
"no-store"
],
[
"Expires",
"Tue, 02 Jan 2024 06:09:07 GMT"
],
[
"Server",
"NSF"
]
]
},
"trailers": null,
"timestamp_start": 1704176297.451873,
"timestamp_end": 1704176297.452702,
"status_code": 200,
"reason": "OK"
}
}

View File

@ -0,0 +1,9 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta content="jXIPofgABB8LYaL5Aftp52BWx_Ab7axY" r="m"><!--[if lt IE 9]><script r='m'>document.createElement("section")</script><![endif]--><script type="text/javascript" r='m'>$_ts=window['$_ts'];if(!$_ts)$_ts={};$_ts.nsd=36100;$_ts.cd="qEYqrrAlhaEqDGWFqr93DG3bcqEqDGAFrp9IqGqFqSLqDpGFrS9drqEqoAVFqf93DGqFqsaWcqAYDGVRHaWcqq9CcAEqcs3tDGqwqsaWcAAMqGqFrfLoDpGcrSLmDGERDqEqDGqFqp93DGlWcGA3DGWRHaAcqrLrDG38DqEqDGAFrp93DGETER7qJOlcrslabnxGd8jjcSktYebVCDLTBBvkcGM_j4bulR66JVIHCy94YGqlWaQorxLzqaeRIcVSenSSs9pqI9OR1CmJwkQSW7l6VVROxsTIeUw7F1yNQbO6hbyaMb7.FXyXMc27QbzLzCSTFKyFtnFPYVzoYOrs1eW0V9SBUuJp.oz73lTDxs4qMoYNMPzNQIwXhDz6FC7LeUw7F1yNQbO6hbyaMbzFth94RUw2sUxtdmztwvNjKDO0FkpnwueCxjmRMvrXFnzj4by7tKSnFCP6MoYNMPzNQIwXhDz6FCzRznrcFlehsTiPKTrcMlJWUXfLwkmERUemXsfMF6w.FnOTwCSNhb2nFHQXMvrXFnzj4by7tKSnFCODhPxDskpdY8yf8bTWpkYo.0pRHlpC16hFEkN8Mox.FhwRKnQzRvwzzcajxnyuwUo5UT0NMox.Fhw7wK2XtC2SeCg7F6w.FTb6ElJF1UmBsJwgJuwVAn2K60fDKOzd3oKyimz.wCz.tHY6MD9XFUxLenyXQDy.tC.XMbaNMox.FW3XE9fswYE6.krAsVRCFo6zwCVCMCaNMwaGi2y7QbzLzCSTFKg.FUo6MPS.wCz.tHY6MD9XFUxLeTZ7xCW6UVHJFmmb36riUF2Kh92XJuQZT9VPHT2NQbO6hbyaMb7.FXyXMc27QbzLzCSTFKg.FUo6M20NEDJ6FwpYpbZ6pvTqC2xCHmwlQU4aR0lvimSNQIwXhDz6FC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5DJPtKm0wcOgQU3N3KfjtHfnQc2bRvWLdCy7tKRLRcOdMUANRbf9Ihwv8DqX3bfazCp7RcyfFC86RDe.hbmLQhw9MCzCtCrG51yvMDA.3o_6RKfjhbe.whwjQoVXM6JvzCzOFPyXFKC6FCyOhbyNw4w.QCLXMUALZKJntKf63cOSQbYPhbT0FdVXFbp0RPzLZbq7FKTGtCvnRPSLQOW.F8zOhDGCRPzN_ul7FoxGtCvawcSLMKW.FIp0hDf.FPzN_6E7FomXtCv.RCQNMKYztHpf8c2z3DqLeDyPtKT.3PO0wb3NQvg.wixfhoYOwcz0dDZ7wUxjt6s.Q1STQvW.wHe9hoYnQ6ZL_CSvtUxXRcO.Mb9NQvpOtiN.RP2uQ6ZL_KW7wCZ.wKUChvxLwDV.wBy2howvwczC4CA7wCJTt6I0hvJvMPz03XWXQ6xOt6pud1yuQCV.wo6Lhvp9QczuR8lXwDS9t6JzdKA7QKTTwKoTwPSS8vW.Qie9hoJS3nzn_ol7Q6mat6hORPSnMKmftiSzRbWat6rN41y6FDW.QDUzhvwTQ1zdRB3X8oYBt6eL_cygFUmdt6uLMPSeMC7.I.wgFUVXRvwBz6x7MomutC6.3aqmqGJ3EWpXqqmwECeWbaRIEKJTraklxb2eqGVTJy7qJsQcrO3lbOW";if($_ts.lcd)$_ts.lcd();</script><script type="text/javascript" charset="utf-8" src="/c5rxzYrjRT2h/cCdzB9ZjDFks.294cc83.js" r='m'></script></head>
<body>
</body>
</html>
<script type="text/javascript" r='m'>_$jL();</script>

View File

@ -1,6 +1,6 @@
{
"name": "sdenv",
"version": "0.1.1",
"version": "0.1.2",
"description": "",
"main": "main.js",
"directories": {
@ -24,7 +24,7 @@
"log4js": "^6.9.1",
"module-alias": "^2.2.3",
"node-addon-api": "^7.0.0",
"sdenv-extend": "^1.1.0",
"sdenv-extend": "^1.2.0",
"sdenv-jsdom": "^1.1.0"
},
"devDependencies": {