SightstoneOfficial / LegendaryClient

LegendaryClient, rebooted
68 stars 59 forks source link

want garena support #23

Closed nongnoobjung closed 9 years ago

nongnoobjung commented 10 years ago

want garena support

JamaicanMoose commented 10 years ago

I have nothing against your wanting support, but generally most of the features should be worked out before support is pursued. (my opionion anyway) May I suggest making an account on NA or EUW if you would like to play on the still in-progress launcher.

Best Wishes

-TrollinTeemo

eddy5641 commented 10 years ago

In dev now. Please be patient but I can not test anything on garena unless you offer to make a acc

eddy5641 commented 10 years ago

~!REMEMBER THIS FOR GARENA!~

host=prod.lol.garenanow.com xmpp_server_url=chat.lol.garenanow.com xmpp_accept_self_signed_cert=true startChat=true storeEnabled=true enableTutorialGame=true lobbyLandingURL=http://lol.garena.com/landing.php ladderURL=http://lol.garena.com/ladders helpURL=http://lol.garena.com/support lq_uri=https://lq.lol.garenanow.com/login-queue/rest/queue

nongnoobjung commented 10 years ago

garena SEA everyone can register and play you can make account at http://www.garena.com

eddy5641 commented 10 years ago

I don't want to create an account because it requires a summoner name or legendaryclient can not login, and then have to download the garena patcher. And that would take too long.

nongnoobjung commented 10 years ago

i will create for you

nongnoobjung commented 10 years ago

legendaryclient can't login because garena need verify and get token key for login you need make like this https://code.google.com/p/lolrtmpsclient/source/browse/trunk/src/com/gvaneyck/rtmp/LoLRTMPSClient.java

bug that source code outdate for now garena change encryption before send user pass and encrytion respond token

sorry i'm bad english

eddy5641 commented 10 years ago

LegendaryClient has something like this, it is called PVPNetConnect

eddy5641 commented 10 years ago

I am downloading Garena to ensure that it will work 2-3 Hours before Garena Push

nongnoobjung commented 10 years ago

wow awesome

nongnoobjung commented 10 years ago

can't wait playing on GarenaTH with Legendary Client

nongnoobjung commented 10 years ago

host=prodth.lol.garenanow.com xmpp_server_url=chatth.lol.garenanow.com xmpp_accept_self_signed_cert=true startChat=true storeEnabled=true enableTutorialGame=true lobbyLandingURL=http://www.playlol.in.th/landing/ ladderURL=http://www.playlol.in.th/ helpURL=http://www.playlol.in.th/ lq_uri=https://lqth.lol.garenanow.com featuredGamesURL=http://112.121.157.15:8088/observer-mode/rest/featured ekg_uri=https://ekg.riotgames.com riotDataServiceDataSendProbability=1.0

GarenaTH

eddy5641 commented 10 years ago

Here is the problem for me. I have installed and started work on Garena. The problem is, instead of a username and password, Garena uses something called PartnerCredentals.

nongnoobjung commented 10 years ago

i think possible login but can normally login with username and password

PartnerCredentals have time about 5 min before expire so can get it from normal garena login and use process explorer or lolnote get it

pic http://imgur.com/rttDd9c

idea : make textbox input PartnerCredentals when select garena region and switch login method to use PartnerCredentals

eddy5641 commented 10 years ago

PartnerCredentals are randomly gen from the Garnea client. I have to find out how Garnea calculates these credentials then Garnea will be ready. Garnea research is slowing down my time on programming so I will mark this so I do not forget to work on this later

eddy5641 commented 9 years ago

It will be dificult to input PartnerCredentals. I am thinking about LaunchArgs (when you launch League from GR client, It launches LC instead and it logs in). Probably what will be done (BACK UP LEAGUE!!!!!! SUPER IMPORTANT)

nongnoobjung commented 9 years ago

nice can't wait . Thank you for hard work

JobAshleyB commented 9 years ago

host=prodph.lol.garenanow.com xmpp_server_url=chatph.lol.garenanow.com xmpp_accept_self_signed_cert=true startChat=true storeEnabled=true enableTutorialGame=true lobbyLandingURL=http://lol.garena.ph/lolphlauncher/ ladderURL=http://lol.garena.ph/ladder-rankings lq_uri=https://lqph.lol.garenanow.com ekg_uri=https://ekg.riotgames.com riotDataServiceDataSendProbability=1.0

Garena PH

eddy5641 commented 9 years ago

Do you know how garena gets the partner credentials

horato commented 9 years ago

when you click the "start league of legends" button inside garena client it says "authenticating". Thats where i guess.

horato commented 9 years ago

The implementation you tried to do is not going to work since the 1st hex number in packet's payload is changing on each login to garena client. I've seen it before somewhere else so my best guess it that the opcodes are obfuscated. Next goes an sequence of 8 numbers (not changing) followed by user's login name ended (in my case) by one 00. Whats next is not known, but password should be there somewhere, probably encrypted. (opcode) (01 00 00 31 03 80 00 00) (4E 69 63 6B 6E 61 6D 65 00)...

