You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
一些资料 【我们已经构建好的包】
开源版地址:https://oss.iinti.cn/sekiro/sekiro-demo 一般建议下载最新的包
【开源代码仓库】
github开源版地址:https://github.com/yint-tech/sekiro-open
【我们的文档】 https://sekiro.iinti.cn/sekiro-doc/
安装流程 安装环境需要有Java环境(经过测试jdk8, jdk11, jdk17等都是可以正常使用的
以下载我们构建好的包为例,先进行解压 在项目目录下,执行启动脚本:
windows: bin\sekiro.bat linux: bin/sekiro.sh 功能验证 这里使用一个js注入的场景,选取了一个http网址 (如果是https的小伙伴记得把ws改成wss,具体可以参考 https://iinti.cn/sekiro-article/sekiro-wss/
需要注意: 开源版本在实现上没有支持wss,只能通过证书签名的方式。请参考:https://sekiro.iinti.cn/sekiro-doc/02_advance/03_sslForWebsocket.html#%E5%AE%89%E8%A3%85ca%E8%AF%81%E4%B9%A6 商业版可以直接使用443端口
在网页控制台下贴入
function SekiroClient(e){if(this.wsURL=e,this.handlers={},this.socket={},!e)throw new Error("wsURL can not be empty!!");this.webSocketFactory=this.resolveWebSocketFactory(),this.connect()}SekiroClient.prototype.resolveWebSocketFactory=function(){if("object"==typeof window){var e=window.WebSocket?window.WebSocket:window.MozWebSocket;return function(o){function t(o){this.mSocket=new e(o)}return t.prototype.close=function(){this.mSocket.close()},t.prototype.onmessage=function(e){this.mSocket.onmessage=e},t.prototype.onopen=function(e){this.mSocket.onopen=e},t.prototype.onclose=function(e){this.mSocket.onclose=e},t.prototype.send=function(e){this.mSocket.send(e)},new t(o)}}if("object"==typeof weex)try{console.log("test webSocket for weex");var o=weex.requireModule("webSocket");return console.log("find webSocket for weex:"+o),function(e){try{o.close()}catch(e){}return o.WebSocket(e,""),o}}catch(e){console.log(e)}if("object"==typeof WebSocket)return function(o){return new e(o)};throw new Error("the js environment do not support websocket")},SekiroClient.prototype.connect=function(){console.log("sekiro: begin of connect to wsURL: "+this.wsURL);var e=this;try{this.socket=this.webSocketFactory(this.wsURL)}catch(o){return console.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
zh-cn/sekiro-article/sekiro-demo-1/
一些资料 【我们已经构建好的包】
开源版地址:https://oss.iinti.cn/sekiro/sekiro-demo 一般建议下载最新的包
【开源代码仓库】
github开源版地址:https://github.com/yint-tech/sekiro-open
【我们的文档】
https://sekiro.iinti.cn/sekiro-doc/
安装流程 安装环境需要有Java环境(经过测试jdk8, jdk11, jdk17等都是可以正常使用的
以下载我们构建好的包为例,先进行解压 在项目目录下,执行启动脚本:
windows: bin\sekiro.bat linux: bin/sekiro.sh 功能验证 这里使用一个js注入的场景,选取了一个http网址 (如果是https的小伙伴记得把ws改成wss,具体可以参考 https://iinti.cn/sekiro-article/sekiro-wss/
需要注意: 开源版本在实现上没有支持wss,只能通过证书签名的方式。请参考:https://sekiro.iinti.cn/sekiro-doc/02_advance/03_sslForWebsocket.html#%E5%AE%89%E8%A3%85ca%E8%AF%81%E4%B9%A6 商业版可以直接使用443端口
在网页控制台下贴入
function SekiroClient(e){if(this.wsURL=e,this.handlers={},this.socket={},!e)throw new Error("wsURL can not be empty!!");this.webSocketFactory=this.resolveWebSocketFactory(),this.connect()}SekiroClient.prototype.resolveWebSocketFactory=function(){if("object"==typeof window){var e=window.WebSocket?window.WebSocket:window.MozWebSocket;return function(o){function t(o){this.mSocket=new e(o)}return t.prototype.close=function(){this.mSocket.close()},t.prototype.onmessage=function(e){this.mSocket.onmessage=e},t.prototype.onopen=function(e){this.mSocket.onopen=e},t.prototype.onclose=function(e){this.mSocket.onclose=e},t.prototype.send=function(e){this.mSocket.send(e)},new t(o)}}if("object"==typeof weex)try{console.log("test webSocket for weex");var o=weex.requireModule("webSocket");return console.log("find webSocket for weex:"+o),function(e){try{o.close()}catch(e){}return o.WebSocket(e,""),o}}catch(e){console.log(e)}if("object"==typeof WebSocket)return function(o){return new e(o)};throw new Error("the js environment do not support websocket")},SekiroClient.prototype.connect=function(){console.log("sekiro: begin of connect to wsURL: "+this.wsURL);var e=this;try{this.socket=this.webSocketFactory(this.wsURL)}catch(o){return console.
http://154.39.149.86:5612/zh-cn/sekiro-article/sekiro-demo-1/
Beta Was this translation helpful? Give feedback.
All reactions