Need help with Gkencode , part of gkplugins.

tld82

New member
May 10, 2014
2
0
0
I dont see it being encrypted, right click and see the flashvar. Perhaps, they have disabled it for time being. Please communicate with the plugin developer.
Their old movies still being encrypted. For example
Code:
http://phim60s.info/xem-phim/justin-va-hiep-si-qua-cam/121299.html
 
Last edited by a moderator:

dragonpiper

New member
Jun 17, 2014
1
0
0
Was anyone able to decrypt the algorithm fully ? I've noticed that even the decompiler doesn't reveal all of the code and it seems to be garbage or very broken.
 

thomas_911

New member
Jul 5, 2014
1
0
0
When i run import gledajfilmDecrypter
Its show error:

import gledajfilmDecrypter
Traceback (most recent call last):
File "<pyshell#5>", line 1, in <module>
import gledajfilmDecrypter
File "C:\Python34\Tools\Scripts\gledajfilmDecrypter.py", line 9
self.Rcon = [1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145];
 

necrose

New member
Oct 2, 2014
1
0
0
For the key, in didn't do that much hassle. I simply debug the swf and ask it to tell me the keys. So it's just not required that hassle. Will look into the code for porting once I get some breather. For time being, I will try and get you the keys later.
Hello Sir,

I really need your help related of your post :
http://forums.tvaddons.co/threads/19389-Need-help-with-Gkencode-part-of-gkplugins?p=180942&viewfull=1#post180942

i really really confuse how to do that, spend a week long to find and download any application which can do swf debugger and compiler. but still no work or result.

Would you please sir, to let me know your swf debugger ? and how to use it ? so i can get the correct key ?

I really appriciate of your help,

thank you sir.. big thanks

Btw, i can't send pm to you with reason your inbox is full
 

Skype

New member
Apr 2, 2014
3
0
0
Hey Shani, If you don't mind i need some help on finding the key from *link removed* I have decomipled the swf file but from there i have no clue where to find this key?


As above,dont post links
 
Last edited by a moderator:

shani_08

Banned
Nov 25, 2013
112
0
0
Please PM me the project you are working on and the purpose for the keys. I am little weary for this brand new account which suddenly asking for keys. Don't take it any other way. thanks.
 

Skype

New member
Apr 2, 2014
3
0
0
No worries i figured it out and got the key was using the wrong swf file! Had you use extract the decrption script and run it in SWFWire Debugger and got the key :)
 
Last edited by a moderator:

MadSlipper

New member
May 6, 2015
5
0
0
Hi all, Someone have some news about this plugin ?
ATM I have some problem for scrapping video, because of it. The site is using the last version and I want to check if I can make something, before spending all my time on it.

I m trying to dissasemble the flash file with a lot of problem, as3sorcerer is crashing on it, and the code is totaly unreadable on JPEXS.

I think I can find the key with a file decompliling comparaison, if the key is always at same place for same version file, but It's impossible for me to check if the actual python script will work on my gkplugin version.

Someone haven't try another method to bypass this problem, run flash in kodi, file flash convertion, ... ?

I can spend time on it, but the lack of information about this pluggin afraid me.
 
Last edited:

MadSlipper

New member
May 6, 2015
5
0
0
Ok, so I make a break. I have find some infos

The more advanced decompiled source for gkplugins_encode.swf is here http://wonderfl.net/c/uejL
It's not completely finished but it's exactly like the code I have disassembled.

Now I m sure the old code is totally out ouf date for this version. A part of code added

