⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 eggdrops.html

📁 黑客培训教程
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<html>

<head>

<title>eggdop</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<STYLE type=text/css>A:active {

	TEXT-DECORATION: none

}

A:hover {

	TEXT-DECORATION: underline

}

A:link {

	TEXT-DECORATION: none

}

A:visited {

	TEXT-DECORATION: none

}

</STYLE>



</head>

<body bgcolor="#FFFFFF" text="#000000">

<table width="680" border="0" cellspacing="2" cellpadding="2" align="center">

  <tr> 

    <td width="693"> 

      <pre>

                        :::::::::   ::::::::  :::::::::  :::::::::: 

                        :+:    :+: :+:    :+: :+:    :+: :+:        

                        +:+    +:+ +:+        +:+    +:+ +:+        

                        +#++:++#+  +#++:++#++ +#++:++#:  :#::+::#   

                        +#+    +#+        +#+ +#+    +#+ +#+        

                        #+#    #+# #+#    #+# #+#    #+# #+#        

                        #########   ########  ###    ### ###  

                         

              	             <a href="http://blacksun.box.sk" target="_blank">http://blacksun.box.sk</a>

                           _____________________________

    ______________________I       <b>   Topic:</b>             I_____________________

   \                      I                             I                    /

    \     HTML by:        I    <b>The EggDrop IRC Bot</b>      I   Written by:     /

    >                     I       <b>Version 1.0</b>           I                  < 

   /      <a href="mailto:black_mesa@gmx.de">Martin L.</a>       I_____________________________I   <a href="mailto:talrun@actcom.co.il">The Cyber God</a>   \

  /___________________________>                    <_________________________\

</pre>

    </td>

  </tr>

</table>

<p>&nbsp;</p>

<p><b><font size="4">--[ Editor Notes ]--</font></b><br>

  Please send comments, questions and feedback to <a href="mailto:talrun@actcom.co.il">talrun@actcom.co.il</a> 

  This tutorial has been written by a member of Black Sun Research Facility. Visit 

  us at <a href="http://blacksun.box.sk" target="_blank">blacksun.box.sk</a>.</p>

<p><font size="4"><b>--[ Table Of Contents ]--</b></font><br>

  <a href="#1">What is EggDrop?</a><br>

  <a href="#2">What do I need to run an EggDrop bot?</a><br>

  <a href="#3">Where can I get it?</a><br>

  <a href="#4">How do I set up the bot?</a><br>

  <a href="#5">Basic commands</a><br>

  <a href="#6">Users stuff</a><br>

  <a href="#7">Channels stuff</a><br>

  <a href="#8">Linking up bots</a><br>

  <a href="#9">What is the TCL and what does it have to do with EggDrop?</a><br>

  <a href="#10">Tips and Tricks</a><br>

  <a href="#11">Bibliography</a></p>

<p><b><font size="4"><a name="1"></a>--[ What is EggDrop? ]--</font></b></p>

<p> Note: This is taken from the readme file of EggDrop 1.3.28</p>

<p>Eggdrop is an IRC bot, written in C. If you don't know what IRC is, this is 

  probably not whatever you're looking for! Eggdrop, being a bot, sits on a channel 

  and takes protective measures: to keep the channel from being taken over (in 

  the few ways that anything CAN), to recognize banished users or sites and reject 

  them, to recognize privileged users and let them gain ops, etc.</p>

<p>One of the more unique features of eggdrop is its &quot;partyline&quot;, accessible 

  via DCC chat, which allows you to talk to other people lag-free. Consider it 

  a multi-way DCC chat, or a miniature IRC (complete with channels). You can link 

  up with other bots and expand the partyline until it actually becomes something 

  very much like IRC, in fact. </p>

<p><b><font size="4"><a name="2"></a>--[ What do I need to run an EggDrop bot? 

  ]--</font></b></p>

<p>To get eggdrop running you need a few things:</p>

<ul>

  <li>Some sort of a Unix account (whether you have local access or whether it's 

    a remote shell account, as long as it let's you run Eggdrop and keep running 

    processes after you log out)</li>

  <li>Pretty good knowledge of IRC and Unix, including what DCC chat is.</li>

  <li>About 500k of disk space, or more, depending on your system (on Linux, the 

    executable takes up about 400k currently -- it will be a lot larger on a RISC 

    system)</li>

  <li> The TCL libraries (lib files), which can be found at <a href="http://www.linuxberg.com" target="_blank">www.linuxberg.com</a></li>

</ul>

<p>If you want your bot to be 24/7 (24 hours a day, 7 days in a week) you need 

  a shell account on a computer with a 24/7 Internet connection (unless you yourself 

  have such a computer... in which case, you must give me an unrestricted shell 

  account before you proceed reading this document... kidding :-) ). You can get 

  such shells by either buying them or kissing up to the admin and making him 

  give you one for free (none of those &quot;free shell account providers&quot; 

  will let you run an Eggdrop bot, because they kill all of your processes, including 

  the bot, once you log out). There are lots of good shell providers out there. 

  I personally recommand www.foonet.net.</p>

