Page 1 of 1
Linking via IRC
Posted: Sat Dec 04, 2004 3:02 am
by XeKToReX
Hi,
i was just wondering what the command and syntax is to add a link via the ircd, i dont have access to the shell account to modify the unrealircd.conf.
Thanks,
XeKToReX
Posted: Sat Dec 04, 2004 3:47 am
by crazytoon
well this can be ugly

( I've never added a Link block from IRC ;P)
First you need "can_addline" Operflag to have access to /addline command
then you can add something like this :
/addline link server.blah.tld { username *; hostname ip/host_here; bind-ip *; port link_port_here; hub *; //compression-level num_here_only_with_zip_option; password-connect "pass"; password-receive "pass"; class servers; options { //zip; //autoconnect; //ssl; }; };
and /rehash (things with // in front are uncommented) (and I really don't know its work or not ;o )
Posted: Sat Dec 04, 2004 7:21 am
by aquanight
yeah you could use addline, but that of course requires that the ircd itself can write to the conf (maybe the admin is that überparanoid and did chmod 400 on the .conf?)
but then it'd be really fun for someone with that flag to do /addline include "/dev/random";

Posted: Sun Dec 05, 2004 1:11 am
by AngryWolf
aquanight wrote:but then it'd be really fun for someone with that flag to do /addline include "/dev/random";

Actually not, leastwise on Linux systems, because:
Code: Select all
[angrywolf@localhost Unreal3.2]$ stat /dev/random
File: `/dev/random'
Size: 0 Blocks: 0 IO Block: 4096 character special file
(...)
As you can see, /dev/random is 0 bytes long, and Unreal fails to load files with such size (that is, empty files):
*** Notice -- Loading IRCd configuration ..
*** Notice -- error: Could not load config file /dev/random
*** Notice -- error: IRCd configuration failed to load
Posted: Sun Dec 05, 2004 6:20 am
by Winbots
[quote=aquanight]
but then it'd be really fun for someone with that flag to do /addline include "/dev/random"; [/quote]
but then again, the ircd adds //added by nick!ident@host before each line added via /addline... so the admin could find out and remove the oline
