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

📄 eggdrops.html

📁 黑客培训教程
💻 HTML
📖 第 1 页 / 共 3 页
字号:
  set modes-per-line 3<br>

  set mode-buf-length 200<br>

  set use-354 0<br>

  #unbind msg - ident *msg:ident<br>

  set no-chanrec-info 0<br>

  loadmodule transfer<br>

  set max-dloads 3<br>

  set dcc-block 0<br>

  set copy-to-tmp 1<br>

  set xfer-timeout 300<br>

  loadmodule share<br>

  set resync-time 900<br>

  #set private-owner 0<br>

  #set private-global 0<br>

  #set private-globals &quot;mnot&quot;<br>

  #set private-user 0</p>

<p>#loadmodule filesys<br>

  set files-path &quot;/home/mydir/filesys&quot;<br>

  set incoming-path &quot;/home/mydir/filesys/incoming&quot;<br>

  set upload-to-pwd 0<br>

  set filedb-path &quot;&quot;<br>

  set max-file-users 20<br>

  set max-filesize 1024<br>

  loadmodule notes<br>

  set max-notes 50<br>

  set note-life 60<br>

  set allow-fwd 0<br>

  set notify-users 1<br>

  set console-autosave 1<br>

  set force-channel 0<br>

  set info-party 0<br>

  loadmodule seen<br>

  checkmodule blowfish<br>

  #loadmodule assoc<br>

  source scripts/alltools.tcl<br>

  source scripts/action.fix.tcl<br>

  source scripts/userinfo1.0.tcl<br>

  loadhelp userinfo.help</p>

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

  ### End ###<br>

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

<p>OK!<br>

  After editing the first lines of the file, you can upload it to the shell. The 

  file MUST be in the bot's directory (E.G. ./eggdrop1.3.27/)<br>

  Now you need to run it. Since this is the first time you run it you need to 

  type in the bot's directory:</p>

<p>./eggdrop -m bot.conf</p>

<p>while bot.conf is your config filename.</p>

<p>Note: Next time you will run the bot (if it goes down, for example) you don't 

  need the '-m'</p>

