This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Check hosts/names on the server

Old posts that have not been replied to for several years.
Locked
s
sege

Check hosts/names on the server

Post by sege »

Is it possible to go through all nicknames/hostmasks on the server with some random interval to find something specific?

I havent been coding eggie-TCL for a while but i remember that i didn't find that when I was coding like a year ago or something. I only found channel-function for this.

Can anyone give me a little example on how to find a nick and how to find a hostmask online on the server. The bot wont be in any channel (i want it hidden).

Thanks!
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Re: Check hosts/names on the server

Post by user »

sege wrote:Is it possible to go through all nicknames/hostmasks on the server with some random interval to find something specific?
Like what? Someone to spam? Most users are invisible nowadays and can't be seen unless you're on a channel they're on or know their nick already.

If your bot is a privileged user on the ircd, you can make it list all users and catch the response from the server using a couple of raw binds.
s
sege

Post by sege »

No no no, not to spam.

My bot will be ircop on the server and it's for finding a lovely person using like a billion different proxies to harass our users. We dont have ircops awake all the time and when he know someone is there he'll DDoS us far away from this planet, so I want a hidden bot to find him and hunt him down.
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

"NAMES" will give you all the nicks and "WHO" will give you hosts and more

Check the irc rfc for the numerics needed to fetch the response and the format of the messages.
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

The who command will return every user on the server.

While there will not be a code loop, due to the way the data is returned, your bot will be flooded with MB's of data.

I would sugest staggering the lookups with soemthing like "WHO a*", and rotating through the alphabet and numerics.
s
sege

Post by sege »

I started with a ISON, so now I have a trigger on nickname at least.

Its only around 200 users online so it'll probably work anyway i think.
Locked