A simple rust API to decrypt encrypted embed sources.
Clone the respository and build the project
git clone https://github.com/eatmynerds/embed_decrypt.git
cd embed_decrypt
cargo build --release
mv target/release/embed_decrypt .To start the server simply run
./embed_decryptBy default, the server will run on
http://localhost:3000
Returns a welcome message.
curl -X GET "http://localhost:3000/"Welcome to the home page!
Decrypts the embed source URL and returns decrypted video sources and tracks.
embed_url- The URL of the encrypted embed source.referrer- The referrer URL of the embed source.
curl -X GET "http://localhost:3000/embed?embed_url=https://pepepeyo.xyz/v2/embed-4/DcwrA8YHCpgF?z=&referrer=https://flixhq.to"{
"sources": [
{
"file": "https://blornixcloud65.xyz/file1/29DMMWA8BSkTLenUu0onDu6c0Eb7JW2FOBTaVx~WSD7sirwxQfizCqyTnjjFXkKnE8T1xTYMKaXpENSYoRu2K6JXM2DCwJJNl4Y+iRMDtaERJJm3MoGfvnSSfC6lKjsuQYsbmBfsNNfTfunxkZP1ikcoVNVdbEEQxVjddYdcJlU=/NzIw/aW5kZXgubTN1OA==.m3u8",
"type": "hls"
}
],
"tracks": [
{
"file": "https://cc.subsceness.xyz/85/be/85be56539a0253f73cd14c9315132252/ara-6.vtt",
"label": "Arabic - Arabic",
"kind": "captions"
},
{
"file": "https://cc.subsceness.xyz/85/be/85be56539a0253f73cd14c9315132252/eng-2.vtt",
"label": "English - English",
"kind": "captions",
"default": true
},
...
],
"t": 1,
"server": 29
}Docker image is available at Docker Hub.
run the following command to pull and run the docker image.
docker pull eatmynerds/embed_decrypt
docker run -p 3000:3000 eatmynerds/embed_decryptThis will start the server on port 3000. You can access the server at http://localhost:3000/, And can change the port by changing the -p option to -p <port>:3000.
You can add -d flag to run the server in detached mode.
This project is licensed under the MIT License.