mIRC Home    About    Download    Register    News    Help

Print Thread
Socket bot connect to passworded server #242098 16/06/13 09:14 PM
Joined: May 2013
Posts: 26
D
DaRkCaSTLe1974 Offline OP
Ameglian cow
OP Offline
Ameglian cow
D
Joined: May 2013
Posts: 26
when a user connects to a server they can use a password for say connecting to places like twitchtv but i have tried many ways and can`t seem to get my token socket to connect what is the correct way to connnect a socket to a server with password if anyone knows please.
Thanks

Re: Socket bot connect to passworded server [Re: DaRkCaSTLe1974] #242099 16/06/13 10:16 PM
Joined: Jan 2004
Posts: 1,274
L
Loki12583 Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,274
When you login to a website you're given a cookie (or cookies), you need to store this cookie and pass it on every request afterward. If using Chrome you can press ctrl+shift+i to bring up the network panel, this will allow you to view the header and post data when logging in. Recreate the request in mIRC with the appropriate fields.

You pass the cookies in the request as:
Cookie: cookie1=value1; cookie2=value2;

Re: Socket bot connect to passworded server [Re: Loki12583] #242140 19/06/13 12:15 AM
Joined: May 2013
Posts: 26
D
DaRkCaSTLe1974 Offline OP
Ameglian cow
OP Offline
Ameglian cow
D
Joined: May 2013
Posts: 26
on mirc itself u can connect like this to the twitch seerver
/server 199.9.250.229 6667 passwordhere -i usernamehere
so how would i get my socket to use same exact method to login

Re: Socket bot connect to passworded server [Re: DaRkCaSTLe1974] #242141 19/06/13 01:00 AM
Joined: Jan 2004
Posts: 1,274
L
Loki12583 Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,274
You can see what mIRC is sending by opening a debug window: /debug @debug

Why are you using sockets to connect to an irc server?

Re: Socket bot connect to passworded server [Re: Loki12583] #242142 19/06/13 01:44 AM
Joined: May 2013
Posts: 26
D
DaRkCaSTLe1974 Offline OP
Ameglian cow
OP Offline
Ameglian cow
D
Joined: May 2013
Posts: 26
never thought of that and that worked i got it working now was sending pass and nick in wrong order thanks.
far as why would u wanna connect a socket to a server years ago people used to play socket bots a ton people just don`t use them like they used to is all.