Skip to content

Instantly share code, notes, and snippets.

@breeser

breeser/ol Secret

Last active June 20, 2017 14:42
Show Gist options
  • Save breeser/b2642783898deb01373892779760f845 to your computer and use it in GitHub Desktop.
Save breeser/b2642783898deb01373892779760f845 to your computer and use it in GitHub Desktop.
openload algo
using System;
using System.Collections.Generic;
using System.Net;
using System.Text.RegularExpressions;
namespace open
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine(string.Format("openload.co/stream/{0}",openload("https://openload.co/embed/KUGApDB0jFs")));
Console.ReadLine();
}
private static string openload(string url)
{
string output = "";
string html;
WebClient client = new WebClient();
html = client.DownloadString(url);
client.Dispose();
var groups = Regex.Match(html, @"\\x31\\x31':var _[0-1]x[0-9a-f]{6}=([0-9a-fx]+)");
var groups2 = Regex.Match(html, @"\^([a-f0-9x]+)");
var groups3 = Regex.Match(html, "<span id=\"[A-z0-9]+\">([0-9-a-f]+)");
long uv2v = Convert.ToInt64(groups2.Groups[1].Value, 16);
long uv3 = Convert.ToInt64(groups.Groups[1].Value, 16);
string uv1 = groups3.Groups[1].Value;
var d = uv1.Substring(0, 72);
var f = new List<long>();
for (int i = 0; i < d.Length; i += 8)
{
var g = d.Substring(i, 8);
var h = Convert.ToInt64(g, 16);
f.Add(h);
}
uv1 = uv1.Substring(72);
int a = 0;
var j = 0;
while (a < uv1.Length)
{
long n = 0;
var o = 0;
var p = 0;
do
{
var b = uv1.Substring(a, 2);
a += 2;
p = Convert.ToInt32(b, 16);
if (o < 30)
{
n += (p & 63) << o;
}
else
{
n += (long)((p & 63) * Math.Pow(2, o));
}
o += 6;
} while (p >= 64);
long uv2 = n ^ f[j % 9];
uv2 = uv2 ^ 681741804 ^ uv2v ^ uv3;
long u = 255;
for (int i = 0; i < 4; i++)
{
long r = uv2 & u;
r = r >> (8 * i);
var t = Char.ConvertFromUtf32((int)r).ToString();
if (t != "%") output += t;
u = u << 8;
}
j++;
}
return output;
}
}
}
@abit04c
Copy link

abit04c commented Jun 20, 2017

openload has update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment