tomer8007 / kik-bot-api-unofficial

Python API for writing unoffical Kik bots that act like humans
MIT License
126 stars 76 forks source link

**** API FAILS LOGIN AFTER CAPTCHA **** #223

Closed Doktor-Apokalypse closed 4 months ago

Doktor-Apokalypse commented 1 year ago

Kik have done something that has completely broken this API. All bots now go to captcha and then wont log-in after throwing an error: AttributeError: 'My_Project_Bot' has no attribute 'login'

Is this API still being maintained? Or is there a newer python API that can do everything this one does?

Only just got my head around python and this API, and the moment my admin bot becomes capable enough to release into the wild, Kik fcks around and destroys 2 years of my work.

I'm far too old to be learning a new language just to use a different API

If anybody can help....Thanks

Dyingatm commented 1 year ago

I tried updating device_configuration.py: kik_version_15_49_info = {'kik_version': '15.49.0.27501', 'classes_dex_sha1_digest': '5o61frOsakJJ2iCYafCoKHtyu7w='}

kik_version_info = kik_version_15_49_info # a kik version that's not updated might cause a captcha on login

but didnt work..

maybe @bluemods can help you, He is the only one still working on it I think.

Doktor-Apokalypse commented 1 year ago

I tried the kik version from my burner phone and generated the SHA1 digest: kik_version_15_49_info = {'kik_version': '15.31.0.23938', 'classes_dex_sha1_digest': 'iJ7HR5j5VbMGCkiRJYZ4AvvsGTg='} and used the android and device ID from that phone, and that helped nothing either.

Dyingatm commented 1 year ago

Here is some info regarding the SHA1 digest which doesnt make any sense due to a unlogical pattern :

kik_version_11_info = {"kik_version": "11.1.1.12218", "classes_dex_sha1_digest": "aCDhFLsmALSyhwi007tvowZkUd0="}

found in Manifest and Cert

kik_version_13_info = {"kik_version": "13.4.0.9614", "classes_dex_sha1_digest": "ETo70PFW30/jeFMKKY+CNanX2Fg="}

found in version 14.0.0.11130 & 13.4.0.9614 in Manifest

kik_version_14_info = {"kik_version": "14.0.0.11130", "classes_dex_sha1_digest": "9nPRnohIOTbby7wU1+IVDqDmQiQ="}

not found at all neither in cert or manifest

kik_version_14_5_info = {"kik_version": "14.5.0.13136", "classes_dex_sha1_digest": "LuYEjtvBu4mG2kBBG0wA3Ki1PSE="}

found in Manifest

kik_version_15_21_info = {'kik_version': '15.21.0.22201', 'classes_dex_sha1_digest': 'MbZ+Zbjaz5uFXKFDM88CwFh7DAg='} #found in Cert

Your version doesnt seem to exist on the NET, I was only able to find 15.31.1.23601.

bluemods commented 1 year ago

How do I get ahold of @bluemods? If anyone can solve this new issue with kik, ill pay them 1K.

You must be involved in a lot of spam bot activity if you are willing to pay that much for a fix.

Edit: after my reply, he deleted the post and changed his username: https://api.github.com/user/108567187 Be careful what information you put out in public, spammers are watching and waiting for help, as you can see.

Doktor-Apokalypse commented 1 year ago

That was my first thought as soon as I saw that reply. He's probably part of the reason it's been patched.

On Sat, 11 Mar 2023, 14:47 Blue Mods, @.***> wrote:

How do I get ahold of @bluemods https://github.com/bluemods? If anyone can solve this new issue with kik, ill pay them 1K.

You must be involved in a lot of spam bot activity if you are willing to pay that much for a fix.

— Reply to this email directly, view it on GitHub https://github.com/tomer8007/kik-bot-api-unofficial/issues/223#issuecomment-1464926890, or unsubscribe https://github.com/notifications/unsubscribe-auth/AY4RAIBILVX4IRUXUUKIPA3W3SF7JANCNFSM6AAAAAAVVIARUM . You are receiving this because you authored the thread.Message ID: @.***>

BL4RE commented 1 year ago

If you think 1k is a lot of money you should re-evaluate your life. Just saying...

I also think you are confused on where you think you are.. this is github not dontsharehub. You're on here policing these threads commanding people not to share information. What kinda authority do you think you have here? You wouldn't be as far as you are with Kik, if you didn't read the information shared here, you moron.

Doktor-Apokalypse commented 1 year ago

1k is a lot of money when on disability

On Sat, 11 Mar 2023, 15:38 Blare, @.***> wrote:

If you think 1k is a lot of money you should re-evaluate your life. Just saying...