<p>Now start an IRC client to connect to the bot's server, join it's channel and 

  wait for it to come in. When you see the bot message it with 'hello'(/msg BotNick 

  hello. You need to replace the word BotNick with the bot's nickname). Then it 

  will tell you to set a password. You do that by messaging it with 'pass password' 

  (/msg BotNick pass mypassword). Replace the word mypassword with your password, 

  whatever it is (for example: if your password is IRC, you need to do /msg BotNick 

  pass IRC)</p>

<p><b><font size="4"><a name="5"></a>--[ Basic commands ]--</font></b></p>

<p>Most commands are sent to the bot via DCC chat. First of all you need to DCC 

  CHAT with the bot, then enter your password and now you will be able to start 

  sending it some commands.<br>

  After you DCC it, you can start sending in commands. All the commands on the 

  DCC chat are started with a '.' (dot).<br>

  Note I: Some commands requires diffrent access levels. I will explain about 

  them later.<br>

  Note II: If you will get some &quot;Unknown command&quot; message it probably 

  means that your access level is simply too low.</p>

<p>A parameter in a &lt;&gt; is not an option, and in a [] is an option.</p>

<ul>

  <li>.help [command] - Shows you the help screen. Example: .help help</li>

  <li>.bots - Will display a list of connected bots. (Eggdrop can be connected 

    to other bots. This will also be discussed later)</li>

  <li>.status - Will display some status stuff about the bot.</li>

  <li>.whois &lt;handle&gt; - Will give you info about &lt;handle&gt;. Example: 

    .whois ^TCG^</li>

  <li>.jump &lt;server&gt; - Will connect the bot to a specific server. Example: 

    .jump irc.israel.net</li>

  <li>.+user &lt;handle&gt; &lt;hostmask&gt; - Will add a user to the bot. Example: 

    .+user ^TCG^ ^TCG^!talrun@*.il</li>

  <li>.-user &lt;handle&gt; - Will remove a user from the bot. Example: .-user 

    ^TCG^</li>

  <li>.+host &lt;handle&gt; &lt;hostmask&gt; - Will add &lt;hostmask&gt; to &lt;handle&gt;. 

    Example: .+host ^TCG^ *!*@*.israel.net</li>

  <li>.-host &lt;handle&gt; &lt;hostmask&gt; - Will remove &lt;hostmask&gt; to 

    &lt;handle&gt;. Example: .-host ^TCG^ *!*@*.israel.net</li>

  <li>.+chan &lt;#Channel&gt; - Will make the bot join &lt;#Channel&gt;. Example: 

    .+chan #Israel</li>

  <li>.-chan &lt;#Channel&gt; - Will make the bot part &lt;#Channel&gt;. Example: 

    .-chan #Israel</li>

  <li>.chanset &lt;#Channel&gt; &lt;Setting&gt; [Value] - Will set a specific 

    attribute of the channel (See later). Example: .chanset </li>

  <li>#Israel +autoop or Example 2: .chanset #Israel flood-chan 5:60</li>

  <li>.chattr &lt;handle&gt; &lt;flags&gt; [Channel] - Will give &lt;handle&gt; 

    the global flags &lt;flags&gt; or [Channel] flags. Example: .chattr ^TCG^ 

    +o Example 2: .chattr ^TCG^ +f #Israel</li>

  <li>.die [Reason] - Will kill the bot</li>

  <li>.save - Will make the bot save it's database (This is also done automatically)</li>

  <li>.rehash - Will force the bot to reload it's config file</li>

  <li>.reload - Will cause the bot to reload it's channel file</li>

  <li>.restart - Will restart the bot</li>

  <li>.+bot &lt;bot&gt; &lt;host:port&gt; - Will add a bot to the bot's database 

    for creating a botnet (See later). Example: .+bot Eggie the-shell.com:4556</li>

  <li>.-bot &lt;bot&gt; Will remove &lt;bot&gt; from the database</li>

  <li>.botattr &lt;bot&gt; &lt;flags&gt; - Just like .chattr but for bots</li>

  <li>.link &lt;bot&gt; - Will cause your bot to link &lt;bot&gt;</li>

  <li>.unlink &lt;bot&gt; - Will force the bot to break the link with &lt;bot&gt;</li>

  <li>.chpass [nick] &lt;pass&gt; - Will change your pass or [nick]'s pass if 

    you got access to change other users passwords.</li>

  <li>.nick &lt;newnick&gt; - Change your nick on the partyline. (See below)</li>

  <li>.op &lt;nickname&gt; &lt;channel&gt; - Will OP &lt;nickname&gt; at &lt;channel&gt;. 

    Example: .op ^TCG^ #Israel</li>

  <li>.voice &lt;nickname&gt; &lt;channel&gt; - Will VOICE &lt;nickname&gt; at 

    &lt;channel&gt;. Example: .voice ^TCG^ #Israel</li>

</ul>

<p>This is all for now.... More commands in the next chapters (or in the EggDrop 

  documentations, whichever you choose to read)<br>

  Another nice feature Eggdrop has is partyline.<br>

  It allows multiple users to DCC chat with the bot and create a small IRC network.<br>

  To say something, all you need to do is to just type it in and press enter.<br>

  If it doesn't start with a '.' (dot) it will be said in the partyline and all 

  the other bot users will see it.</p>

<p><b><font size="4"><a name="6"></a>--[ Users stuff ]--</font></b></p>

<p>Sometimes you want to add users to your bot so they'll have access to it. Here 

  I will describe how to add users and how to setup they`re access.</p>

<p>To add a user:<br>

  .+user &lt;handle&gt; &lt;hostmask&gt;</p>

<p>&lt;handle&gt; is the user name of the user. It's just like the user's nickname 

  but it is limited to 9 letters.<br>

  &lt;hostmask&gt; is the host that the user will use so the bot will recognize 

  it. You can always add and remove hostmasks using the .+host and the .-host 

  in the partyline.</p>

<p>After it you need to set the user's global access. To do that you type .chattr 

  &lt;handle&gt; &lt;flags&gt;<br>

  &lt;handle&gt; is the handle that you wrote in the .+user and &lt;flags&gt; 

  are the user flags. They will set it's access. Here is a list of them.</p>

<ul>

  <li>o global op (bot will op this user on any channel)</li>

  <li>m master (user is a bot master) </li>

  <li>n owner (user is the bot owner)</li>

  <li>t botnet master (user is a botnet master)</li>

  <li>x xfer (user has file-area access)</li>

  <li>j janitor (user is a file-area master)</li>

  <li>p party-line (user has party-line access)</li>

  <li>c common (user record is a common-access site) [see 'help common']</li>

  <li>u unshared (not sent to other share-bots)</li>

  <li>b bot (user is another bot)</li>

  <li>d global deop (user cannot get ops)</li>

  <li>k global auto-kick (user kick &amp; banned automatically)</li>

  <li>f global friend</li>

  <li>v global voice (user get +v automatically on +autovoice channels)</li>

  <li>a global auto-op (always op this user on join)</li>

  <li>h high-light flag, user sees highlighting in text output</li>

  <li>(plus 26 user-defined flags, A-Z)</li>

</ul>

<p>each channel that the user has joined will have a specific record<br>

  for it, with the channel-specific flags and possibly an info<br>

  line. the channel-specific flags are:<br>

  m master (user is a master for the channel)<br>

  n owner (user is an owner for the channel)<br>

  o op (bot will give this user chanop)<br>

  d deop (bot will not allow this user to become a chanop)<br>

  f friend (user is not punished for doing bad things)<br>

  k kick (user is auto-kicked)<br>

  v global voice (user get +v automatically on +autovoice channels)<br>

  q global quiet (user never gets +v on +autovoice channels)<br>

  a global auto-op (always op this user on join)<br>

  (plus 26 user-defined flags, A-Z) </p>

<p>Here is an example that show you how to add a bot global op and also give the 

  user +n (owner) at #Israel:</p>

<ul>

  <li>.+user ^TCG^ ^TCG^!*@*.co.il</li>

  <li>.chattr ^TCG^ +o</li>

  <li>.chattr ^TCG^ +n #Israel<br>

  </li>

</ul>

<p>After this, you need the user to set a password. He does this by messaging 

  the bot with 'PASS passeord' (Without the ').<br>

  /msg Bot pass blabla</p>

<p>Thats it.... you added him!<br>

  Now... If you would like to remove him you need to type: .-user &lt;handle&gt; 

  and it will delete him.</p>

<p><b><font size="4"><a name="7"></a>--[ Channels stuff ]--</font></b></p>

<p>This section is related to channel matters.<br>

  To join a bot into a channel you type in the DCC chat to him:</p>

<ul>

  <li>.+chan #Channel</li>

</ul>

<p><br>

  That will make him join #Channel</p>

<ul>

  <li>.-chan #Channel</li>

</ul>

<p>To set someone as a channel owner do: .chattr NickName +n #Channel<br>

  If you would like to gather some info on a channel type:<br>

  .chaninfo #Channel<br>

  To set various channel options, like maximum messages per second or maximum 

  deops per second.<br>

  To set something type: .chanset #Channel setting value<br>

  Available settings:</p>

<ul>

  <li>flood-chan (number:seconds)<br>

    how many channel messages in hom many seconds is a flood<br>

    not specifying or using number = 0 will not check chan floods!</li>

  <li>flood-ctcp (number:seconds)<br>

    how many channel messages in hom many seconds is a flood<br>

    not specifying or using number = 0 will not check ctcp floods!</li>

  <li>flood-deop (number:seconds)<br>

    how many deops in how many seconds is a mass de-op<br>

    not specifying or using number = 0 will not check de-op floods!</li>

  <li>flood-kick (number:seconds)<br>

    how many kicks in how many seconds is a mass kick?<br>

    not specifying or using number = 0 will not check mass kicks!</li>

  <li>flood-join (number:seconds)<br>

    how many joins/nick changes in how many seconds is a join flood?<br>

    not specifying or using number = 0 will not check join floods!</li>

</ul>

<p>The value format is usually how much time:how many seconds.<br>

  For example, if you would like to kick anyone that deop 3 users in 10 seconds 

  in #Channel you will do:<br>

  .chanset #Channel flood-deop 3:10<br>

  You can also set channel options by doing .chanset #Channel +/-option <br>

  Available options:</p>

<ul>

  <li> <b>clearbans</b> <br>

    clear all channel bans when the bot joins? (ie, force the channel's<br>

    ban list to match the bot's internal list)</li>

  <li><b>enforcebans</b><br>

    when a ban is set, kick people who are on the channel and match the<br>

    new ban? (ie, they were on the channel before the ban)</li>

  <li><b>dynamicbans</b><br>

    only activate bans on the channel when necessary? (this keeps the<br>

    channel's ban list from getting excessively long. the bot still remem-<br>

    bers every ban, but it only activates a ban on the channel when it sees<br>

    someone join who matches that ban.)</li>

  <li><b>userbans</b><br>

    allow bans to be made by users directly? (if turned off, the bot will<br>

    require all bans to be made through the bot's console)</li>

  <li><b>autoop</b><br>

    op users with the +o (op) flag as soon as they join the channel?<br>

    (hint: this is a BAD IDEA)</li>

  <li><b>bitch</b><br>

    only let users with +o (op) flag be channel ops?</li>

  <li><b>greet</b><br>

    say a user's info line when they join the channel?</li>

  <li><b>protectops</b><br>

    re-op a user with the +o (op) flag if they get deopped?</li>

  <li><b>statuslog</b><br>

    log the channel status line every 5 minutes? (some people think<br>

    it's annoying)</li>

  <li><b>stopnethack</b><br>

    de-op someone that enters the channel with server ops (ie, netsplit<br>

    ops) when they didn't have them before the split?</li>

  <li><b>revenge</b><br>

    remember people who deop/kick/ban the bot or valid ops, and punish them?<br>

    users with +f (friend) flag are exempt from revenge</li>

  <li><b>autovoice</b><br>

    voice users with +v (voice) flag when they join the channel?</li>

  <li><b>secret</b><br>

    prevent this channel from being listed on the botnet? (for paranoid<br>

    people)</li>

  <li><b>shared</b><br>

    share user channel info for this channel?</li>

  <li><b>cycle</b><br>

    cycle the channel when it becomes op-less?</li>

  <li><b>dontkickops</b><br>

    do you want the bot not to be able to kick +o flag users ?<br>

    letting them kick-flood for instance, to protect the channel agaisnt<br>

    clone attacks</li>

  <li><b>seen</b><br>

    respond to seen requests in the channel? (seen module must be loaded)</li>

</ul>

For example: .chanset #Channel +autoop +autovoice 

<p><b><font size="4"><a name="8"></a>--[ Linking up bots ]--</font></b></p>

<p>Bots can be connected together, to allow users on all the linked bots to chat 

  in one large partyline.<br>

  Here is how you link them up:</p>

<p>First, you need to know their hosts and ports. To get the hosts, you /whois 

  the bot while he is on IRC. To get the telnet port, you type in the bot .dccstat 

  (Note: Every bot must have a diffrent host / port)</p>

<p>Here is an example of what you get after typing .dccstat:</p>

<table width="100%" border="0" cellspacing="2" cellpadding="2">

  <tr> 

    <td>SOCK</td>

    <td>ADDR</td>

    <td>PORT</td>

    <td>NICK</td>

    <td>HOST</td>

⌨️ 快捷键说明

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