SPECIAL Stremio PRO + Admin Panel

JEMUMAN

Well-known member
Top Poster Of Month
Joined
Mar 16, 2023
Messages
576
Awards
4
Offline
I bought the app and the panel, I've been using it for a few months and I decided to share it here on the forum if you think it's not good then let the admin delete it or tell me to delete it
i shared the lastone lmao they killed day later caused alot of problems for everyone that bought into it
 

Gizmo

Well-known member
Joined
Jun 8, 2021
Messages
524
Awards
4
Offline
No it is not, that part is easy to bypass anyways.
<?php

class Encryption {
public static function encrypt($i, $key) {
$encrypted = openssl_encrypt($i, 'aes-128-ecb', base64_decode($key), 0);
$length = strlen($encrypted);
return array($encrypted, $length);
}

public static function run($i) {
$substring = rand(10, strlen($i) - 20);
$ep1 = self::encrypt(substr($i, 0, $substring), "UXNrR1VGUU15Nkt0aldkMQ==");
$ep2 = self::encrypt(substr($i, $substring), "MWRXanRLNnlNUUZVR2tzUQ==");
$encoded = base64_encode($ep1[0] . $ep2[0] . '!' . $ep1[1]);
return '{"data":"' . $encoded . '"}';
}
}

try {
$pdo = new PDO('sqlite:../../api/.cockpit-0001.db');
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);

$accounts_query = $pdo->query('SELECT * FROM stremio_debrid WHERE debrid_service = \'premiumize\' ORDER BY RANDOM() LIMIT 1');
$stremio_premiumize = $accounts_query->fetch(PDO::FETCH_ASSOC);

$services_query = $pdo->query('SELECT * FROM xc_domains_stremio');
$stremio_services = $services_query->fetchAll(PDO::FETCH_ASSOC);

$serviceList = array();
foreach ($stremio_services as $service) {
$url = ($service['ssl'] == 'true' ? 'https://' : 'http://') . $service['dns'] . ':' . $service['port'];
array_push($serviceList, array(
'name' => $service['name'],
'url' => $url
));
}

$protocol = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' ? 'https://' : 'http://';
$host = $_SERVER['HTTP_HOST'];
$directory = dirname($_SERVER['PHP_SELF']);

array_push($serviceList, array(
'name' => 'Cockpit Panel',
'url' => $protocol . $host . $directory . '/player_api.php'
));

$jsonData = array(
'portals' => $serviceList,
'key' => $stremio_premiumize['key'] ?? ''
);

$inputData = json_encode($jsonData);
header('Content-Type: application/json');
echo Encryption::run($inputData);

$pdo = null;
} catch (PDOException $e) {
echo json_encode(array('error' => 'Database error: ' . $e->getMessage()));
}
?>
Something like this would do that likely.
 

Gizmo

Well-known member
Joined
Jun 8, 2021
Messages
524
Awards
4
Offline
Nope haven't bothered nor had the time. Mine works
 

abelcustoms

Well-known member
Joined
Jun 29, 2021
Messages
210
Awards
3
Offline
If I understand correctly, the add-on from user @abelcustoms is only for the desktop version. Therefore, the add-on cannot be integrated here.
Correct there should be a few new addons around that have fixed the ts over ssl. My version was only ment to show that the idea is possible. And it looks like you might have one of those. I honestly wouldn't know, I've paused on my project and sent it off to others to improve.

As for this panel, bypassing Ian's server will break, an important feature. Unfortunately I expect it to be disabled soon.
 
Top