Code:
     private function & (param1: Object): Object {
         var _loc7_: * = false;
         var _loc8_: * = true;
         loop0:
             do {
                 _loc6_ = 0;
                 _loc2_ = new Gkencode(192, 128);
                 if (this >= 2) {
                     do {
                         _loc6_ = this | (_loc6_ >> 4 & 15) >> 2 << 2 | (_loc6_ & 15) >> 2;
                     }
                     while (this >= 2);

                     loop1;
                 }
                 loop2:
                     do {
                         _loc3_ = [17536, 16512, 16524, 17420, 17544, 3144, 3204, 17416, 19532, 3080, 16456, 16460, 18572, 16396​, 19468, 17408, 19464, 16524, 18508, 17420];
     
                         _loc4_ = new ByteArray();
                         _loc5_ = 0;
                         if (this < 2) {
                             continue loop0;
                         }
                         
                         for (; _loc5_ < _loc3_.length; _loc4_.writeByte(_loc6_), _loc5_++) {
                             _loc6_ = _loc3_[_loc5_];
                             if (this < 2) {
                                 continue;
                             } else {
                                 continue loop1;
                             }
                         }
                         return { v: _loc2_.decrypt(param1.v, _loc4_.toString(), "ECB").split(String.fromCharCode(0))[0] };
                     }
                     while (_loc6_ >> 12);
             }
             while (true);
I have tried another approach more easy.

In fact I m trying to keep the flash file with the key and use it to decrypt the key, using flashvar and the php file to have the decoded stream.
I have edited the flash file with Yogda, only the allowDomainRun function for it return always true, with this I can bypass the license part, but It's still not working, the player try to open a file called abc*fs5fds4f5f4s5f45f4sd5f4dsf5sd4fsd5f4dss5f4ds (In fact for the moment I just skip the popup message).

I have no bug, but the pluggin don't try to decode the url.
 
Last edited:

Dr_Tharwat

New member
Sep 14, 2016
3
0
0
OK, in that case, here is the code, I have tested 3-4 urls and those worked ok.

copy the decrypter contents from Here

Now, save that file as gledajfilmDecrypter.py

to test this code, in your test client, import the class first, like
Code:
import gledajfilmDecrypter
create an object of the class provided in that code and call the function,
Code:
x = gledajfilmDecrypter.gledajfilmDecrypter(198,128)# create the object

#now call
print x.decrypt('df236814880713e784e099b26a27569f689be53883b2cc6fc841ff5a502c9a80692ca67b51a53e0fcc16345858d2ecf6','O8DwsiRUOEqnkcJxbK3X','ECB').split('\0')[0];
First Param is that encrpted text, no leading gledaj*, second is the Code, which remains constant and third param is also constant, leave it like that.
It should print the uncrypted url. Like is said browsing that url directly wont work as it expecting a Post instead of Get and then you have to so some work to get the correct URL. but if the urlresolver is available then someone should test it there first.


-shani
can you help me please scrap the video link

Code:
<div data-module="OKVideo" data-options="{"playerId":"VideoPopup_player_93942254125","width":"491","height":"275","url":"//st.mycdn.me/static/MegaPlayer/10-5-8/vp.swf","url11":"//st.mycdn.me/static/MegaPlayer/10-5-8/vp11.swf","minFlashVersionNewPlayer":"11.2","wmode":"opaque","asa":true,"provider":"UPLOADED_ODKL","flashvars":{"relatedAlways":"1","metadata":"{\"provider\":\"UPLOADED_ODKL\",\"service\":\"ok\",\"owner\":false,\"voted\":false,\"likeCount\":0,\"subscribed\":false,\"slot\":0,\"siteZone\":-1,\"showAd\":false,\"fromTime\":0,\"author\":{\"id\":\"582443447341\",\"name\":\"e uploader\",\"profile\":\"/profile/582443447341\"},\"movie\":{\"id\":\"93942254125\",\"movieId\":\"93942254125\",\"likeId\":\"93942254125\",\"contentId\":\"151007922733\",\"poster\":\"https://pimg.mycdn.me/getImage?disableStub=true\\u0026type=VIDEO_S_720\\u0026url=http%3A%2F%2Fvdp.mycdn.me%2FgetImage%3Fid%3D151007922733%26idx%3D0%26thumbType%3D32\\u0026signatureToken=MKSF7cgZwpuSffvPcwzolw\",\"duration\":\"5581\",\"title\":\"sila7 eltlmez\",\"url\":\"https://ok.ru/video/93942254125\",\"link\":\"/video/93942254125\",\"collageInfo\":{\"url\":\"https://vdp.mycdn.me/getImage?id=151007922733\\u0026idx=0\\u0026thumbType=36\",\"frequency\":30,\"height\":44,\"width\":80,\"count\":187},\"status\":\"OK\",\"statusText\":\"OK\"},\"admanMetadata\":{},\"partnerId\":0,\"ownerMovieId\":\"93942254125\",\"videos\":[{\"name\":\"mobile\",\"url\":\"https://vd42.mycdn.me/?sig=27af1b6582487d028123eda2023a05c758d4642a\\u0026ct=0\\u0026urls=217.20.153.73%3B217.20.145.46%3B217.20.157.209\\u0026expires=1473999446173\\u0026srcIp=51.235.38.33\\u0026srcAg=CHROME\\u0026clientType=0\\u0026id=151007922733\\u0026type=4\",\"seekSchema\":3,\"disallowed\":false},{\"name\":\"lowest\",\"url\":\"https://vd42.mycdn.me/?sig=443fe050a1b285a703750bd673b8a74620652dc0\\u0026ct=0\\u0026urls=217.20.153.73%3B217.20.145.46%3B217.20.157.209\\u0026expires=1473999446173\\u0026srcIp=51.235.38.33\\u0026srcAg=CHROME\\u0026clientType=0\\u0026id=151007922733\\u0026type=0\",\"seekSchema\":3,\"disallowed\":false},{\"name\":\"low\",\"url\":\"https://vd42.mycdn.me/?sig=9a4d5f9516eff271b8375cfcba9e860300217adb\\u0026ct=0\\u0026urls=217.20.153.73%3B217.20.145.46%3B217.20.157.209\\u0026expires=1473999446173\\u0026srcIp=51.235.38.33\\u0026srcAg=CHROME\\u0026clientType=0\\u0026id=151007922733\\u0026type=1\",\"seekSchema\":3,\"disallowed\":false},{\"name\":\"sd\",\"url\":\"https://vd42.mycdn.me/?sig=140874d648bc4b52eba4ed0e34571a44f53ae33a\\u0026ct=0\\u0026urls=217.20.153.73%3B217.20.145.46%3B217.20.157.209\\u0026expires=1473999446173\\u0026srcIp=51.235.38.33\\u0026srcAg=CHROME\\u0026clientType=0\\u0026id=151007922733\\u0026type=2\",\"seekSchema\":3,\"disallowed\":false},{\"name\":\"hd\",\"url\":\"https://vd42.mycdn.me/?sig=b3c512b2657d6836eb35ca3eb838c945e3faf010\\u0026ct=0\\u0026urls=217.20.153.73%3B217.20.145.46%3B217.20.157.209\\u0026expires=1473999446173\\u0026srcIp=51.235.38.33\\u0026srcAg=CHROME\\u0026clientType=0\\u0026id=151007922733\\u0026type=3\",\"seekSchema\":3,\"disallowed\":false}],\"metadataEmbedded\":\"\\u003C?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\"?\\u003E\\u003CMPD xmlns=\\\"urn:mpeg:dash:schema:mpd:2011\\\" maxSegmentDuration=\\\"PT0H0M12.03S\\\" mediaPresentationDuration=\\\"PT1H33M1.78S\\\" minBufferTime=\\\"PT1.500000S\\\" profiles=\\\"urn:mpeg:dash:profile:isoff-on-demand:2011\\\" type=\\\"static\\\"\\u003E\\n \\u003CProgramInformation moreInformationURL=\\\"http://ok.ru\\\"\\u003E\\n  \\u003CTitle\\u003EProduced_for_OK\\u003C/Title\\u003E\\n \\u003C/ProgramInformation\\u003E\\n\\n \\u003CPeriod duration=\\\"PT1H33M1.78S\\\"\\u003E\\n  \\u003CAdaptationSet lang=\\\"und\\\" maxFrameRate=\\\"25\\\" maxHeight=\\\"720\\\" maxWidth=\\\"1278\\\" par=\\\"1278:720\\\" segmentAlignment=\\\"true\\\" subsegmentAlignment=\\\"true\\\" subsegmentStartsWithSAP=\\\"1\\\"\\u003E\\n   \\u003CContentComponent contentType=\\\"video\\\" id=\\\"1\\\"/\\u003E\\n   \\u003CContentComponent contentType=\\\"audio\\\" id=\\\"2\\\"/\\u003E\\n   \\u003CRepresentation audioSamplingRate=\\\"44100\\\" bandwidth=\\\"116238\\\" codecs=\\\"avc1.42c01e,mp4a.40.2\\\" frameRate=\\\"25\\\" height=\\\"144\\\" id=\\\"1\\\" mimeType=\\\"video/mp4\\\" sar=\\\"1071:1072\\\" startWithSAP=\\\"1\\\" width=\\\"256\\\"\\u003E\\n    \\u003CAudioChannelConfiguration schemeIdUri=\\\"urn:mpeg:dash:23003:3:audio_channel_configuration:2011\\\" value=\\\"2\\\"/\\u003E\\n    \\u003CBaseURL\\u003Ehttps://vd42.mycdn.me/?sig=27af1b6582487d028123eda2023a05c758d4642a\\u0026amp;ct=4\\u0026amp;urls=217.20.153.73%3B217.20.145.46%3B217.20.157.209\\u0026amp;expires=1473999446173\\u0026amp;srcIp=51.235.38.33\\u0026amp;srcAg=CHROME\\u0026amp;clientType=0\\u0026amp;id=151007922733\\u0026amp;type=4\\u003C/BaseURL\\u003E\\n    \\u003CSegmentBase indexRange=\\\"1420-7043\\\" indexRangeExact=\\\"true\\\"\\u003E\\n      \\u003CInitialization range=\\\"0-1419\\\"/\\u003E\\n    \\u003C/SegmentBase\\u003E\\n   \\u003C/Representation\\u003E\\n   \\u003CRepresentation audioSamplingRate=\\\"44100\\\" bandwidth=\\\"305404\\\" codecs=\\\"avc1.42c01e,mp4a.40.2\\\" frameRate=\\\"25\\\" height=\\\"240\\\" id=\\\"2\\\" mimeType=\\\"video/mp4\\\" sar=\\\"4760:4757\\\" startWithSAP=\\\"1\\\" width=\\\"426\\\"\\u003E\\n    \\u003CAudioChannelConfiguration schemeIdUri=\\\"urn:mpeg:dash:23003:3:audio_channel_configuration:2011\\\" value=\\\"2\\\"/\\u003E\\n    \\u003CBaseURL\\u003Ehttps://vd42.mycdn.me/?sig=443fe050a1b285a703750bd673b8a74620652dc0\\u0026amp;ct=4\\u0026amp;urls=217.20.153.73%3B217.20.145.46%3B217.20.157.209\\u0026amp;expires=1473999446173\\u0026amp;srcIp=51.235.38.33\\u0026amp;srcAg=CHROME\\u0026amp;clientType=0\\u0026amp;id=151007922733\\u0026amp;type=0\\u003C/BaseURL\\u003E\\n    \\u003CSegmentBase indexRange=\\\"1421-7044\\\" indexRangeExact=\\\"true\\\"\\u003E\\n      \\u003CInitialization range=\\\"0-1420\\\"/\\u003E\\n    \\u003C/SegmentBase\\u003E\\n   \\u003C/Representation\\u003E\\n   \\u003CRepresentation audioSamplingRate=\\\"44100\\\" bandwidth=\\\"647484\\\" codecs=\\\"avc1.64001e,mp4a.40.2\\\" frameRate=\\\"25\\\" height=\\\"360\\\" id=\\\"3\\\" mimeType=\\\"video/mp4\\\" sar=\\\"21420:21373\\\" startWithSAP=\\\"1\\\" width=\\\"638\\\"\\u003E\\n    \\u003CAudioChannelConfiguration schemeIdUri=\\\"urn:mpeg:dash:23003:3:audio_channel_configuration:2011\\\" value=\\\"2\\\"/\\u003E\\n    \\u003CBaseURL\\u003Ehttps://vd42.mycdn.me/?sig=9a4d5f9516eff271b8375cfcba9e860300217adb\\u0026amp;ct=4\\u0026amp;urls=217.20.153.73%3B217.20.145.46%3B217.20.157.209\\u0026amp;expires=1473999446173\\u0026amp;srcIp=51.235.38.33\\u0026amp;srcAg=CHROME\\u0026amp;clientType=0\\u0026amp;id=151007922733\\u0026amp;type=1\\u003C/BaseURL\\u003E\\n    \\u003CSegmentBase indexRange=\\\"1428-7051\\\" indexRangeExact=\\\"true\\\"\\u003E\\n      \\u003CInitialization range=\\\"0-1427\\\"/\\u003E\\n    \\u003C/SegmentBase\\u003E\\n   \\u003C/Representation\\u003E\\n   \\u003CRepresentation audioSamplingRate=\\\"44100\\\" bandwidth=\\\"1147810\\\" codecs=\\\"avc1.64001e,mp4a.40.2\\\" frameRate=\\\"25\\\" height=\\\"480\\\" id=\\\"4\\\" mimeType=\\\"video/mp4\\\" sar=\\\"4760:4757\\\" startWithSAP=\\\"1\\\" width=\\\"852\\\"\\u003E\\n    \\u003CAudioChannelConfiguration schemeIdUri=\\\"urn:mpeg:dash:23003:3:audio_channel_configuration:2011\\\" value=\\\"2\\\"/\\u003E\\n    \\u003CBaseURL\\u003Ehttps://vd42.mycdn.me/?sig=140874d648bc4b52eba4ed0e34571a44f53ae33a\\u0026amp;ct=4\\u0026amp;urls=217.20.153.73%3B217.20.145.46%3B217.20.157.209\\u0026amp;expires=1473999446173\\u0026amp;srcIp=51.235.38.33\\u0026amp;srcAg=CHROME\\u0026amp;clientType=0\\u0026amp;id=151007922733\\u0026amp;type=2\\u003C/BaseURL\\u003E\\n    \\u003CSegmentBase indexRange=\\\"1428-7051\\\" indexRangeExact=\\\"true\\\"\\u003E\\n      \\u003CInitialization range=\\\"0-1427\\\"/\\u003E\\n    \\u003C/SegmentBase\\u003E\\n   \\u003C/Representation\\u003E\\n   \\u003CRepresentation audioSamplingRate=\\\"44100\\\" bandwidth=\\\"2541210\\\" codecs=\\\"avc1.64001f,mp4a.40.2\\\" frameRate=\\\"25\\\" height=\\\"720\\\" id=\\\"5\\\" mimeType=\\\"video/mp4\\\" sar=\\\"4760:4757\\\" startWithSAP=\\\"1\\\" width=\\\"1278\\\"\\u003E\\n    \\u003CAudioChannelConfiguration schemeIdUri=\\\"urn:mpeg:dash:23003:3:audio_channel_configuration:2011\\\" value=\\\"2\\\"/\\u003E\\n    \\u003CBaseURL\\u003Ehttps://vd42.mycdn.me/?sig=b3c512b2657d6836eb35ca3eb838c945e3faf010\\u0026amp;ct=4\\u0026amp;urls=217.20.153.73%3B217.20.145.46%3B217.20.157.209\\u0026amp;expires=1473999446173\\u0026amp;srcIp=51.235.38.33\\u0026amp;srcAg=CHROME\\u0026amp;clientType=0\\u0026amp;id=151007922733\\u0026amp;type=3\\u003C/BaseURL\\u003E\\n    \\u003CSegmentBase indexRange=\\\"1428-7051\\\" indexRangeExact=\\\"true\\\"\\u003E\\n      \\u003CInitialization range=\\\"0-1427\\\"/\\u003E\\n    \\u003C/SegmentBase\\u003E\\n   \\u003C/Representation\\u003E\\n  \\u003C/AdaptationSet\\u003E\\n \\u003C/Period\\u003E\\n\\u003C/MPD\\u003E\",\"metadataUrl\":\"https://vd42.mycdn.me/?sig=9a4d5f9516eff271b8375cfcba9e860300217adb\\u0026ct=6\\u0026urls=217.20.153.73%3B217.20.145.46%3B217.20.157.209\\u0026expires=1473999446173\\u0026srcIp=51.235.38.33\\u0026srcAg=CHROME\\u0026clientType=0\\u0026id=151007922733\\u0026type=1\",\"hlsManifestUrl\":\"https://ok.ru/dk?cmd=videoPlayerCdn\\u0026sig=742c98ab5facebee4a50ebc4385f299853c42863\\u0026ct=8\\u0026pq=144\\u0026expires=1473999446173\\u0026srcIp=51.235.38.33\\u0026srcAg=CHROME\\u0026clientType=0\\u0026mq=720\\u0026lq=144\\u0026id=151007922733\\u0026type=4\",\"failoverHosts\":[\"vd15.mycdn.me\",\"vd10.mycdn.me\",\"vd38.mycdn.me\"],\"autoplay\":{\"autoplayEnabled\":true,\"timeFromEnabled\":true,\"noRec\":false,\"fullScreenExit\":false,\"vitrinaSection\":\"recommended_movie\"},\"security\":{\"url\":\"https://vd42.mycdn.me/usr_login\",\"cookie\":\"vdsig\"}}","saveLastPlayingTimeFrom":"30","castId":"559D7832","noChat":"0","locale":"en","noChannel":"1","noExpandInFeed":"0","enabledLocalStorage":"1","minCacheTime":"120","maxCachePartOfDurationMQ":"30","checkMQ":"1","recSlot":"7178","isRelatedDisabled":"1","preferHd":"1","noLikeButton":"1","maxCachePartOfDuration":"10","isAnonym":"1","noUpload":"1","hideWatermark":"0","isEmbed":"1","bigLike":"1","minCacheTimeMQ":"20","showChat":"1","feedAdLogic":"15,5,3,14400","location":"AnonymVideoEmbed/anonymVideoEmbed/anonym","adLogic":"15,0,3,14400"},"liveRertyTimeout":5000,"poster":"https://pimg.mycdn.me/getImage?disableStub=true\u0026type=VIDEO_S_720\u0026url=http%3A%2F%2Fvdp.mycdn.me%2FgetImage%3Fid%3D151007922733%26idx%3D0%26thumbType%3D32\u0026signatureToken=MKSF7cgZwpuSffvPcwzolw","isExternalPlayer":false,"isIframePlayer":false,"isHtml5Player":true,"timestamp":"1473913046201"}" data-player-container-id="embedVideoC" data-player-element-id="embedVideoE" class="vid-card_cnt h-mod"><div class="vid-card_cnt_w" data-l="t,play" id="embedVideoC"><i class="vid_play"></i><img src="//pimg.mycdn.me/getImage?disableStub=true&type=VIDEO_S_720&url=http%3A%2F%2Fvdp.mycdn.me%2FgetImage%3Fid%3D151007922733%26idx%3D0%26thumbType%3D37&signatureToken=-Kel7hsnqKZKw7X5Maqs6g" class="vid-card_img"><div class="vid-card_duration-w"><div class="vid-card_duration">1:33:01</div></div><div class="vid-card_n_w"><span class="vid-card_n">sila7 eltlmez</span></div></div></div>