Showing posts with label How To. Show all posts
Showing posts with label How To. Show all posts

Thursday, August 8, 2013

How to setup crontab for UnrealIRCD

ircd.cron.in
0,10,20,30,40,50 * * * * @IRCDDIR@/ircdcron/ircdchk >/dev/null 2>&1

ircdchk.in
#!/bin/sh
#
# UnrealIRCD Crontab v2.1
# $Id$
#
# This is a script suitable for use in a crontab. It checks to make sure
# your ircd is running. YOU NEED A SEPARATE CRON JOB FOR EACH IRCD. If your
# ircd isn't found, it'll try to start it back up.
#
# You'll need to edit this script for your ircd.
#
# To check for your ircd every 10 minutes, put the following line in your
# crontab:
# 0,10,20,30,40,50 * * * * /home/mydir/ircdchk
# And if you don't want to get email from crontab when it checks you ircd,
# put the following in your crontab:
# 0,10,20,30,40,50 * * * * /home/mydir/ircdchk >/dev/null 2>&1
#
# change this to the mail address to mail output to:
# MAIL=me
# These values shouldn't need to be changed
# The path to the ircd binary
ircdexe="@BINDIR@"
# The path to the ircd pid file
ircdname="@IRCDDIR@/ircd.pid"
########## don't change anything below here ##########
if test -r $ircdname; then
  # there is a pid file -- is it current?
  ircdpid=`cat $ircdname`
  if `kill -CHLD $ircdpid >/dev/null 2>&1`; then
    # it's still going
    # back out quietly
    exit 0
  fi
  echo "UnrealIRCd Crontab notice:"
  echo ""
  echo "Stale $ircdname file (erasing it)"
  rm -f $ircdname
fi
echo ""
echo "Couldn't find the ircd running. Reloading it..."
echo ""
$ircdexe
 

How to setup crontab for psyBNC

First thing to do is you must edit psbncchk file in your psyBNC folder.
$ nano psybncchk
Search for this line:
PSYBNCPATH=/home/zemra/psybnc
Change the path into your psyBNC path, look at this example:
PSYBNCPATH=/home/zemra/psybnc
Save the file and exit the editor.
Change the default editor by using this command:
$ export EDITOR=nano

Next step is editing the crontab file:
$ crontab -e
Insert this line to the file:
0,10,20,30,40,50 * * * * /home/zemra/psybnc/psybncchk >/dev/null 2>&1
Remember, change the path to your psybnc path.
This crontab command means it will run the psybncchk file every 10 minutes.

How to setup Crontab for an Eggdrop?

PART 1:
"botchk" setup
locate the botchk file in the bots main dir.
type ->     pico botchk    
      You need to edit 4 things in the "botchk"
# change this to the directory you run your bot from:
botdir="/usr/home/user/botdir/"

# change this to the name of your bot's script in that directory:
botscript="./eggdrop eggdrop.conf"

# change this to the nickname of your bot (capitalization COUNTS)
botname="BotNick"

# change this to the name of your bot's userfile (capitalization COUNTS)
userfile="bot.user"
type ->     ctrl+o     Save the file
type ->     ctrl+x     exit pico

PART 2:
Setting up the crontab file
type ->     pico crones     this will be your crontab file
type ->     0,10,20,30,40,50     * * * *      /home/user/botdir/botchk      >/dev/null 2>&1
-     ^--(1)     ^--(2)     ^--(3)     ^--(4)
-     1. time in (minutes) it will check to see if the bot is running
2. tells it to run every hour/day of month/month/year
3. full system path to the location of your botchk file
4. tells the system not to send you mail everytime crontab loads the bot or checks to see if the bot is running (this is a good idea because some sys admins might get upset with all of the emails)
type ->     ctrl+o     Save the file
type ->     ctrl+x     exit pico
type ->     crontab crones     This will load the file "crones" into your crontab. You can check your crontab by typing "crontab -l"

Friday, April 26, 2013

How to install IRC Defender