vietnamstar commented 9 years ago

the easiest way would be to just intercept lol.exe starting up and read the arguments, then kill lol.exe or ask input box with token

i try to do this auth in the past before; garena tends to do large changes of the format completely (not just "opcode") with almost every garena-plus update, breaking it completely every other week, so oyu will have to spend a lot of time mainintaing this every 2 weeks or so

NitroXenon commented 9 years ago

TW lol.properties file:

https://github.com/NitroXenon/LoLToolsX-in-CSharp/blob/master/prop_files/lolt.properties

Cant wait playing on TW server with LegendaryClient.

eddy5641 commented 9 years ago

Getting garena vn again, packets hate me, going to try to use wireshark/Microsoft Network Monitor 3.4 and lolnotes to get the login data. For now just use launch args

eddy5641 commented 9 years ago

I just did a small Garena push for PH only, NitroXenon, can you test if it works or not (My lol does not want to login, got to get a vpn/proxy)

NitroXenon commented 9 years ago

OK I'll test it later.

nongnoobjung commented 9 years ago

try capture login example this token

g/D1USWcNVE3/PvF+BESQ8/YtzKcf6Uq2PIU6hfKjtSuawYthHYYTzmler2MwEBdBZF1BLZMfRu1Ify0LRqWMlk2P6ia7I/vBn5vC/bbq4vuEdnuDcSAV+JgWC2wAq3Ef4PUka5QiAVSQK3UvFx/EbsTvaFDV5hKWDotbYQX+6jrG3aGcTHxSDZm4Hl+xaWfkLMLj5MwCBEf+ayqdZWuxkEcS34AZo7IwU3ir6c1Y+dfdITMH8VWiIV6u+Aqza3U+TgfJFLN8LXmvyWl7nMuyqV+4kvcvG0G16pZ+LJNDydkHdITIzMlVSi+DFO45P+gqATbjho4ROSjeXpLE5Mj9g==

in getAuthToken payload use

payload = "payload=8393 "+garenaToken;

space after 8393 need replace with %20 (hex value) all symblo in garenatoken "/ + =" need replace with hex to / %2F =%3D

ps. still find how to getGarenaToken

nongnoobjung commented 9 years ago

sucesss login Garena With Token Now But Still can't get token without use Process Explorer

try edit code from volibot

pic http://imgur.com/eEUd8AQ

in GetAuthKey function

payload need replace string if (useGarena) { payload = reToken(garenaToken); query = "payload=8393%20" + payload; }

and this retoken function private string reToken(string s) { string s1 = s.Replace("/", "%2F"); s1 = s1.Replace("+", "%2B"); s1 = s1.Replace("=", "%3D"); return s1; }

eddy5641 commented 9 years ago