<p><b>Now to the TCL part:</b></p>

<p>Before you can compile eggdrop, you need to have TCL installed on your system. 

  Most systems should already have TCL on them by now -- you can check by trying 

  the command &quot;tclsh&quot;. If it works, you will be given a &quot;%&quot; 

  prompt, and you can type &quot;exit&quot; to exit the program. This means your 

  system has TCL installed. If tclsh doesn't work, it probably means that you 

  don't have TCL, and you will need to download and install it. The best FTP site 

  to download TCL from is: <a href="ftp://ftp.scriptics.com/pub/tcl" target="_blank">ftp://ftp.scriptics.com/pub/tcl</a></p>

<p>The best version at the moment this paper has been written is 8.0.4 (as recommended 

  by dw@Undernet). Versions such as 7.6p2 are still good enough to use though.</p>

<p>Note: I won't explain how to download files from FTP sites on this tutorial, 

  nor how to install the TCL library. There are enough tutorials and documents 

  on this subject already.</p>

<p>If you bought a shell and you know they allow running IRC bots from it (such 

  an important piece of information should be written somewhere on the shell provider's 

  website), you can be completely sure that they already got the TCL library.</p>

<p>Before you begin, ask yourself if you really need a bot. Most IRC servers allow 

  only a handful of bots -- some forbid them outright. The reason? Too many people 

  run bots as &quot;toys&quot; or as a means of destruction. If you want to use 

  eggdrop for destructive purposes, go ahead and erase this directory now. It's 

  almost impossible to do what you want with this bot.</p>

<p>You should try to find at least one server that will allow you to run a bot. 

  If you use an ISP (Internet Service Provider) that runs its own IRC server, 

  check to make sure that bots are okay. If you're going to use a server somewhere 

  else, read the MOTD (Message Of The Day) and find out what their bot policy 

  is. Following the rules will go a long way toward making your bot accepted.</p>

<p>Generally speaking, you only need a bot on EFnet if your channel has a constant 

  supply of users (24 hours a day) and no bot. If your channel already has a couple 

  of bots on it, it probably doesn't need any more. More bots don't do any more 

  good, and just waste bandwidth. On the Undernet you will probably never need 

  more than one bot per channel. Also note that it's generally not acceptable 

  to use a bot to &quot;keep a channel open&quot; when it's not in use. However, 

  policies differ from net to net and server to server so check around before 

  starting. You need multiple bots if you got an extremely large channel.</p>

<p>Bots CANNOT provide absolute protection. Nothing can. Eggdrop will try its 

  hardest but there are no guarantees.</p>

<p><b><font size="4"><a name="3"></a>--[ Where can I get it? ]--</font></b></p>

<p>Eggdrop can be downloaded from various sites across the world. Here are some:<br>

  The official eggdrop FTP site: <a href="ftp://ftp.eggheads.org" target="_blank">ftp.eggheads.org</a>.<br>

  Current mirrors are:<br>

  <a href="ftp://ftp.de.eggheads.org" target="_blank">ftp.de.eggheads.org</a><br>

  <a href="ftp://ftp.fr.eggheads.org" target="_blank">ftp.fr.eggheads.org</a><br>

  I also recommand the site <a href="ftp://ftp.apolloweb.net" target="_blank">ftp.apolloweb.net</a> 

  (Dir: /pub/files/) since it is extremely fast. (Sometimes when you download 

  Eggdrop FROM a shell using this site you can reach 100K-170K per second, because 

  shell accounts normally have quite a fast connection)</p>

<p>Also, there are 3 major versions of EggDrop: 1.1.5, 1.3.X, 2.0<br>

  First of all, 2.00 SUCKS. It lacks some help/text files, it's compilation can 

  be hard and it got almost no different from 1.3.X<br>

  EggDrop 1.1.5 claims to be the most stable one, but most of the TCL scripts 

  (See below) are coded for 1.3.X, hence I recommand using 1.3.X. All the information 

  in this tutorial from now on will regard EggDrop1.3.X.</p>

<p><b><font size="4"><a name="4"></a>--[ How do I set up the bot? ]--</font></b></p>

<p>Ok...<br>

  First of all, login to your shell and download EggDrop using FTP. (You can also 

  upload it using FTP but downloading it through the shell is usually much faster)</p>

<p>Now type these commands:</p>

<p>gunzip eggdrop1.3.27.tar.gz<br>

  tar xf eggdrop1.3.27.tar<br>

  cd eggdrop1.3.27<br>

  ./configure</p>

<p>Ok<br>

  eggdrop1.3.27 refers to the bot filename. It depends on the site and the eggdrop 

  version you downloaded. It can also be, for example, eggdrop1.3.23.tgz. Then 

  you'll need to type:</p>

<p>gunzip eggdrop1.3.23.tgz<br>

  tar xf eggdrop1.3.23.tar<br>

  cd eggdrop1.3.23<br>

  ./configure</p>