IRC Defender is a piece of IRC software (a bot) that is used to help ban proxies and keep your server secure. When a user connects via a proxy they are scanned by defender and a ban is placed on them if they are found to be using a proxy. Defender is one of the easiest IRC programs to install and set up. To install IRC Defender follow these steps:
  • Log into your server using SSH
  • wget –no-check-certificate https://www.hostchaos.com/library/IRC/defender-1.5.1.tar.bz2
  • tar xvjf defender-1.5.1.tar.bz2
1) Firstly log into your server using WinSCP.
2) Enter your folder called Defender by double clicking on it.
3) You are presented with a list of files and folders, look for a file called defender.conf.example and rename it to defender.conf .
4) Open it and begin editting as necessary following the instructions throughout the config.
5) Save and close it.
During the editing of the defender.conf you will have had to set up a link block, you’ll need to add a link block to the unrealircd.conf and a U:Line. To do this you’ll need to do the following:
1) Open unrealircd.conf .
2) Scroll down to the section in the configuration where link blocks are added and create a link block for defender.
link              IRC.Zemra.Org
{
username *;
hostname 72.73.74.75;
bind-ip *;
port 3366;
hub             *;
password-connect “IRCD”;
password-receive “IRCD”;
class           servers;
options {
};
};
3) In unrealircd.conf you also need to create a listen block. If you scroll to the section in your unrealircd.conf with a list of listen blocks already there copy and paste one directly underneath the list and change the port to 7000 so it is listening on that port for defender to connect.
Example: Listen 72.73.74.75:3366
4) Last bit you need to add to the unrealircd.conf is the U:Line, scroll to the section of the unrealircd.conf where your U:Lines are and add a U:Line for the defender server. Here’s an example:
ulines {
ircdefenders.domain.com;
};
5) Save and close the unrealircd.conf.
6) On your server type /rehash .
Now you need to run defender.
1) Log into your server using SSH and type:.
  • cd defender
  • perl defender.pl

How to install flashpolicyd

How to install flashpolicyd

  •  wget http://www.lightirc.com/release/flashpolicyd.zip
  •  unzip flashpolicyd.zip
  •  cd flashpolicyd
  •  chmod a+x flashpolicyd.rb
  • whereis ruby
    ruby: /usr/local/bin/ruby /usr/local/man/man1/ruby.1.gz
  • edit flashpolicyd.rb (change the first line to /usr/local/bin/ruby)
  • edit check_flashpolicyd.rb (change the first line to /usr/local/bin/ruby)
  • ./flashpolicyd.rb --xml flashpolicy.xml --logfile flashpolicyd.log --port 8002 
  • tail flashpolicyd.log - Verify that flashpolicyd is running

Monday, March 25, 2013

Installing Ruby on FreeBSD

The object-oriented programming language is available as a port on FreeBSD. Ruby combines syntax inspired by Perl with Smalltalk-like features and is influenced by Eiffel and Lisp as well. With Ruby you can make use of multiple programming paradigms, including functional, object oriented, imperative and reflective. The automatic memory management and a dynamic type system are one of the main key factors to use Ruby.

Root access is required to edit the following files and to execute commands. Log in as root (su) or simply prepend sudo to all commands that require root privileges.

Install Ruby 1.8

With the following commands you will install Ruby 1.8 from the ports directory:
cd /usr/ports/lang/ruby18/
make install clean; rehash
At this point Ruby 1.8 is installed. If you want to use a newer version, RVM can help you. This tutorial also explains how to install the RVM manager.

Install Curl

Install Curl for later use.
cd /usr/ports/ftp/curl
make install clean; rehash

Install Bash

Bash is needed to use Ruby properly.
cd /usr/ports/shells/bash
make install clean; rehash

Install Git

The following commands will install Git:
cd /usr/ports/devel/git
make install clean; rehash

Create a user

Add a new user for your Ruby environment.
adduser

Username: rvm
Full name: Ruby Version Manager
Uid (Leave empty for default): 
Login group [rvm]: 
Login group is rvm. Invite rvm into other groups? []: 
Login class [default]: 
Shell (sh csh tcsh bash rbash nologin) [sh]: bash
Home directory [/home/rvm]: 
Home directory permissions (Leave empty for default): 
Use password-based authentication? [yes]: no
Lock out the account after creation? [no]: no
Username   : rvm
Password   : 
Full Name  : Ruby Version Manager
Uid        : 1001
Class      : 
Groups     : rvm 
Home       : /home/rvm
Home Mode  : 
Shell      : /usr/local/bin/bash
Locked     : no
OK? (yes/no): yes
adduser: INFO: Successfully added (rvm) to the user database.

Log in as user

Log in with the newly created user (rvm) to install Ruby in this environment.
su rvm

Install RVM

The following command will install the RVM manager:
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )

Downloading RVM from wayneeseguin branch stable
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  796k  100  796k    0     0   941k      0 --:--:-- --:--:-- --:--:-- 4490k

Installing RVM to /home/rvm/.rvm/
installing - /home/rvm/.rvm/man/man1/rvm.1 -
installing - /home/rvm/.rvm/man/man1/rvm.1.gz -

# RVM:  Shell scripts enabling management of multiple ruby environments.
# RTFM: https://rvm.beginrescueend.com/
# HELP: http://webchat.freenode.net/?channels=rvm (#rvm on irc.freenode.net)
# Screencast: http://screencasts.org/episodes/how-to-use-rvm

# In case of any issues read output of 'rvm requirements' and/or 'rvm notes'

Installation of RVM in /home/rvm/.rvm/ is almost complete:

  * To start using RVM you need to run `source /home/rvm/.bashrc`
    in all your open shell windows, in rare cases you need to reopen all shell windows.

# rvm,
#
#   Thank you for using RVM!
#   I sincerely hope that RVM helps to make your life easier and more enjoyable!!!
#
# ~Wayne

Load RVM at login

Type these commands into the console to start RVM at login:
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bash_profile
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bashrc

Reload Bash profile

Reload your Bash profile so that the previous changes can take effect.
source ~/.bash_profile

Check that all is OK

Receiving an other response than rvm is a function means that RVM is not loaded.
type rvm | head -1

rvm is a function

List available Ruby versions

Now, you can list the available Ruby versions with the following command:
rvm list known

Install Ruby

Install your favorite Ruby version.
rvm install 1.9.3-head

Set the default Ruby version

Set the just installed Ruby version as default.
rvm use 1.9.3-head --default

Check your installed Ruby version

Check your Ruby version with this command:
ruby -v

Thursday, February 21, 2013

How to Upgrade Anope Services

Upgrading  Anope Services

Upgrading Anope Services
------------------------

1) Log into SSH.
2) Type wget https://www.hostchaos.com/library/IRC/anope-1.8.7.tar.gz
tar -zxvf anope-1.8.7.tar.gz
cd ~
cd anope-1.8.7
./Config
What directory - Enter
Data files - Enter
Data files owned - Enter
Default umask - 077
Check for mysql libraries - No
Once it has finished configuring, type "make"
Then "make install"


Now you have installed the latest version of Anope on your server, you now need to copy over the database files and services.conf file. Before copying over the services.conf file, read the changes.conf and add any changes to your services.conf file. If you are upgrading from a much older version (say 1.8.0 or before) it would probably be easier to create a fresh configuration file from the example.conf included in the new version you have just installed (edit example.conf as necessary, save, and rename to services.conf).

1) Log into your server with WinSCP
2) Copy over your backed up database files into the Services folder
3) Copy over your EDITED services.conf (if necessary)


Now you need to restart your services.
Restart from your IRC client by typing /msg OperServ restart
cd services
./services start

How to Upgrade UnrealIRCD

How to Upgrade UnrealIRCD

The recommended way to upgrade is:
Linux:
  • Rename your old UnrealIRCd directory (or otherwise you’ll overwrite it in the next step)
  • Extract the new UnrealIRCd version and run ./Config and make
  • Copy your old configuration files to the new directory (unrealircd.conf, motd, rules, server.* [SSL certs], network file, etc)
Windows:
  • Copy all of your configuration files to a temporary location.
  • Run the uninstaller for any previous versions of Unreal you have installed.
  • Run the installer for the new version of Unreal.
  • Copy your old configuration files to the new folder.
