Socket
Socket
Sign inDemoInstall

wikiextension-cinego

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wikiextension-cinego - npm Package Compare versions

Comparing version 1.9.0 to 1.9.2

src/types/types.js

43

dist/extractors/megacloud.js

@@ -8,3 +8,2 @@ "use strict";

const crypto_js_1 = __importDefault(require("crypto-js"));
const utils_1 = require("../utils");
class MegaCloud {

@@ -29,20 +28,30 @@ serverName = 'MegaCloud'; //tambien UpCloud

const encrypted_res_data = JSON.parse(JSON.stringify(encrypted_res.data));
/* if (encrypted_res_data.encrypted) {
const fileUrl = 'https://megacloud.tv/js/player/m/prod/e1-player.min.js?v=1702269662';
const { data } = await axios.get(fileUrl);
const pairs = getPairs(data);
const sourcesArray = encrypted_res_data.sources.split('');
let extractedKey = '';
let currentIndex = 0;
for (const index of pairs) {
let start = index[0] + currentIndex;
let end = start + index[1];
for (let i = start; i < end; i++) {
extractedKey += encrypted_res_data.sources[i];
sourcesArray[i] = '';
}
currentIndex += index[1];
}
let key = extractedKey;
encrypted_res_data.sources = sourcesArray.join('');
var decryptedVal = JSON.parse(cryptoJs.AES.decrypt(encrypted_res_data.sources, key).toString(cryptoJs.enc.Utf8));
//console.log(decryptedVal);
}*/
if (encrypted_res_data.encrypted) {
const fileUrl = 'https://megacloud.tv/js/player/m/prod/e1-player.min.js?v=1702269662';
//const fileUrl = 'https://megacloud.tv/js/player/m/prod/e1-player.min.js?v=1702269662';
const fileUrl = 'https://keys4.fun/';
const { data } = await axios_1.default.get(fileUrl);
const pairs = (0, utils_1.getPairs)(data);
const sourcesArray = encrypted_res_data.sources.split('');
let extractedKey = '';
let currentIndex = 0;
for (const index of pairs) {
let start = index[0] + currentIndex;
let end = start + index[1];
for (let i = start; i < end; i++) {
extractedKey += encrypted_res_data.sources[i];
sourcesArray[i] = '';
}
currentIndex += index[1];
}
let key = extractedKey;
encrypted_res_data.sources = sourcesArray.join('');
//const pairs = getPairs(data);
const pairs = data.megacloud_m.keys;
let key = btoa(String.fromCharCode.apply(null, pairs));
var decryptedVal = JSON.parse(crypto_js_1.default.AES.decrypt(encrypted_res_data.sources, key).toString(crypto_js_1.default.enc.Utf8));

@@ -49,0 +58,0 @@ //console.log(decryptedVal);

{
"name": "wikiextension-cinego",
"version": "1.9.0",
"version": "1.9.2",
"description": "Nodejs library that provides an Api for obtaining the movies information from CineGO website.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -32,23 +32,44 @@ import axios from 'axios';

/* if (encrypted_res_data.encrypted) {
const fileUrl = 'https://megacloud.tv/js/player/m/prod/e1-player.min.js?v=1702269662';
const { data } = await axios.get(fileUrl);
const pairs = getPairs(data);
const sourcesArray = encrypted_res_data.sources.split('');
let extractedKey = '';
let currentIndex = 0;
for (const index of pairs) {
let start = index[0] + currentIndex;
let end = start + index[1];
for (let i = start; i < end; i++) {
extractedKey += encrypted_res_data.sources[i];
sourcesArray[i] = '';
}
currentIndex += index[1];
}
let key = extractedKey;
encrypted_res_data.sources = sourcesArray.join('');
var decryptedVal = JSON.parse(cryptoJs.AES.decrypt(encrypted_res_data.sources, key).toString(cryptoJs.enc.Utf8));
//console.log(decryptedVal);
}*/
if (encrypted_res_data.encrypted) {
const fileUrl = 'https://megacloud.tv/js/player/m/prod/e1-player.min.js?v=1702269662';
//const fileUrl = 'https://megacloud.tv/js/player/m/prod/e1-player.min.js?v=1702269662';
const fileUrl = 'https://keys4.fun/';
const { data } = await axios.get(fileUrl);
const pairs = getPairs(data);
const sourcesArray = encrypted_res_data.sources.split('');
//const pairs = getPairs(data);
const pairs = data.megacloud_m.keys;
/*const sourcesArray = encrypted_res_data.sources.split('');
let extractedKey = '';
let currentIndex = 0;
for (const index of pairs) {
let start = index[0] + currentIndex;
let end = start + index[1];
for (let i = start; i < end; i++) {
extractedKey += encrypted_res_data.sources[i];
sourcesArray[i] = '';
}
@@ -46,7 +48,8 @@ class MegaCloud {
currentIndex += index[1];
}
let key = extractedKey;
encrypted_res_data.sources = sourcesArray.join('');
encrypted_res_data.sources = sourcesArray.join('');*/
let key = btoa(String.fromCharCode.apply(null, pairs));
var decryptedVal = JSON.parse(cryptoJs.AES.decrypt(encrypted_res_data.sources, key).toString(cryptoJs.enc.Utf8));
//console.log(decryptedVal);
}
else {

@@ -72,3 +93,3 @@ decryptedVal = JSON.stringify(encrypted_res_data.sources[0])

});
});
});
}

@@ -75,0 +96,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc