Exaphis / HackQ-Trivia

Yet another HQ Trivia bot. Automatically scrapes HQ Trivia questions without OCR and answers them.
MIT License
89 stars 54 forks source link

How to modify this for loco trivia #47

Closed shreyas24cool closed 4 years ago

shreyas24cool commented 6 years ago

Hey I have sniffed the traffic for loco trivia. Please tell how to modify this script for loco trivia. It will be more helpful if you provide the modified script.

shreyas24cool commented 6 years ago

@yapal GET /v1/contests/ HTTP/1.1 User-Agent: Dalvik/2.1.0 (Linux; U; Android 6.0; Lenovo A7020a48 Build/MRA58K) X-APP-VERSION: 60 X-PLATFORM: 1 Device-Id: f542af7761bd429 Authorization: Bearer Ql7xwaHIItRhjySAjrCX6JmwsKXjL Host: api.getloconow.com Connection: Keep-Alive Accept-Encoding: gzip

shreyas24cool commented 6 years ago

@yapal I use ssl proxy sniffer which I downloaded from play store

Exaphis commented 6 years ago

@shreyas24cool Thanks for posting the traffic here. I will be creating a new repository for the Loco Trivia version soon.

PoonamChohdhary1991 commented 6 years ago

Can you help me modify it for iQ live trivia app 38467189-69981c2e-3b52-11e8-8c39-b07b92450b31

shreyas24cool commented 6 years ago

@PoonamChohdhary1991 Can you please sniff loco trivia app traffic and post it

PoonamChohdhary1991 commented 6 years ago

capture2 capture3 capture4

shreyas24cool commented 6 years ago

@Exaphis so it seems that first we will have to connect to loco websocket live that is http://realtime.getloconow.com/socket.io/?E10=3&transport=polling then we have to copy the sid which is given in response and go to websocket http://realtime.getloconow.com/socket.io/?E10=3&sid="provided sid"&transport=websocket
And then get the questions Can you write script which would do this

PoonamChohdhary1991 commented 6 years ago

@yapal I used Charles.

PoonamChohdhary1991 commented 6 years ago

Anyone able to modify it for brain baazi or loco or iQ live? Please help how to do it

PoonamChohdhary1991 commented 6 years ago

@yapal Have you installed certificate in your phone

U-r-Unknown commented 6 years ago

Yup. I did. I sniffed traffic but got something different. Did u sniff wen game was live

shreyas24cool commented 6 years ago

@Exaphis it seems that first we will have to connect to loco websocket live that is http://realtime.getloconow.com/socket.io/?E10=3&transport=polling then we have to copy the sid which is given in response and go to websocket http://realtime.getloconow.com/socket.io/E10=3&sid="providedsid"&transport=websocket And then get the questions Can you write script which would do this

nanip9997 commented 6 years ago

@shreyas24cool did you get the bearer token and user id if you sniffed them please post them

Pranav-In11 commented 6 years ago

What kind of modifications would be required for making it work for loco??

shreyas24cool commented 6 years ago

@Pranav-In11 it seems that first we will have to connect to loco websocket live that is http://realtime.getloconow.com/socket.io/?E10=3&transport=polling then we have to copy the sid which is given in response and go to websocket http://realtime.getloconow.com/socket.io/E10=3&sid="providedsid"&transport=websocket And then get the questions Can you write script which would do this

Pranav-In11 commented 6 years ago

I really don't know how to do πŸ˜… I asked this question because I thought how much time @Exaphis will take to modify it

Exaphis commented 6 years ago

Does anybody have the full JSON responses from both the initial connection and the websocket connection to Loco Trivia?

shreyas24cool commented 6 years ago

@Exaphis this is the zip file which contains the saved charles session of loco trivia when game was. You wil get everything you need from this loco.zip

Pranav-In11 commented 6 years ago

Any Progress?? @Exaphis

Exaphis commented 6 years ago

You can view my progress on https://github.com/Exaphis/HackLoco-Trivia/. It is not completed yet.