Installation Instructions
Linux:
  1. gunzip -d Unreal3.2.X.tar.gz
  2. tar xvf Unreal3.2.X.tar
  3. cd Unreal3.2
  4. ./Config
  5. Answer these questions to the best of your knowledge. Generally if your not sure, the default will work just fine!
  6. make
  7. Now create your unrealircd.conf and other configuration files, see section 4.
Windows:
  1. Run the Unreal installer
  2. Now create your unrealircd.conf and other configuration files, see section 4.

Friday, September 23, 2011

How to Install eMech - EnergyMech

  • wget http://shkarko.zemra.org/emech-2.9.4.tar.gz
  • tar -zxvf emech-2.9.4.tar.gz
  • cd emech-2.9.4
  • ./configure
  • make
  • make install
  • cp sample.conf mech.set
  • configure your mech.set file
  • ./mech




  • wget http://www.energymech.net/files/emech-3.0.3.tar.gz
  • tar -zxvf emech-3.0.3.tar.gz
  • rm -rf emech-3.0.3.tar.gz
  • cd emech-3.0.3
  • ./configure
  • make clean install
  • cp sample.conf mech.conf
  • configure your mech.conf file
  • edit checkmech line cd /home/user/emech*/
  • ./energymech




  • wget http://www.energymech.net/files/emech-2.8.5-freebsd-static.tar.gz
  • tar -zxvf  emech-2.8.5-freebsd-static.tar.gz
  • rm -rf emech-2.8.5-freebsd-static.tar.gz
  • cd emech-2.8.5-freebsd-static
  • ./genuser
  • enter handle (Nickname first than HOST/IP)
  • comment this line on checkmech file: # echo "You havent edited checkmech yet!!"
  • change this line cd /home/user/mechfolder
  • create mech.set file
  • add your mech users
  • ./mech (if you add more than one energymech you should now run ./genuser *mechfile)
  • run ./mech

  • Energymech config file

    # Sample EnergyMech configuration file # v2.8.2 - HitMan # # Note - Lines starting with '#' are comments and ignored by the bot. ##### Linking ##### # EnergyMechs can link(-help LINK) to one another to perform such features # as DCC PartyLine, Remote Command Execution (-help CMD), and Ops/Protection # (Add linked bots to eachother at level 200). This section is optional, # bots running in the same config file are automaticly linked. # Entity Name: In order to link to other bots, your bot must # have a unique entity name. -CHANGE THIS- ENTITY mechbot # Link Password: A password for linking. -CHANGE THIS- LINKPASS linkpassword # Link Port: A port the bot will listen on for linking, telnet, # and pipeuser(http://www.energymech.net/docs/pipeuser.html) # This has to be above 1024, and some firewalls, noteably # IP Masquerade/NAT may block this. LINKPORT 6667 # An example link configuration, here you have an ENTITY called ``hismech'' # and its LINKPASS is ``a1b2c3''. It is running on ``mech.host.net'' and # it's LINKPORT is 49152. LINK hismech linkpassword 67.43.238.222 6667 # Another example, the entity ``hermech'' is not listening on any port # (missing or non-working LINKPORT in config), so it does not matter # what host it is on as well, thus "0 0" at the end(-help LINK). LINK hermech linkpassword 67.43.238.222 6667 # Automatic Linking: Uncomment this to enable auto-linking. This will # cause the mech to try and link to all bots in it's # list, until all are present. AUTOLINK ##### Server List #### # Some undernet servers to connect to... You can use server names is you wish, # but putting the IP's here instead of host names speeds up connects (alot). # Servers are global, all mechs in the same process uses the same server list. # SERVER 67.43.238.222 6667 # 67.43.238.222 ##### Bot 1 Configuration ##### # In EnergyMech, you can have multiple bots on IRC from the same config # file/process. Traditionaly, the spawn command was used, however, that # command has been removed in 2.8.2 and above due to abuse. You can still # specify more than one bot in the config file as shown. # Nick for the bot. NICK Gonxhe # The file we use to store the userlist. Note you will have to generate # this with a command such as ./genuser emech.users USERFILE emech.users # All commands begin with this character. CMDCHAR - # Register on IRC with this username (emech@xxxxxxxx). Note that if your # machine is running identd, it will always be your username. LOGIN emech # Display this in the "Real Name" field IRCNAME Vizitor nga Chat.KnaQu.Org # User modes for the bot MODES +i-ws # If you want to run the bot on a virtual host, uncomment # the below line and set it. VIRTUAL has.hacked.ur.eggdr0pz.us # If you compiled with SEEN support and decide not to use it, uncomment this. #NOSEEN # Channel-Independant toggles and sets. See the -REPORT command for a full # listing. HASONOTICE # Yes for Undernet. TOG CC 1 # We want the bot to require command character TOG CLOAK 1 # Ignore CTCP's from non-users? Yes. TOG SPY 1 # Tell who is executing what in the partyline. SET OPMODES 6 # How many modes in a line? 6 on undernet... SET BANMODES 6 # How many bans in a line? 6 on undernet... SET CTIMEOUT 90 # Server connection timeout SET CDELAY 30 # Delay between connection attempts # Basic channel setup. You can have as many of these as your server # supports. See the -REPORT command for a listing. CHANNEL #emech # Channel name TOG PUB 1 # Allow public(in-channel) commands? Yes. TOG MASS 1 # Do mass-mode/kick/ban checks... TOG SHIT 1 # Activate the shitlist for this channel TOG PROT 1 # Activate protection of users TOG ENFM 0 # Dont enforce channel modes. SET MDL 7 # How many -o before killing the guy? SET MKL 7 # How many kicks? SET MBL 7 # And how many Bans? SET MPL 1 # What to do with massmoders? # 0 = nothing, # 1 = kick the bastard, # 2 = kickban 'em, # 3 = kickban & shitlist them. ##### END BOT 1 #####

    How to Install psyBNC


    • wget http://shkarko.zemra.org/psyBNC-2.3.2-7.tar.gz
    • tar zxvf psyBNC-2.3.2-7.tar.gz
    • cd psyBNC
    • make menuconfig
    Country Name []:AU
    State/Province [Somewhere]:Vic
    Locality Name (eg, city) []:Melbourne
    Organization Name (eg, company) [tCl]:Home
    Organizational Unit Name (eg, section) [psyBNC]:psyBNC
    Common Name (Full domain of your server) []:irc.zemra.org

    • pico psybnc.conf
    • ./psybnc

    How To Install and Configure EggDrop



    How To Install EggDrop

    • wget http://shkarko.zemra.org/eggdrop1.6.20.tar.gz
    • tar zxvf eggdrop1.6.20.tar.gz
    • cd eggdrop1.6.20
    • ./configure
    • make config
    • make
    • make install
    • cd ~/eggdrop
    • ./eggdrop -m eggdrop.conf
    How To Configure EggDrop
    Si Konfigurohet EggDrop


    #! ./eggdrop


    ### Core Settings ###
    set admin "DeviL"
    set nick "ZemraBot"
    set altnick "ZemraBot-"
    set realname "www.Zemra.Org EggDrop"
    set network "DALnet"
    set net-type "3"
    set init-server { putserv "mode ZemraBot +i" }
    set default-port 6667
    set servers {
    irc.zemra.org
    irc.knaqu.org


    }

    set timezone "GMT"
    set offset "0"
    set env(TZ) "$timezone $offset"
    set my-hostname "EggDrop.Zemra.Org"
    set my-ip "77.88.99.100"


    ### Logfile Settings ###
    set max-logs 5
    set max-logsize 0
    set quick-logs 0
    logfile mcobxs * "logs/ZemraBot.log"
    logfile jkp #ALbaChat "logs/#ALbaChat.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 "ZemraBot.user"
    set pidfile "pid.ZemraBot"
    set chanfile "ZemraBot.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 "ZemraBot"
    listen 2010 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
    }


    channel add #ALbaChat {
    chanmode "+tn"
    idle-kick 0
    flood-chan 5:4
    flood-join 5:10
    flood-ctcp 3:60
    flood-deop 0:0
    flood-kick 0:0
    }
    channel set #ALbaChat -enforcebans -dynamicbans -autoop -autovoice +protectops +protectfriends


    ### Advanced Settings ###
    set ignore-time 5
    set hourly-updates 00
    set owner "DeviL"
    set notify-newusers "DeviL"
    set default-flags "hp"
    set whois-fields "url birthday"
    set die-on-sighup 0
    set die-on-sigterm 1
    unbind dcc n tcl *dcc:tcl
    unbind dcc n set *dcc:set
    set must-be-owner 1
    unbind dcc n simul *dcc:simul
    set max-dcc 50
    set enable-simul 1
    set allow-dk-cmds 1
    set dupwait-timeout 5


    ### Module Settings ###
    loadmodule dns
    loadmodule transfer
    loadmodule share
    loadmodule server
    loadmodule ctcp
    loadmodule irc
    loadmodule notes
    loadmodule console
    loadmodule blowfish
    checkmodule blowfish
    loadmodule uptime


    set keep-nick 1
    set strict-host 0
    set quiet-reject 1
    set lowercase-ctcp 0
    set answer-ctcp 3
    set flood-msg 5:5
    set flood-ctcp 3:60
    set never-give-up 1
    set strict-servernames 0
    set server-cycle-wait 60
    set server-timeout 60
    set servlimit 0
    set check-stoned 1
    set use-console-r 0
    set debug-output 0
    set serverror-quit 1
    set max-queue-msg 300
    set trigger-on-ignore 0
    set double-mode 0
    set double-server 0
    set double-help 0
    set optimize-kicks 1
    set stack-limit 4
    set ctcp-mode 0
    set bounce-bans 1
    set bounce-modes 0
    set max-bans 100
    set max-modes 30
    set kick-fun 0
    set ban-fun 0
    set learn-users 0
    set wait-split 600
    set wait-info 180
    set mode-buf-length 200
    bind msg - ident *msg:ident
    bind msg - addhost *msg:addhost
    set no-chanrec-info 0
    set bounce-exempts 0
    set bounce-invites 0
    set max-exempts 20
    set max-invites 20
    set prevent-mixing 1
    set max-dloads 3
    set dcc-block 1024
    set copy-to-tmp 1
    set xfer-timeout 30
    set share-compressed 1
    set max-notes 50
    set note-life 60
    set allow-fwd 0
    set notify-users 1
    set notify-onjoin 1
    set console-autosave 1
    set force-channel 0
    set info-party 0


    ### Script Settings ###
    source scripts/alltools.tcl
    source scripts/action.fix.tcl
    source scripts/cmd_resolve.tcl
    source scripts/compat.tcl

    AntiRandom Module


    1. wget http://www.unrealircd.com/modules/dl/u3/src/36/AntiRandom.tar.gz
    2. tar -xvf AntiRandom.tar.gz
    3. /build
    4. add on your unrealircd.conf
    loadmodule "src/modules/antirandom.so";
    5. (add this code to your unrealircd.conf)
    set {
    antirandom {
    threshold 5;
    ban-action gline;
    ban-time 2m;
    ban-reason "Ju lutem ndryshoni Nick/Ident ose Realname - ose provoni http://Chat.Zemra.Org/";
    fullstatus-on-load yes;
    show-failedconnects yes;
    except-hosts {
    };
    };
    };

    6. ./rehash your IRCD

    BLSB Module

    1. cd NeoStats3.0/modules
    2. wget
    http://shkarko.zemra.org/modules/neostats/BLSB-3.0.a4-66.tar.gz
    3. tar -xvf BLSB-3.0.a4-66.tar.gz
    4. cd BLSB-3.0.a4-66
    5. ./configure
    6. make
    7. make install
    8. on IRC type: /msg neostats load blsb

    BOPM Module


    1. wget http://ircd.zemra.org/irc/bopm-3.1.3.tar.gz
    2. tar -xvf bopm-3.1.3.tar.gz
    3. cd bopm-3.1.3
    4. ./configure
    5. make
    6. make install
    7. cd
    8. cd bopm/etc
    9. pico bopm.conf
    
    /* This is a modified bopm.conf
     * http://www.zemra.org
     * LAST MODIFIED: 2010-11-20
     */
    
    options {
     /* Full path and filename for file storing the process ID */
     pidfile = "/home/EviL/bopm/bopm.pid";
    
     /* seconds to store the IP address of hosts */
    #    negcache = 3600;
    
     /* Amount of file descriptors to allocate to asynchronous DNS */
     dns_fdlimit = 64;
    
     /* full path and filename of scan logfile */
    #    scanlog = "/home/EviL/bopm/scan.log";
    };
    
    IRC {
     /* IP to bind to for the IRC connection */
     vhost = "72.20.42.110";
    
     /* Nickname for BOPM to use */
     nick = "TheHawk";
    
     /* Text to appear in the "realname" field of BOPM's whois output */
     realname = "Open Proxy Monitoring";
    
     /* If you don't have an identd running, what username to use */
     username = "nix";
    
     /* Hostname (or IP) of the IRC server */
     server = "72.20.42.110";
    
     /* Password used to connect to the IRC server (PASS) */
    #    password = "secret";
    
     /* Connect to IRC server via this port */
     port = 6667; 
    
     /* Command to identify to NickServ */
    #    nickserv = "privmsg nickserv :identify <password>";
    
     /* The username and password needed for BOPM to oper up */
     oper = "BOPM bopmoperpass";
    
     /* with the following modes this BOPM will see ALL network Connections
     * See Unreal documentation for more information on user modes
     */
     mode = "+s +cF";
    
     /* Specify BOPM control channel(s) */
     channel {
     /* Channel name. */
     name = "#Staff";
    
     /* Channel key */
     key = "<channel-key>";
    
     /* command used to ask chanserv for invite */
    #        invite = "privmsg chanserv :invite #bopm";
     };
    
     /* connregex is a POSIX regular expression used to parse connection
     * (+c) notices from the ircd. The complexity of the expression should
     * be kept to a minimum so load is @ a minimum even during 'heavy' traffic */
    
     /* Unreal in HCN mode */
    #    connregex = "\\*\\*\\* Notice -- Client connecting: ([^ ]+) \\(([^@]+)@([^\\)]+)\\) \\[([0-9\\.]+)\\].*";
     connregex = "\\*\\*\\* Notice -- Client connecting[.A-Za-z0-9 ]*: ([^ ]+) \\(([^@]+)@([^\\)]+)\\) \\[([0-9\\.]+)\\].*";
    
     /* default kline
     *  %n User's nick
     *  %u User's username     - REMEMBER!
     *  %h User's irc hostname - bots (& blacklists) don't necessarily have (contain) hostnames
     *  %i User's IP address   - but they ALWAYS have IPs */
     kline = "gline +*@%i 7d :Open Proxy found on your host.";
    
     /* Text to send on connection. Specify multiple with multiple lines. */
     perform = "PROTOCTL HCN";
    };
    
    OPM {
    
    blacklist {
     name = "rbl.efnetrbl.org";
     type = "A record reply";
     reply {
     1 = "Open proxy";
     2 = "spamtrap666";
     3 = "spamtrap50";
     4 = "TOR exit server";
     5 = "Drones / Flooding";
     };
     ban_unknown = no;
     kline = "gline +*@%i 0 : 4An open proxy was detected in your host 1 - EFnetRBL ";
    };
    
    blacklist {
     name = "dnsbl.dronebl.org";
     type = "A record reply";
     reply {
     3 = "IRC Drone";
     4 = "Tor";
     5 = "Bottler";
     6 = "Unknown spambot or drone";
     7 = "DDOS Drone";
     8 = "SOCKS Proxy";
     9 = "HTTP Proxy";
     10 = "ProxyChain";
     };
     ban_unknown = no;
     kline = "gline +*@%i 0 : 4An open proxy was detected in your host 1 - DroneBL";
    };
    
    blacklist {
     name = "dnsbl.njabl.org";
     type = "A record reply";
     reply {
     2 = "Open Relay";
     4 = "Confirmed Spam Source";
     9 = "Open Proxy";
     };
     ban_unknown = no;
     kline = "gline +*@%i 0 : 4An open proxy was detected in your host 1 - NJABL";
    };
    
    blacklist {
     name = "dnsbl.swiftbl.org";
     type = "A record reply";
     reply {
     2 = "SOCKS Proxy";
     3 = "IRC Proxy";
     4 = "HTTP Proxy";
     5 = "IRC Drone";
     6 = "TOR";
     };
     ban_unknown = no;
     kline = "gline +*@%i 0 : 4An open proxy was detected in your host 1 - SwiftBL";
    };
    
    blacklist {
     name = "dnsbl.proxybl.org";
     type = "A record reply";
     reply {
     2 = "Open proxy";
     };
     ban_unknown = no;
     kline = "gline +*@%i 0 : 4An open proxy was detected in your host 1 - ProxyBL";
    };
    
    /* the next two entries might match too many IPs
     * so they're commented out for now
     */
    
    /*
    blacklist {
     name = "dnsbl-2.uceprotect.net";
     type = "A record reply";
     reply {
     2 = "Matched Entry";
     };
     ban_unknown = no;
     kline = "gline +*@%i 7d :uceprotect";
    };
    
    blacklist {
     name = "xbl.spamhaus.org";
     type = "A record reply";
     reply {
     4 = "CBL Detected Address"
     };
     ban_unknown = no;
     kline = "gline +*@%i 7d : 4An open proxy was detected in your host 1 - SpamhausXBL";
    };
    */
     /* Pretend to send reports FROM */
    #    dnsbl_from = "mybopm@myserver.example.com";
    
     /* Email address to send reports TO.  Specify multiple with multiple lines. */
    #    dnsbl_to = "bopm-report@dronebl.org";
    
     /* Full path to your sendmail binary */
    #    sendmail = "/usr/sbin/sendmail";
    };
    
    /* Exempt hosts matching (hostname or IP) strings from any form of scanning or dnsbl */
    exempt {
     mask = "*!*@127.0.0.1";
    };
    
    exempt {
     mask = "*!*@72.20.42.*"; # Zemra.Org SHELL IP
    };
    
    12. cd ..
    13. cd bin
    14. ./bopm
    
    Written by DeviL
    www.Zemra.Org
    Email: Info@Zemra.Org

    FloodServ Module


    1. cd NeoStats3.0/modules
    2. wget http://shkarko.zemra.org/Modules/NeoStats/FloodServ-3.0.a4-70.tar.gz
    3. tar -xvf FloodServ-3.0.a4-70.tar.gz
    4. cd FloodServ-3.0.a4-70
    5. ./configure
    6. make
    7. make install
    8. on IRC type: /msg neostats load floodserv

    GamesServ Module

    1. cd NeoStats3.0/modules
    2. wget
    http://shkarko.zemra.org/modules/neostats/GamesServ-3.0.1-60.tar.gz
    3. tar -xvf GamesServ-3.0.1-60.tar.gz
    4. cd GamesServ-3.0.1-60
    5. ./configure
    6. make
    7. make install
    8. on IRC type: /msg neostats load
    GamesServ

    NetAdmins Module


    1. cd Unreal3.2/src/modules
    2. wget http://shkarko.zemra.org/Modules/UnrealIRCD/netadmins.c
    3. cd ../..
    4. ./Config
    5. make
    6. make custommodule MODULEFILE=netadmins
    7. On your unrealircd.conf, put this line
    loadmodule “src/modules/netadmins.so”;



    Unrealircd.conf

    set {
    // Choose "no" here if you would like to allow
    // netadmins to kill each other. Otherwise "yes".
    netadmins-are-gods yes;
    };

    Noexpire Module


    1. cd anope-1.8.5
    2. cd src/modules
    3. wget http://shkarko.zemra.org/Modules/ns_noexpire.c
    4. cd ../..
    5. make modules
    6. make install
    7. go to IRC and type /operserv modload ns_noexpire