sorry :( wasn't on github, was working on pipes (Override regular command arguments [show an overlay via commandline]) I will add this and if you want, just submit a pull request

nongnoobjung commented 9 years ago

i don't know how to edit ui with metro :( and i try compile and run LegendaryClient Stop Working this modify volibot with use Token login http://www.joduska.me/forum/topic/17532-volibot-for-garena/

NitroXenon commented 9 years ago

here :arrow_down:

https://github.com/nongnoobjung/Volibot-Garena/blob/master/PvPNETConnect/RTMP/LoLConnection.cs

eddy5641 commented 9 years ago

The problem with the tokens is that they are not user friendly but I can do that if you want (Just for now, but I will move off of it later)

eddy5641 commented 9 years ago

MIIEogIBAAKCAQEA3XK9BWuIHIS3R6za4WU/mQ0WlsPD/ErtzSTw2ZmbhI0lyKcQ Ugk0aRIOaq4vTE+EpRtI6hvhH4AIm+15sWPqxpfuNR0Dvigse+BhuypFsqI+AWiL dj5RrPSzrLcqWgjE5zSjUG4OmxS4NJJRY9UMNaEhtqsrgrFFj4iMX07bz6Joyp85 CHpGJhmFjPwU60OlUkGKwvs6TeQXUZlH9ypzXkNAhF4uDchTgEX7A/8yrqHzPx7/ r2T0Lww7kp106ACdy9wXTpq5v3tmfNZbZ7K0bEB4g8Ez43Hew1P5b/tabUV4pZL0 LkvDCA78ll8FHeuJjZA3+DKlEgyA2EWTs98VTQIDAQABAoIBAC65evCd08ZQqmtR KY3NUzHz9QQyojOli69xT/BZ3NqG/aXsuiDVGF3jFW+k+Q3c6Vv8+dGLuGBxH1/n J3oqXuswO26xhIym5Vvt6DEZpkMewH6DlImKdKlNqGuU6ja9Cu7NyHe8ARDvuj49 cTbjSQQ3z2k/jJqy1L6ITTX+6ZpRgZd9m/Ng5O0GBcoSiUjysfLgs5m5lHWCojL+ ppxqhsWXDM2ejIFGncGok798NNps+OkAM9EwEHcEI7qBo/UEsgXwnmlUvsyBvtq3 7NS/znsJlOT/PfbS3i0gIac6AmA0qh86zN+uC5yl44aY+WpwPqBua6eeKkpk3xAo LrCRxHECgYEA/689gaRf0ihJ5WpD/cq6XLFwxuu4/CmmNjYpTwol2S3lGnq03RLZ FhklvMKIkhfuaOLyrHgUWaYZVr2KBUU81qwHTVEZeN6rWPeXTsfgBnpShIYYXqBN ePyqVDuISs44Lsi74fhSNrqai6ow6GQYlZewcdjS2zVc35G1of/cWNMCgYEA3biv L49okrATQfBbdl5L6hueqNc8pfrv6EKYcw5SE48fFeHCToorKpaf4kf7GemITldD 29FFwukhyt1rJJI9Kvj6jKN49QZr3xS1d8QY0lOHnRRRLIg3x+VaD7RYOWuHbqs1 MKyzgeKkpWq6EkuaW2ZEQwL6cvzqGsbo1CRqBV8CgYBMNqEf1q5VR3sXbkCMEvTQ EngqYzNFvuhzelt/2ueDQCHtbawhxa993csY4+evnICNNTDe5gAy5MbiyyasAYJr /uVCT61HESCEKXEpo3yMkcOtCweSlTfim3XuG7y5h5TJpT4T0mA3PhI5FWb0rnmB hbCrjtTzUIm5foZkno7AzwKBgD2PTXSTCKHRqUchiQNwYvt497BBMmGTLpD6DIHF dBxiHGti5yQPULTeZT3aZmlnYaT+raSWkhvvxqYgm+Lnh3wq7MWnjanaQpEJmujJ 1WpwLrL6NR98IqCpmTvLAsPOiye6+WWuTZi+aKBU5Zy2yQCfgExqw0ax2f3dRD/C bH1ZAoGAOJ/pLNpetFyE/aaD0jBfMA6UACdutjWT4vFGmk/GwBh3/sHoMbON2c/P OeEM/N3/ZODOZHzXB1ALgWIjeoP2TegBfbniHf2d+j1/VRMTiYEMv3ws06YiWMLJ ioX2ZNntCCPlIti48TeFs0etqcHQgQ5rSLblyde3RIuRcqatQko=

nongnoobjung commented 9 years ago

not user friendly but better than nothing XD

nongnoobjung commented 9 years ago

i complie modify Legendary Client When start LegendaryClient.exe

i have window looking for .key how i can run it ?

nongnoobjung commented 9 years ago

finally get work now http://imgur.com/WHxSKRb but friend not working and can't queue or play custom game when queue solo or team it make client stopworking

for username password login chat use username = uid password = pass+"last5digitfromuid"

example uid 65631478 username = 65631478 password = pass31478

i'm finding how to fix chat

NitroXenon commented 9 years ago

wow good job nong now I know why I cant use pidgin to connect to the chat server

Good job man :P

nongnoobjung commented 9 years ago

@NitroXenon for user pidgin on password use "AIR_passXXXXX"

nongnoobjung commented 9 years ago

fix chat already chat work now everything work find XD

NitroXenon commented 9 years ago

@nongnoobjung oh thx~

nongnoobjung commented 9 years ago

have another problem Yesterday workfine but today everyqueue after found match popup playerquit http://imgur.com/4zt85UU

NitroXenon commented 9 years ago

@nongnoobjung Yesterday midnight Garena closed the chat server... I don't know why... Is it the problem causing the popup playerquit?

Btw. How can you find the username and password pattern of loging in to the chat server? Sniffing the packet?

nongnoobjung commented 9 years ago

@NitroXenon lolnote

NitroXenon commented 9 years ago

@nongnoobjung lol but now the auth method of chat server seems to be changed...

NitroXenon commented 9 years ago

@nongnoobjung Can you try to get the username and password pattern again? Yester I can use Pidgin to login to the chat server. But after installing Garena's update patch which released today, I can't use Pidgin to login to the chat server anymore... :broken_heart:

nongnoobjung commented 9 years ago

@NitroXenon pidgin work fine

NitroXenon commented 9 years ago

@nongnoobjung TW server dosen't work...

nongnoobjung commented 9 years ago

@NitroXenon i will find for you but that method work on TH Server

TW Chat Down ? in game chat dosen't work for me ip block ? http://imgur.com/WPLsmO2

update Garenawork https://www.youtube.com/watch?v=ds8QFQjRiBU&feature=youtu.be

i will pull request later after clean my code

nongnoobjung commented 9 years ago

now have a problem unknow warning make client crash

http://pastebin.com/QhdMjqw2

NitroXenon commented 9 years ago

@nongnoobjung I think there is no ip block in TW server. The chat server was downed in the afternoon. Before the server down , I can use pigin to login. After installing the update patch and the server uped, I can't use pidgin to login anymore.

Also, the error messages of pidg is : Not Authorized