Pranav-In11 commented 6 years ago

How do I get bearer token & ID I have installed chales proxy,but if don't know how to get that token I have also tried some YouTube video but my device doesn't shows internet connection after using this proxy. Please help meπŸ˜…πŸ˜…πŸ˜…@Exaphis Thank you!

Exaphis commented 6 years ago

Yep, haven't been committing any changes yet. Currently working on Loco's socket.io protocol.

vaibhavk97 commented 6 years ago

i have been observing this app for a while now , cant seem to get to the api exactly from where the questions come. have you guys been successful in getting that link ? i did not see it anywhere in the charles proxy file that was attached here.

Exaphis commented 6 years ago

@U-r-Unknown Yes, I have seen it. However, I have no experience in JS and have no clue how to use the JS client in Python. The others I have tried (and have been posted to the issue in the Loco repo) don't seem to work for socket.io 2.

vaibhavk97 commented 6 years ago

i have some experience with JS . Can you share some logs so that i can get an idea . I have already unpinned the certificates of the app to allow packet sniffing in burp. thanks

U-r-Unknown commented 6 years ago

@Exaphis Please check this out. https://github.com/veo-labs/python-socketio-client

@Exaphis. Here is one more https://pypi.org/project/socketIO-client-nexus/

U-r-Unknown commented 6 years ago

Is this socket.io2 https://pypi.org/project/socketIO-client-2/0.7.1/

vaibhavk97 commented 6 years ago

@U-r-Unknown i will see if I can scrape it

U-r-Unknown commented 6 years ago

R u getting questions bro@exaphis. Any progress?

U-r-Unknown commented 6 years ago

There may be changes in app. Can any1 sniff traffic during live game n post here( with Charles or any other sniffers)

Exaphis commented 6 years ago

@U-r-Unknown Still a work in progress. Seems like many socket.io clients for Python are not well maintained, encountering some issues that are posted in Github but not resolved.

U-r-Unknown commented 6 years ago

Tnx for reply bro. Can u post the error so that any1 here can try to solve

Exaphis commented 6 years ago

Sure. The main problem I am encountering is nexus-devs/socketIO-client-2.0.3/issues/2. In the meantime, I will be porting this over to Java to use socket.io's official client there.

U-r-Unknown commented 6 years ago

Is Java working bro?

SimronJ commented 6 years ago

@PoonamChohdhary1991 Hey , can you tell me how did you got that traffic to show?

U-r-Unknown commented 6 years ago

@Exaphis bro u r not online these days. Reply once u come online bro

U-r-Unknown commented 6 years ago

Bro any updates? Waiting for ur reply. Plz help

ssahaxd commented 6 years ago

If anyone has Brain Baazi's Charles session please post.

n4y4nd3k4 commented 5 years ago

@shreyas24cool @PoonamChohdhary1991 @U-r-Unknown @nanip9997 u guys have bearer and user id of loco?

35w4r commented 5 years ago

any one give python script for practice loco automatically playing. if enter 20 practice loco games ,then select whatever answers option and finally get some coins...please provide me

35w4r commented 5 years ago

loco 4.2.6 version app sniffing with python script send me link.

35w4r commented 5 years ago

practice loco coins game python script is available please put on?

35w4r commented 5 years ago

Hey I have sniffed the traffic for loco trivia. Please tell how to modify this script for loco trivia. It will be more helpful if you provide the modified script.

please provide loco coins game python script

35w4r commented 5 years ago

Does anybody have the full JSON responses from both the initial connection and the websocket connection to Loco Trivia?

please send python script for loco coins game.

35w4r commented 5 years ago

trivia game google ocr https://openload.co/f/sRDpE6QmXHo/Trivia_OCR_Search-master.zip

MaheshMahi19 commented 5 years ago

@Exaphis I Just tried to connect loco websocket using headers and sid but its Just connecting and closing itself... any help....? :)

MaheshMahi19 commented 5 years ago

Hoo.. I got it. its working fine for me Loco Trivia WebSocket