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

site support request: xvidstage.com #4335

Closed
smichaelsen opened this issue Nov 30, 2014 · 6 comments
Closed

site support request: xvidstage.com #4335

smichaelsen opened this issue Nov 30, 2014 · 6 comments

Comments

@smichaelsen
Copy link

@smichaelsen smichaelsen commented Nov 30, 2014

video file hoster

@smichaelsen
Copy link
Author

@smichaelsen smichaelsen commented Nov 30, 2014

youtube-dl http://xvidstage.com/1wxxky6awjj3
[generic] 1wxxky6awjj3: Requesting header
WARNING: Falling back on generic information extractor.
[generic] 1wxxky6awjj3: Downloading webpage
[generic] 1wxxky6awjj3: Extracting information
ERROR: Unsupported URL: http://xvidstage.com/1wxxky6awjj3; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

@naglis
Copy link
Collaborator

@naglis naglis commented Jan 23, 2015

Could you post another example URL? The one you've provided seems to be expired/deleted.

@msmuenchen
Copy link
Contributor

@msmuenchen msmuenchen commented Nov 26, 2015

http://xvidstage.com/amfy7atlkx25 is an example.

You will encounter a form there:

        <form method="POST" action="http://xvidstage.com/" name="FL">
            <input type="hidden" name="op" value="login">
            <input type="hidden" name="redirect" value="">
            <table cellpadding="0" cellspacing="0">
            <tr>
            <td class="user"><input type="text" name="login" value="" class="myForm" placeholder="Usename"></td>
            <td class="pswd"><input type="password" name="password" class="myForm" placeholder="Password"></td>
            <td align="left"><input type="submit" value=" " class="btn_login"></td>
            <td align="left" style="padding-left:5px;"><a href="http://xvidstage.com/?op=registration"><img src="http://xvidstage.com/images_classic/btn_signup.png" border=0></a></td>
            </tr>
            <tr>
            <td>&nbsp;</td>
            <td><a href="http://xvidstage.com/?op=forgot_pass" class="forget_pswd">Forgot Password?</a></td>
            </tr>
            </table>

        </form>

Submitting this form yields packed javascript in the HTML, inside the <div id="player_code">:

eval(function(p,a,c,k,e,d){while(c--)if(k[c])p=p.replace(new RegExp('\\b'+c.toString(a)+'\\b','g'),k[c]);return p}('1j.1i(\'<b 12="1h"1g="1f:1e-1d-1c-1b-1a"t="s"r="q"19="4://g.8.f/e/18.17"><3 2="x"1="w"/><3 2="v"1="u"/><3 2="9"1="4://7.0.6.0/i/p/o.n"/><3 2="k"1="5"><3 2="l"1="5"/><3 2="j"1="h"/><3 2="m"1="5"/><3 2="11"1="4://7.0.6.0:10/d/z/a.y"/><c 12="16"15="a/8"11="4://7.0.6.0:10/d/z/a.y"x="w"v="u"t="s"r="q"9="4://7.0.6.0/i/p/o.n"m="5"l="5"9=""k="5"j="h"14="4://g.8.f/e/13/"></c></b>\');',36,56,'115|value|name|param|http|false|82|93|divx|previewImage|video|object|embed||plugin|com|go|Play||previewMessage|allowContextMenu|bannerEnabled|autoPlay|jpg|amfy7atlkx25|00166|380|height|715|width|transparent|wmode|Stage6|custommode|avi|tauaziktgii5uaadfe5bz4sdhedcrrseamfrimascjkrezxwjmreomqs|182|src|id|download|pluginspage|type|np_vid|cab|DivXBrowserPlugin|codebase|CC0F21721616|9C46|41fa|D0AB|67DABFBF|clsid|classid|ie_vid|write|document'.split('|')))

Unpacked with http://www.strictly-software.com/unpacker gives:

document.write('<object id="ie_vid"classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616"width="715"height="380"codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab"><param name="custommode"value="Stage6"/><param name="wmode"value="transparent"/><param name="previewImage"value="http://93.115.82.115/i/00166/amfy7atlkx25.jpg"/><param name="allowContextMenu"value="false"><param name="bannerEnabled"value="false"/><param name="previewMessage"value="Play"/><param name="autoPlay"value="false"/><param name="src"value="http://93.115.82.115:182/d/tauaziktgii5uaadfe5bz4sdhedcrrseamfrimascjkrezxwjmreomqs/video.avi"/><embed id="np_vid"type="video/divx"src="http://93.115.82.115:182/d/tauaziktgii5uaadfe5bz4sdhedcrrseamfrimascjkrezxwjmreomqs/video.avi"custommode="Stage6"wmode="transparent"width="715"height="380"previewImage="http://93.115.82.115/i/00166/amfy7atlkx25.jpg"autoPlay="false"bannerEnabled="false"previewImage=""allowContextMenu="false"previewMessage="Play"pluginspage="http://go.divx.com/plugin/download/"></embed></object>');
@siddht4
Copy link

@siddht4 siddht4 commented Nov 26, 2015

@msmuenchen
Copy link
Contributor

@msmuenchen msmuenchen commented Nov 26, 2015

As for the packed JS, I guess that https://github.com/beautify-web/js-beautify/blob/master/python/jsbeautifier/unpackers/packer.py could be used to unpack it. I don't speak enough python to actually judge this, though.

@dstftw dstftw closed this in bccdac6 Jun 12, 2016
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jun 13, 2016

xvidstage support has been added in youtube-dl 2016.06.14.

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

Successfully merging a pull request may close this issue.

None yet
5 participants
You can’t perform that action at this time.