
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
virsical-jssdk
Advanced tools
webpack
npm publish
npm install virsical-jssdk --save
import virsical from 'virsical-jssdk';
此JS-SDK是威思客移动办公门户提供给第三方H5应用开发者使用的,可帮助运行于威思客APP内的H5网页获得更多的高级特性。通过使用此JS-SDK,第三方H5应用开发者可快捷地在手机中使用统一认证、拍照、选图、语音、位置、扫一扫等原生手机系统的能力,以此可有效提升用户体验。
virsical.config({
debug: true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来。
client_id: '', // 必填,第三方应用接入ID
client_secret: // 必填,第三方应用接入秘钥
});
virsical.login({
success: function (res) {
var info = res.info; // 返回用户信息json
alert("Login success" + "-" + info);
},
fail: function (res) {
var msg = res.msg; // 失败原因
var code = res.code; //失败编码
}
});
virsical.captureQR({
success: function (res) {
alert("url:" + res.url);
},
fail: function (res) {
var msg = res.msg; // 失败原因
var code = res.code; //失败编码
alert("fail" + "-" + msg + "-" + code);
}
});
config
识别符:vsk3browser://config
参数:clientid、clientsecret、[debug]
callback:
configReady(),配置成功后调用
configError(msg, code),配置失败后调用。msg: 异常信息,code,异常代码。
login
callback:
loginResult(result, json, cd, mg), 登录成功后回调。
result: 0成功,否则失败。
json: 成功返回的数据。
cd:状态码。
mg:成功或失败的信息。
扫描二维码
识别符:vsk3browser://captureqr
callback:
captureQRResult(result, url, cd, mg)
result: 0 成功,否则失败。
url: 扫描成功后回传的url.
cd: 扫描失败的code
mg: 扫描失败的message
FAQs
Virsical 3.0 JS SDK
The npm package virsical-jssdk receives a total of 0 weekly downloads. As such, virsical-jssdk popularity was classified as not popular.
We found that virsical-jssdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.