Server protocol: NETINFO

These are old archives. They are kept for historic purposes only.
Post Reply
Merwin
Posts: 6
Joined: Sat May 28, 2005 10:59 pm
Location: France, Marseille
Contact:

Server protocol: NETINFO

Post by Merwin »

Hello,

I'm a french coder so i'm sorry for my english !
I'm developping small services for Unreal but i don't understand two things:

1) What is the MD5:<digest> in the NETINFO command?
2) How can i get crypted host of users?

Thanks you a lot,
--
Merwin
Stealth
Head of Support
Posts: 2085
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Post by Stealth »

The MD5 is for the cloak keys, I believe services servers can just specify "*" for this param.

The crypted host is sent with SETHOST (see link below).

Some incomplete documentation about linking: http://web.ircsystems.net/stskeeps/unrealprotocol.html
Merwin
Posts: 6
Joined: Sat May 28, 2005 10:59 pm
Location: France, Marseille
Contact:

Sorry

Post by Merwin »

The SETHOST is used only with vhost, the encrypted host isn't sent by SETHOST !
I think i need to generate it by myself, but how can i do?
Stealth
Head of Support
Posts: 2085
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Post by Stealth »

You should enable NICKv2 anyway, so the crypted host is sent in the NICK command.
Merwin
Posts: 6
Joined: Sat May 28, 2005 10:59 pm
Location: France, Marseille
Contact:

No

Post by Merwin »

I'v always enable NICKv2 in the PROTOCTL, but there is no crypted host but an *:

Code: Select all

NICK Merwin 1 1117356539 merwin AMarseille-253-1-48-172.w83-205.abo.wanadoo.fr irc.------.fr 0 +x * :Merwin
I really need to generate them by myself!
How can i do?
w00t
Posts: 1136
Joined: Thu Mar 25, 2004 3:31 am
Location: Nowra, Australia

Post by w00t »

Make sure you're also sending the VHP (? I have a dodgy memory, but I'm pretty sure this is it.) protoctl token (this so should be documented ;)) - this instructs the remote server to send you the crypted host.

As for sethost, it is reasonably safe to ignore it. I do as it's a services server, does it really care about it's own network name etc? ;)
-ChatSpike IRC Network [http://www.chatspike.net]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
Merwin
Posts: 6
Joined: Sat May 28, 2005 10:59 pm
Location: France, Marseille
Contact:

Thanks

Post by Merwin »

Thanks you a lot it works fine!
It doesn't really care but it's for keep all infos in memory, my services will integrate a web server so i want to show alls these infos :)
w00t
Posts: 1136
Joined: Thu Mar 25, 2004 3:31 am
Location: Nowra, Australia

Post by w00t »

Make sure you link us back to them, I'd be interested to take a look sometime :).
-ChatSpike IRC Network [http://www.chatspike.net]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
Merwin
Posts: 6
Joined: Sat May 28, 2005 10:59 pm
Location: France, Marseille
Contact:

That's right

Post by Merwin »

This service is developped in TCL ('pure TCL', without eggdrop or other as we can see sometimes...), a major feature is that you can extend it very easyly with a system of 'bind' as Eggdrop !

A lot of TCL commands are added in order to manage users, you can easily create bots an manage them etc...

You want to add a anti-proxy? just add a antiproxy.tcl in the scripts dir and rehash, this file as juste to bind 'NEWUSER' event, scan his ip and why not gline him.

I hope you understand a little what i'm explaining lol (i'm french...)!
w00t
Posts: 1136
Joined: Thu Mar 25, 2004 3:31 am
Location: Nowra, Australia

Post by w00t »

Yeah, I understand :). Hanging around here and the support channel makes it fairly easy to interpret mangled english ;).
-ChatSpike IRC Network [http://www.chatspike.net]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
Merwin
Posts: 6
Joined: Sat May 28, 2005 10:59 pm
Location: France, Marseille
Contact:

Lag

Post by Merwin »

Some people think that tcl is a bad language to do services, but i'v tested them on some networks, there is no lag, if you connect them on local ip it's very good!

I think network with more than 3000/4000 users it is possible that it lag... but i haven't test!

Becouse oh the simplicity of TCL i think it's a good method :)
w00t
Posts: 1136
Joined: Thu Mar 25, 2004 3:31 am
Location: Nowra, Australia

Post by w00t »

It will lag ;).

For small networks it'll be fine, I've done some basic services in PHP before, as well as WinSE, which was originally crappily coded by myself in vb6, then redone wonderfully in vb.net by aquanight ;).
-ChatSpike IRC Network [http://www.chatspike.net]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
Post Reply