<p>After you type the ./configure you will need to wait. This will check whether 

  you can run EggDrop on this system or not. If it finishes with no error you 

  need to type</p>

<p>make</p>

<p>This will build the EggDrop package. If this is done with NO errors (E.G. it 

  gets to the linking part) you can now start building the config file. The config 

  file is a set of lines that defines what will be the bot nick, server and so 

  on...</p>

<p>Here is an example of an easy-to-use config file. You need to copy everything 

  from '### Start ###' to '### End ###' into a file and then upload it to the 

  shell with a name like bot.conf or eggie.conf or whatever you like :-)</p>

<p>#######################<br>

  ### Start ###<br>

  #######################<br>

  ### Edit from here: ###<br>

  #######################</p>

<p># Bot's IDENT<br>

  set username &quot;Bot&quot;<br>

  # Bot's Owner(s)/Master(s)<br>

  set admin &quot;^TCG^&quot;<br>

  # Bot's IRC network<br>

  set network &quot;EFNet&quot;<br>

  # The telnet port that the bot will open for incoming connections<br>

  listen 2000 all<br>

  # Bot's Owner(s)/Master(s)<br>

  set owner &quot;^TCG^&quot;<br>

  # Bot's NickName<br>

  set nick &quot;Bot&quot;<br>

  # Bot's Alternative nickname<br>

  set altnick &quot;-Bot&quot;<br>

  # Bot's Real Name<br>

  set realname &quot;Eggdrop Bot&quot;<br>

  # The bot static channel. you can only specify 1 channel here.<br>

  set confchan &quot;#Bots&quot;<br>

  # The bot IRC servers<br>

  set servers {<br>

  irc.freei.net<br>

  } </p>

<p>##################################################################<br>

  ##################################################################<br>

  ###### !!! You don't need to change anything from here !!! #######<br>

  ##################################################################<br>

  ##################################################################</p>

<p>set timezone &quot;EST&quot;<br>

  set max-logs 5<br>

  set log-time 1<br>

  set keep-all-logs 0<br>

  set console &quot;mkcobxs&quot;<br>

  logfile mkco * &quot;$nick.log&quot;<br>

  set userfile &quot;$nick.user&quot;<br>

  set sort-users 0<br>

  set help-path &quot;help/&quot;<br>

  set temp-path &quot;/tmp/&quot;<br>

  set motd &quot;motd&quot;<br>

  set protect-telnet 0<br>

  set dcc-sanitycheck 0<br>

  set ident-timeout 30<br>

  set require-p 1<br>

  set open-telnets 0<br>

  set connect-timeout 15<br>

  set dcc-flood-thr 3<br>

  set telnet-flood 5:5<br>

  set resolve-timeout 15<br>

  set ignore-time 15<br>

  set debug-output 0<br>

  set hourly-updates 00<br>

  set notify-newusers &quot;HQ&quot;<br>

  set default-flags &quot;fv&quot;<br>

  set whois-fields &quot;url&quot;<br>

  set remote-boots 2<br>

  set share-unlinks 1<br>

  set die-on-sighup 0<br>

  set die-on-sigterm 0<br>

  #unbind dcc n tcl *dcc:tcl<br>

  #unbind dcc n set *dcc:set<br>

  unbind dcc n simul *dcc:simul<br>

  set max-dcc 50<br>

  set enable-simul 1<br>

  set allow-dk-cmds 1<br>

  set mod-path &quot;./&quot;<br>

  loadmodule channels<br>

  set chanfile &quot;$nick.chan&quot;<br>

  set ban-time 10<br>

  channel add $confchan {<br>

  chanmode &quot;+nt&quot;<br>

  idle-kick 0<br>

  flood-chan 4:6<br>

  }<br>

  channel set $confchan -clearbans -enforcebans +dynamicbans +userbans -autoop 

  -bitch -greet +protectops -statuslog -stopnethack -revenge +autovoice -secret 

  -shared -cycle<br>

  set share-greet 0<br>

  set use-info 1<br>

  loadmodule server<br>

  set keep-nick 1<br>

  set strict-host 0<br>

  set quiet-reject 1<br>

  set lowercase-ctcp 0<br>

  set answer-ctcp 3<br>

  set flood-msg 5:5<br>

  set flood-ctcp 3:5<br>

  set never-give-up 1<br>

  set strict-servernames 0<br>

  set default-port 6667<br>

  set server-cycle-wait 60<br>

  set server-timeout 15<br>

  set servlimit 0<br>

  set check-stoned 1<br>

  set use-console-r 0<br>

  set serverror-quit 1<br>

  set max-queue-msg 300<br>

  set trigger-on-ignore 0<br>

  set use-silence 0<br>

  set handle-mode_r 0<br>

  loadmodule ctcp<br>

  loadmodule irc<br>

  set bounce-bans 0<br>

  set allow_desync 1<br>

  set kick-method 1<br>

  set kick-bogus 1<br>

  set learn-users 1<br>

  set wait-split 300<br>

  set wait-info 180<br>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -