Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

May you please help me to understand better this script? #103

Open
giggioman00 opened this issue Dec 30, 2018 · 16 comments
Open

May you please help me to understand better this script? #103

giggioman00 opened this issue Dec 30, 2018 · 16 comments

Comments

@giggioman00
Copy link

I need help because I'm confused with few steps.

So, I have downloaded the script and I have uploaded the files on my server.
Then I have put my API key in the drive.php.

Then I open the script with the following command:
http://<yourdomain.com>/?url=https://drive.google.com/file/d/[ID]/view
of course by replacing and [ID]

But now what? I have no idea what I should do now in order to get the crypted link. I'm facing a player that doesn't play the video, an embed form which actually show my drive video ID so it's not that, and a JSON file which I can't understand how to use...

may you please make it a little bit more clear? Thank you very much

@DonCorleone9
Copy link

@ArdiArtani Hey I am not using Google Drive API and still it is working for me.
Please can you let me know what is the difference between old and new script.. I see you did a new commit 10 days ago.
Would really appreciate your inputs. Thanks.

@DonCorleone9
Copy link

DonCorleone9 commented Dec 30, 2018

Hey @giggioman00 .. for you i made this..
Use this below code i derived from an older commit as a format of your pages..
Just update ID up top and that is it.. You are all set. :)

P.S. : If you or anyone here is into TV/movie/etc streaming sites lets connect via messages or something.. Maybe we can share some source codes and stuff.. and help one another.

Sorry i dont know how to format code to paste it here.. stupid github has stupid formatting stuff..
See this:
https://paste.ofcode.org/GbHzrYrByV9AjjXMCMtk2J

@giggioman00
Copy link
Author

Thank you for the answer, but the link is not crypted, the ID of the video do appear on the source

@DonCorleone9
Copy link

DonCorleone9 commented Dec 31, 2018

@giggioman00
You are wrong.. It does work.. Use it and see for yourself.. The link it makes is like a docs google kinda link.. That a short term link which changes every couple hours.. Your google drive actual direct link doesnt show up.
You are wrong.

Also, the crypted link when looked at in the source code can be clicked on. You can click on it and then it opens the docs google kinda link i talked about before. Its just using md5 hash.

@giggioman00
Copy link
Author

giggioman00 commented Dec 31, 2018

Yes but please, let me show you the problem I'm facing with your script using a test video.

So I put the ID where your script tell me to put it. Then I run the script and I get this link:

https://doc-0c-3g-docs.googleusercontent.com/docs/securesc/ha0ro937gcuc7l7deffksulhg5h7mbp1/2ae7k7ph207qqeh0savf46s2gspmv03c/1546264800000/03024062429258781666/*/1V75uLrUmf8Pg-ObmAC1d-QJMxn4v2fJy?e=download

Now, while it's true the first half of the link is hashed and change every few hours, actually the part after the /*/ never change and contains the google drive ID. Indeed, if you copy the part after /*/, this 1V75uLrUmf8Pg-ObmAC1d-QJMxn4v2fJy
in a classic google drive link location, you see you get the google drive page where your video is stored, and can be flagged to google: https://drive.google.com/file/d/1V75uLrUmf8Pg-ObmAC1d-QJMxn4v2fJy/view

So it's not safe

The only safe way is using the redirector link just like this script promise to do, the problem is that it's not much intuitive, at least for me that I never used it before, that's why I'm asking help

@DonCorleone9
Copy link

DonCorleone9 commented Dec 31, 2018

Yes, you are right, it does in fact create that last part which is same as ID of the file.. and it can be used to take a video down.
Though, putting a md5 hash (which is what you were asking) wont really stop people from merely clicking that link and finding the actual source of the video..

The script i posted was based on a commit #62490f9 created by @ArdiArtani by merge with @Zebraslive

It seems there has been addition to this script later on and they have added a new commit.. which includes the drive API.. I am not sure if it is capable of producing the redirector links. Will look into it and let you know.. Are you sure it makes use of redirector link and not the "doc googleusercontent" type of links ?
Thanks.

@giggioman00
Copy link
Author

Honestly I don't know because I can't understand how this script works to see what it does. But it should use the redirector, because I have read this on the homepage of the script:

Getting Started
Grab Google Drive streaming links (redirector.googlevideo.com/videoplayback?..). You can use it for video players (jwplayer, videojs, plyr etc).

