Eggbot fait de la résistance !
#1
Salut à tous (à nouveau)
Je ne me suis pas inscrit de manière désintéressée, mais ça ne m'empêchera pas de participer activement, une fois un peu d'expérience eggdrop acquise Smile

Je vous explique mon problème :
j'ai un serveur ircd-hybrid, qui fonctionne sur un LAN. Jusque là, pas de problème.
J'ai restreint les connexions des hôtes à ceux qui se connectent en SSH sur ma machine, avec un alias sur le hostname *@mon.pc*. En se connectant, ceux ci atterrissent sur une interface lshell (que je conseille à ceux qui veulent utiliser un environnement limité en ssh ! :mrgreen: ).
Jusqu'ici, tout va bien.

J'ai téléchargé eggbot, puisqu'une fois le raspberry-pi sorti, je comptais m'en servir pour créer un serveur IRC/VPN/etc. et donc je voulais mettre en place un système de bot, histoire de garantir l'intégrité des chans utilisés etc.

Je suis arrivé à le configurer en suivant les explications du site anglais, mais je rencontre un problème après l'exécution (sans souci) du bot; il ne rejoint pas mon serveur IRC !

Le bot est sensé pouvoir se connecter, j'ai autorisé plusieurs connexions sur une même IP, et les connexions ayant pour origine mon poste ne sont pas filtrées par ma restriction de hostname.

Je vous colle ci dessous les configs, si quelqu'un se sent le coeur de les analyser :

Code :
#! /usr/bin/eggdrop

### Core Settings ###
set owner "DOO"
set admin "Doo"
set nick "UglyBot"
set altnick "UglyBot-"
set realname "UGLYBOT"
set network "Others"
set net-type "5"
#set network "+e/+I/max-bans 20 Hybrid"
#set net-type "4"
set init-server { putserv "mode UglyBot +i" }
set default-port 6667
set servers {
  127.0.0.1:6667
  
}

set timezone "GMT"
set offset "0"
set env(TZ) "$timezone $offset"
set my-hostname "pc111-96.formation-continue.grenoble-inp.fr"
set my-ip "127.0.0.1"

### Logfile Settings ###
set max-logs 5
set max-logsize 0
set quick-logs 0
logfile mcobxs * "logs/UglyBot.log"
logfile jkp #RIE06 "logs/#RIE06.log"
set log-time 1
set keep-all-logs 1
set logfile-suffix ""
set switch-logfiles-at 300
set quiet-save 0

### Console Settings ###
set console "mkcobxs"

### File & Directory Settings ###
set userfile "UglyBot.user"
set pidfile "pid.UglyBot"
set chanfile "UglyBot.chan"
set force-expire 0
set share-greet 0
set use-info 1
set sort-users 0
set help-path "help/"
set text-path "text/"
set temp-path "/tmp"
set motd "text/motd"
set telnet-banner "text/banner"
set userfile-perm 0600
set mod-path "modules/"

### BotNet Settings ###
set botnet-nick "UglyBot"
listen 9272 all
set remote-boots 0
set share-unlinks 0
set protect-telnet 1
set dcc-sanitycheck 1
set ident-timeout 0
set require-p 1
set open-telnets 0
set stealth-telnets 0
set use-telnet-banner 0
set connect-timeout 30
set dcc-flood-thr 3
set telnet-flood 5:60
set paranoid-telnet-flood 1
set resolve-timeout 15

### Channel Settings ###
loadmodule channels
set global-flood-chan 4:5
set global-flood-deop 0:0
set global-flood-kick 0:0
set global-flood-join 4:05
set global-flood-ctcp 2:02
set global-flood-nick 5:20
set global-aop-delay 0:00
set global-idle-kick 0
set global-chanmode "nt"
set global-stopnethack-mode 0
set global-revenge-mode 0
set global-ban-time 0
set global-exempt-time 60
set global-invite-time 60

set global-chanset {
    +autoop           +autovoice
    -bitch            -cycle
    +dontkickops      -dynamicbans
    +dynamicexempts   +dynamicinvites
    -enforcebans      -greet
    -inactive         +nodesynch
    -protectfriends   +protectops
    -revenge          -revengebot
    -secret           +seen
    +shared           -statuslog
    +userbans         +userexempts
    +userinvites      -protecthalfops
    -autohalfop
}
loadmodule blowfish

S'il manque des infos, n'hésitez pas à me le signaler Smile

Pour info; l'output quand je lance eggbot est le suivant :
Code :
doo@monpc /usr/lib/eggdrop $ eggdrop UglyBot.conf

Eggdrop v1.6.19+SSL (C) 1997 Robey Pointer (C) 2008 Eggheads
[13:49] --- Loading eggdrop v1.6.19+SSL (Tue Feb 28 2012)
[12:49] Listening at telnet port 9272 (all).
[12:49] Module loaded: channels        
[12:49] Module loaded: blowfish        
[12:49] Userfile loaded, unpacking...
[12:49] === UglyBot: 1 channels, 1 users.
Launched into the background  (pid: 5864)

Pour info, ma config a été générée sur la page eggdrop (très efficace d'ailleurs) suivante :
http://www.egginfo.org/?page=config

j'ai simplement rajouté le module blowfish en dernière ligne
Linux/Unix - You think it doesn't work, but if you ask the right smartass for it, it works.
Apple - You think it work, but it doesn't.
Windows - You think it doesn't work, and it doesn't
Répondre Avertir
#2
Premier test à faire: connecte toi en party-line (telnet 127.0.0.1 9272) et une fois connecté, fais .jump
Tu verras certainement le souci.
Répondre
#3
Hum, n'étant pas expert de telnet, je suppose qu'il s'agissait uniquement d'une connexion telnet standard (pas de commande à passer avant jump) je te donne donc l'output :
Code :
doo@monpc /usr/lib/eggdrop $ killall eggdrop && eggdrop UglyBot.conf && telnet localhost 9272

Eggdrop v1.6.19+SSL (C) 1997 Robey Pointer (C) 2008 Eggheads
[14:22] --- Loading eggdrop v1.6.19+SSL (Tue Feb 28 2012)
[13:22] Listening at telnet port 9272 (all).
[13:22] Module loaded: channels        
[13:22] Module loaded: blowfish        
[13:22] Userfile loaded, unpacking...
[13:22] === UglyBot: 1 channels, 1 users.
Launched into the background  (pid: 6542)

Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.


UglyBot  (Eggdrop v1.6.19+SSL (C) 1997 Robey Pointer (C) 2008 Eggheads)

Please enter your nickname.
Doo

Enter your password.

*** Doo joined the party line.
.jump
What?  You need '.help'
Linux/Unix - You think it doesn't work, but if you ask the right smartass for it, it works.
Apple - You think it work, but it doesn't.
Windows - You think it doesn't work, and it doesn't
Répondre Avertir
#4
J'ai peur qu'il ne te manque des modules, essentiellement "server".

Je te conseille de refaire ta configuration en t'aidant de http://wiki.eggdrop.fr/Configuration_d%27un_eggdrop
Répondre
#5
Ok, je me mets dessus rapidement !
Merci :mrgreen:
Linux/Unix - You think it doesn't work, but if you ask the right smartass for it, it works.
Apple - You think it work, but it doesn't.
Windows - You think it doesn't work, and it doesn't
Répondre Avertir
#6
Hello !
Je me suis remis dessus ce matin même, t'avais raison !

j'ai rajouté :

Code :
##SERVER MODULE##
loadmodule server
set net-type 4
set nick "UglyBot"
set altnick "UglyBot-"
set realname "/msg UglyBot hello"
bind evnt - init-server evnt:init_server

proc evnt:init_server {type} {
  global botnick
  putquick "MODE $botnick +i-ws"
}

set init-server { putserv "mode UglyBot +i" }
set default-port 6667
set servers {
  127.0.0.1:6667
  
}
##########IRC MODULE ADDED################
#### IRC MODULE ####

# This module provides basic IRC support for your bot. You have to
# load this if you want your bot to come on IRC. The server and channels
# modules must be loaded for this module to function.
loadmodule irc

# Set this to 1 if you want to bounce all server bans.
set bounce-bans 1

# Set this to 1 if you want to bounce all server exemptions (+e modes).
# This is disabled if use-exempts is disabled.
set bounce-exempts 0

# Set this to 1 if you want to bounce all server invitations (+I modes).
# This is disabled if use-invites is disabled.
set bounce-invites 0

# Set this to 1 if you want to bounce all server modes.
set bounce-modes 0

# Set here the maximum number of bans you want the bot to set on a channel.
# Eggdrop will not place any more bans if this limit is reached. Undernet
# currently allows 45 bans, IRCnet allows 30, EFnet allows 100, and DALnet
# allows 100.
set max-bans 30

# Set here the maximum number of exempts you want Eggdrop to set on a channel.
# Eggdrop will not place any more exempts if this limit is reached.
set max-exempts 20

# Set here the maximum number of invites you want Eggdrop to set on a channel.
# Eggdrop will not place any more invites if this limit is reached.
set max-invites 20

# There is a global limit for +b/+e/+I modes. This limit should be set to
# the same value as max-bans for networks that do not support +e/+I.
set max-modes 30

# The following settings should be left commented unless the default values
# are being overridden. By default, exempts and invites are on for EFnet and
# IRCnet, but off for all other large networks. This behavior can be modified
# with the following 2 flags. If your network doesn't support +e/+I modes then
# you will be unable to use these features.
#
# Do you want to enable exempts (+e modes)?
#set use-exempts 0

# Do you want to enable invites (+I modes)?
#set use-invites 0

# Set this to 1 if you want the bot to kick for control character/ctcp
# avalanches to a channel. Remember that if it does, it won't ban them.
# This can start kick floods.
set kick-fun 0

# Set this to 1 if you want the bot to ban for control character/ctcp
# avalanches to a channel. This can prevent kick floods, but it also can
# fill the banlist.
set ban-fun 0

# If you want people to be able to add themselves to the bot's userlist
# with the default userflags (defined above in the config file) via the
# 'hello' msg command, set this to 1.
set learn-users 0

# Set here the time (in seconds) to wait for someone to return from a netsplit
# (i.e. wasop will expire afterwards). Set this to 1500 on IRCnet since its
# nick delay stops after 30 minutes.
set wait-split 600

# Set here the time (in seconds) that someone must have been off-channel
# before re-displaying their info line.
set wait-info 180

# Set this to the maximum number of bytes to send in the arguments
# of modes sent to the server. Most servers default this to 200.
set mode-buf-length 200

# Many IRCops find bots by seeing if they reply to 'hello' in a msg.
# You can change this to another word by un-commenting the following
# two lines and changing "myword" to the word wish to use instead of
# 'hello'. It must be a single word.
#unbind msg - hello *msg:hello
#bind msg - myword *msg:hello

# Many takeover attempts occur due to lame users blindly /msg ident'ing to
# the bot and attempting to guess passwords. We now unbind this command by
# default to discourage them. You can enable these commands by commenting the
# following two lines.
unbind msg - ident *msg:ident
unbind msg - addhost *msg:addhost

# Some IRC servers are using some non-standard op-like channel prefixes/modes.
# Define them here so the bot can recognize them. Just "@" should be fine for
# most networks. Un-comment the second line for some UnrealIRCds.

set opchars "@"
#set opchars "@&~"

# If you are so lame you want the bot to display peoples info lines, even
# when you are too lazy to add their chanrecs to a channel, set this to 1.
# *NOTE* This means *every* user with an info line will have their info
# line displayed on EVERY channel they join (provided they have been gone
# longer than wait-info).
set no-chanrec-info 0

### IRC MODULE - IRCnet SPECIFIC FEATURES (net-type 1) ###

# Attention: Use these settings *only* if you set 'net-type' to 1!

# At the moment, the current IRCnet IRCd version (2.10) doesn't support the
# mixing of b, o and v modes with e and I modes. This might be changed in the
# future, so use 1 at the moment for this setting.
set prevent-mixing 1

### IRC MODULE - OTHER NETWORKS (net-type 5) ###

# Attention: Use these settings *only* if you set 'net-type' to 5!

# If your network supports more users per kick command then 1, you can
# change this behavior here. Set this to the number of users to kick at
# once, or set this to 0 for all at once.
#set kick-method 1

# Some networks allow you to stack lots of channel modes into one line.
# They're all guaranteed to support at least 3, so that's the default.
# If you know your network supports more, you may want to adjust this.
# This setting is limited to 6, although if you want to use a higher value,
# you can modify this by changing the value of MODES_PER_LINE_MAX in
# src/chan.h and recompiling the bot.
#set modes-per-line 3

# Some networks don't include the +l limit and +k or -k key modes
# in the modes-per-line (see above) limitation. Set include-lk to 0 for
# these networks.
#set include-lk 1

# Set this to 1 if your network uses IRCu2.10.01 specific /who requests.
# Eggdrop can, therefore, ask only for exactly what's needed.
#set use-354 0

# If your network doesn't use rfc 1459 compliant string matching routines,
# set this to 0.
#set rfc-compliant 1

à la fin de ma configuration, et en effet : il me manquait bel et bien un module pour faire fonctionner mon bot Smile

Je cherche maintenant à mettre en place un auto-op, un petit tips serait le bienvenu ! :mrgreen:

merci encore pour le coup de main Smile
Linux/Unix - You think it doesn't work, but if you ask the right smartass for it, it works.
Apple - You think it work, but it doesn't.
Windows - You think it doesn't work, and it doesn't
Répondre Avertir
#7
Je mets le sujet dans le bon forum, c'est un eggdrop et un souci de configuration.

Qu'appelles-tu "auto-op" ? Pour que l'eggdrop s'identifie et soit oppé par les services ?
Répondre
#8
Non, pas vraiment.

En fait, la démarche qui me pousse à mettre en place un eggbot, est que je souhaite avoir un utilisateur admin fantôme, qui me donne le statut d'op quand je me connecte, et qui se charge de kicker les malvenus en temps voulu.

J'ai vu qu'il fallait passer par telnet sur cette page :
http://www.eggheads.org/support/egghtml/...users.html

Pourtant, comme tu peux le voir :
Code :
#4v: eggdrop v1.6.19+SSL -- UglyBot -- written Wed Feb 29 08:20:34 2012
Doo        - jlmnoptx
! #RIE06               0 almnov
--HOSTS -telnet!*@*
--LASTON 1330503577 partyline
--PASS +mescouillesavelo
--XTRA created 1330430211
::#RIE06 bans
&&#RIE06 exempts
$$#RIE06 invites
Je n'arrive pas à me faire connaître par le bot sur IRC, malgré le fait que j'ai mis le paramètre :
Code :
# If you want people to be able to add themselves to the bot's userlist
# with the default userflags (defined above in the config file) via the
# 'hello' msg command, set this to 1.
set learn-users 1
et que j'ai essayé de faire les commandes suivantes :
Code :
/msg UglyBot hello
/msg UglyBot IDENT monmotdepasse
Linux/Unix - You think it doesn't work, but if you ask the right smartass for it, it works.
Apple - You think it work, but it doesn't.
Windows - You think it doesn't work, and it doesn't
Répondre Avertir
#9
Ok, en fait l'eggdrop ne te reconnais actuellement que par ton accès telnet. Il suffit que tu ajoutes ton host sur IRC, en faisant:
Code :
.+host Doo Doo!username@127.0.0.1
(en remplaçant "username@127.0.0.1" par les bonnes valeurs)

Ensuite, pour kicker les utilisateurs malvenus, tu as plusieurs options. La plus simple est d'enregistrer tes utilisateurs (.+user ou .adduser) et de faire un petit script qui kick toute personne non reconnue.
Répondre
#10
Excellent ! ça a fonctionné Smile
Merci beaucoup !
Linux/Unix - You think it doesn't work, but if you ask the right smartass for it, it works.
Apple - You think it work, but it doesn't.
Windows - You think it doesn't work, and it doesn't
Répondre Avertir
#11
Rebonjour !

Voilà quelques mois que je me sers d'eggdrop, tout se passe bien !

Seulement, j'ai commencé à changer de serveur IRC pour passer sur Unreal IRC qui supporte le SSL Smile et là, le bas blesse !
Déjà, outre le fait que je doive me remémorer toutes les configurations d'eggdrop, la cgi de génération de config a disparu !
http://www.egginfo.org/?page=config
Sad
Comment allons nous nous en sortir ?!
Crying or Very sad
Linux/Unix - You think it doesn't work, but if you ask the right smartass for it, it works.
Apple - You think it work, but it doesn't.
Windows - You think it doesn't work, and it doesn't
Répondre Avertir


Atteindre :


Utilisateur(s) parcourant ce sujet : 1 visiteur(s)
Tchat 100% gratuit -Discutez en toute liberté