— Reply to this email directly, view it on GitHub https://github.com/tomer8007/kik-bot-api-unofficial/issues/223#issuecomment-1464936739, or unsubscribe https://github.com/notifications/unsubscribe-auth/AY4RAIENV3UQYCVOQ6TEWKLW3SL6RANCNFSM6AAAAAAVVIARUM . You are receiving this because you authored the thread.Message ID: @.***>

tomer8007 commented 1 year ago

It appears you can still try to login without Captcha for some users, for example

Username: a
Password: b
[2023-03-21 00:04:29,848] INFO   (thread Kik Connection): [+] Initiating the Kik Connection thread and connecting to kik server...
[2023-03-21 00:04:30,747] INFO   (thread Kik Connection): [!] Connected.
[2023-03-21 00:04:31,126] INFO   (thread Thread-1 (_on_new_data_received)): [+] Logging in with username 'a' and a given password *...
[2023-03-21 00:04:31,765] INFO   (thread Thread-3 (_on_new_data_received)): [-] Login error: Password mismatch

@Doktor-Apokalypse @bluemods Anyway, 75471620fdbb93061a11c1b31366479509b25022 created some problems so I committed 657ac09c9a7b34e488acda28efa5c89a35ae50e4. Now, you can solve the CAPTCHA using a browser and the API works nicely:

[2023-03-21 00:01:53,551] INFO   (thread Thread-3  ): [-] Login error: a Captcha is required to continue
To continue, complete the captcha in this URL using a browser: https://captcha.kik.com/?id=3-CAISoQFrYysZg8XXEtOCv46jpdyGUAK.....
Next, intercept the request starting with 'https://kik.com/captcha-url' using F12, and paste the response parameter here: eyJraWQi.......m5Q
[2023-03-21 00:03:57,414] INFO   (thread Thread-3  ): [+] Logging in with username 'XXXXXXX' and a given password ******...
[2023-03-21 00:03:59,044] INFO   (thread Thread-5  ): [+] Logged in as XXXXXXX
Full name: XXXXX XXXXXXXX
[2023-03-21 00:03:59,044] INFO   (thread Thread-5  ): [+] Closing current connection and creating a new authenticated one.
[2023-03-21 00:03:59,044] INFO   (thread Thread-5  ): [!] Disconnecting.
[2023-03-21 00:04:00,045] INFO   (thread Kik Connection): [+] Initiating the Kik Connection thread and connecting to kik server...
[2023-03-21 00:04:00,974] INFO   (thread Kik Connection): [!] Connected.
[2023-03-21 00:04:00,974] INFO   (thread Kik Connection): [+] Establishing authenticated connection using kik node 'XXXXXXX_v2y'...
[2023-03-21 00:04:01,679] INFO   (thread Thread-7  ): [+] Authenticated successfully.
bluemods commented 1 year ago

Usernames are 2 characters minimum though, so I'm not sure the first example is valid. I appreciate you checking it out though. I will probably adapt this into my repo and submit a PR back soon

tomer8007 commented 1 year ago

@bluemods Oh, yeah, this is a better explanation, so you can forget about my first claim.

Doktor-Apokalypse commented 1 year ago

thanks guys. this helped a lot. got connection now. still locks up after solving captcha, but just restarting the script logs me in fine now.

On Mon, 20 Mar 2023 at 18:28, Tomer @.***> wrote:

@bluemods https://github.com/bluemods Oh, yeah, this is a better explanation, so you can forget about my first claim.

— Reply to this email directly, view it on GitHub https://github.com/tomer8007/kik-bot-api-unofficial/issues/223#issuecomment-1477027668, or unsubscribe https://github.com/notifications/unsubscribe-auth/AY4RAICOFAPVOHVZGEI3OJTW5DKYVANCNFSM6AAAAAAVVIARUM . You are receiving this because you were mentioned.Message ID: @.***>

tomer8007 commented 1 year ago

@Doktor-Apokalypse Can I close this issue?

vipguy commented 1 year ago

Captcha is still needing to be solved , I'd say not fixed 👍

On Tue, Mar 21, 2023, 2:59 p.m. Tomer @.***> wrote:

@Doktor-Apokalypse https://github.com/Doktor-Apokalypse Can I close this issue?

— Reply to this email directly, view it on GitHub https://github.com/tomer8007/kik-bot-api-unofficial/issues/223#issuecomment-1478432518, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARY6SBQOUUHURJ4AWFTKGRLW5H3BZANCNFSM6AAAAAAVVIARUM . You are receiving this because you are subscribed to this thread.Message ID: @.***>

tomer8007 commented 1 year ago

OK. Adding #37 and #59 for reference.

tomer8007 commented 4 months ago

Closing this issue because the reported error does not happen anymore and the captcha is understandable,