@DonCorleone9
Copy link

DonCorleone9 commented Dec 31, 2018

I think he has made an api.php on his own site filedeo and that seems to be what is generating the stuff..
That site btw doesnt seem to function right now.. Like when i go there on homepage it gives me option to make such a link but doesnt work.. This is weird. I am gonna have to get back to this when i have time.

I am planning on using the FB script only hence forth.. Nothing changes on FB and it hasnt been abused as a CDN for streaming sites. So i guess that is a good idea. I tried myspace but its a trash platform and wont allow you to upload videos more than 4GB or like >30 mins.. This is gonna be tough if he hasnt even made the api.php available on github.. Will try to get back soon

@DonCorleone9
Copy link

Yes.. he has kept api.php private.. Let me try and make a replacement one.. should be doable.. Lets see..

@Zebraslive commented same on @ArdiArtani 's commit here:
4da2202#r31752901

@DonCorleone9
Copy link

This would get the video to download but wouldnt make a redirector link
https://www.googleapis.com/drive/v3/files/1V75uLrUmf8Pg-ObmAC1d-QJMxn4v2fJy?alt=media&key=InsertAPIKey here

@DonCorleone9
Copy link

I understood it.. For your video it makes something like this:
https://filedeo.com/hash.php?link1=NK70NNNj7z7LNo76jPNvNz7RNJ7INKN77FNPNhNgNS7~7l7o7ZNq717RjTNDN6jCNP7I717vNQNUNvNljNNG7l7RN37R7aNONJNjN07ONgNL7YN47ZNJNBNENzNzNFNvNN7R0273b5d4668ba714a96edc41b23be22937f86f79645e475a4b3e7343dda563b3jCNvj7NuNL7JNA7zjJj.j87WjqN2jsNkNRj7N2j7N4Ny7~NsNdN.7yNqjnjXN2jg7.NZ7Y7tjPj8NSNBjbN77~NM7.70NRNZjvNoj6NiNGNdNQNQNiNtjMNKNRNqNu7aNt7HNSN-N17BNo7Wjp7Yj-NUjcN8jwNcjTNSN6jhN27HNdNOjj7RNC7BjeNPN~j.NcNW7JNc75NAjKNRNmjbNdN9NVNX7Z7INwNJNINNjx74jCjKN5jhNrNUNvNZN2jWjT&link2=

Which is actually nothing but this:
https://www.googleapis.com/drive/v3/files/1V75uLrUmf8Pg-ObmAC1d-QJMxn4v2fJy?alt=media&key=AIzaSyD739-eb6NzS_KbVJq1K8ZAxnrMfkIqPyw

It actually has the API Key and the File ID in it.. It does NOT completely hide it but it does encrypt it someway.. Maybe AES or MD5.. i am not that good at encryption but whatever it does to encrypt is immaterial.. It simply converts the URL into hashed stuff. If someone were to want to get the original stuff they could easily do so. It aint rocket science.

If you have Free Download manager in your browser just put the hashed stuff in the address bar and press enter.. then a FDM window will open and give you the actual ID.. pretty standard stuff..

@adeadw
Copy link

adeadw commented Feb 24, 2019

How to bypass the api.php?? i mean i want to use the sscript without encryption to filedeo,, just like the older script version.

@giggioman00
Copy link
Author

2 months later, nothing changed. @ArdiArtani please, can you use 5 minutes of your time to tell me what I needin order to setup a service that is safe from being flagged? And how to do it? Over the solved issues there are a lot of code sources, different repository, premium service to pay that is impossible to understand what to do. Thanks

@lesotadil
Copy link

@giggioman00 Basically you can't prevent driveid from being exposed unless you're using proxy script

@giggioman00
Copy link
Author

Hello... did google change something? Because now my video doesn't load, and if I try to open the URL like (like: https://doc-0c-3g-docs.googleusercontent.com/docs/securesc/ha0ro937gcuc7l7deffksulhg5h7mbp1/2ae7k7ph207qqeh0savf46s2gspmv03c/1546264800000/03024062429258781666/*/1V75uLrUmf8Pg-ObmAC1d-QJMxn4v2fJy?e=download ) I get a 403 forbidden error. But if I use the plain URL then the video load fine.

@RiseCoder
Copy link

Someone finally found a solution. I bought it does not seem to be a problem I am using.

https://www.driveapi.ml/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants