📜 ⬆️ ⬇️

Raise your IRC-bouncer

Hi, Habr!

In this post I will try in detail (even the pictures will be) to show and tell you how to raise your bouncer.

Bouncer (eng. Bouncer, bnc) - a program that allows you to hide the real address in IRC. The user connects to the bouncer located on another computer, which in turn connects to the IRC network under the guise of an IRC client. As a result, the real address of the user is visible in the IRC network, but the address of the server where the bouncer is installed. In fact, the bouncer is used as a proxy server, including for “deception” of those networks in which proxies are prohibited. But this is not their most important advantage.

Those. in fact, the main purpose of the bouncer is to hide the real IP address of the user, and to keep logs from the channel when the user is not connected to the IRC server.
image
The most popular bouncers are psyBNC , ezbounce and ZNC .
In this post I will focus on psyBNC in detail.
')


PsyBNC , this IRC proxy can:We will put the bouncer on a server ( with a dedicated IP ) that runs under Windows OS, and also touch on the basics of how to put on * nix.
I chose version 2.3, since she was the only one who came up to me ...

For Windows, you need to download it from here:
www.psybnc.at/download/windows/psybnc2.3.v6.exe
download psybnc

Now we proceed to the installation of psybnc:
image

After successful installation, go to the psybnc folder:
image

For * nix, you must run a sequence of commands:
wget www.psybnc.at/download/beta/psyBNC-2.3.2-6.tar.gz
tar -zxvf psyBNC-2.3.2-6.tar.gz
rm psyBNC-2.3.2-6.tar.gz
cd psybnc
make menuconfig
make
make clean
make menuconfig

image

First we need to configure the config. It lies in the file psybnc.conf .
Here is the content of this file with a detailed description of each item:

// , c
PSYBNC . SYSTEM . PORT1 =3184
//
PSYBNC . SYSTEM . ME = uasc
// IP,
PSYBNC . SYSTEM . HOST1 =*
// , ","
PSYBNC . HOSTALLOWS . ENTRY0 =*;*

//
USER1 . USER . LOGIN = test
// ( )
USER1 . USER . PASS == 'c1`' h0p1A '2' R`L0s
// : 1=, 0=
USER1 . USER . RIGHTS =1
// 1=""
USER1 . USER . QUITTED =0
// DCC: 1=, 0=
USER1 . USER . DCCENABLED =1
// auto-idle
USER1 . USER . AIDLE =0
// ,
USER1 . USER . LEAVEQUIT =0
//
USER1 . USER . AUTOREJOIN =1
//
USER1 . USER . SYSMSG =1
// ,
USER1 . USER . LEAVEMSG = buy buy
// ( whois)
USER1 . USER . USER = test
// ,
USER1 . USER . AWAYNICK = y
// vhost
USER1 . USER . VHOST = test . google . com
//
USER1 . USER . NICK = test
// ,
USER1 . SERVERS . SERVER1 = irc . server . com
//
USER1 . SERVERS . PORT2 =6667
We change these settings for themselves.

One small nuance when setting your password (USER1.USER.PASS).
Suppose you want to put a password: testme
For this you need to register in the config:
USER1 . USER . PASS = testme

After launching the bouncer, the password will be encoded and changed in encoded form in the config file.

And now let's try to run our bouncer on Windows ...
It is better to do this through the console ( start> execute> cmd ), in which case you can see the reason for closing the bouncer.
Running ...
image

And on the team:
./psybnc
image

In the console, you will see the PID of the process under which the bouncer works and the port on which the bouncer hangs.

There are two ways to kill a process:If there are no errors, then the bouncer is running!

You can check this without even going to the irts client, just go over http to the address of your server:
image
We see that everything really works!

We launched the bouncer, now let's connect to it .
I will show the example of mIRC .

To begin, add the server:
File> Select Server (Ctrl + E)> Add>
image

Now we register our nickname and identd:
/ nick usernick
/ identd on usernick
image

Subscribe:
/ server 111.222.333.444 down555 password
Where:
111.222.333.444 - IP on which the bouncer hangs
5555- port on which the bouncer hangs
password - USER1.USER.PASS

Upon successful connection, you should see:
image

The server may ask for a password:
image

If you did everything correctly, after entering the / quote pass command, the bouncer will connect to your server (USER1.SERVERS.SERVER1) :
image

To add your server, execute the command:
/ addserver irc.site.com:12345
image
After adding the server, your server will be added to psybnc.conf:
image

That's all actually ...
I'll tell you about the most necessary commands in psybnc:

/ brehash restart bouncer with changing the contents of the hash-file
image

/ madmin nick adds user nick to admins
image

/ adduser nick adds a user with the nickname nick. Password generates randomly by yourself.
image

/ deluser nick remove the user with the nickname nick
image

/ nameboucer name changes your bouncer name
image

/ sockstat bauser connection statistics in real mode
image

/ bwho shows who is sitting on our bounce server now
image

And another couple of teams (no screenshots):
/PASSWORD - BNC .
/BWHO - BNC .
/BVHOST - BNC ( ).
/PROXY - IRC. : SOCKS4, WinGate Webproxys.
: /PROXY proxy.mydomain.com:8080
/SETUSERNAME - " "
/SETAWAY - away , BNC.
: /SETAWAY eating /whois : yournick is away: eating
/SETLEAVEMSG - , BNC.
: /SETLEAVEMSG sleeping : yournick is away (sleeping)
/LEAVEQUIT - 1, BNC .
/SETAWAYNICK - BNC .
/JUMP - .
/BQUIT - IRC .
/BCONNECT - IRC , /BQUIT
/AIDLE - anti-idle BNC. /AIDLE 1 .
/AUTOREJOIN - kick'a. : /AUTOREJOIN 1
/ADDSERVER - IRC . : /ADDSERVER irc.xhackers.ru :6667
/DELSERVER - IRC (/LISTSERVERS) : /DELSERVER 1 1 .
/LISTSERVERS - IRC .
/ADDNETWORK - IRC .
/DELNETWORK - IRC .
/SWITCHNET - IRC .
/ADDOP - .
: /ADDOP #chan newpass:*!*@this.is.elite.host.com.
#chan , ,
BNC.
/DELOP - .
/LISTOPS - , BNC.
/ADDAUTOOP - , .
: /ADDAUTOOP #leet :*!*blah@*.lame.com - #leet *!*blah@*.lame.com
/DELAUTOOP - .
/LISTAUTOOPS - , BNC.
/ADDBAN - , BNC.
: /ADDBAN Get Lost Lamer ! :*!niky@lamers.land.com
/DELBAN - BAN . /DELBAN 2
/LISTBANS - .
/ADDASK - BNC "" , BNC.
: /ADDASK lamepass :*!LameBot@Lame.Host.Com
/DELASK - . : /DELASK 12
/LISTASK - .
/ADDIGNORE - .
: /ADDIGNORE * :*!*@*.lao.com *!*@*.lao.com .
: /ADDIGNORE sex :*!*@* , sex, .. .
/DELIGNORE - -. : /DELIGNORE 2
/LISTIGNORES - -.
/ADDDCC - DCC- . : /ADDDCC MyBot newbie MyPass :the.elite.newbie.com:7333
/LISTDCC - DCC .
/DELDCC - DCC . /DELDCC 4
/DCCCHAT - DCC-chat'a , .
/DCCANSWER - DCC Chat , Chat.
/DCCENABLE - DCC-Chat Send-Handling BNC .
/DCCSEND - .
/DCCGET - . downloads/USERnn
/DCCSENDME - BNC . , .
/AUTOGETDCC - DCC. . : /AUTOGETDCC 1
/DCCCANCEL - DCC Chat .
/PLAYPRIVATELOG - . BNC .
/ERASEPRIVATELOG - .
/ADDLOG - /. : /ADDLOG #leet :0day - #leet 0day
/DELLOG - (/LISTLOGS).
/LISTLOGS - /.
/PLAYTRAFFICLOG - -.
/ERASETRAFFICLOG - -.
/ENCRYPT - /.
/DELENCRYPT - .
/LISTENCRYPT - .
/TRANSLATE - / /.
/DELTRANSLATE - .
/LISTTRANSLATE - .


Admin teams:
/BREHASH - .
/MADMIN - BNC.
/UNADMIN - BNC.
/BKILL - .
/SOCKSTAT - / .
/ADDUSER - .
/DELUSER - .
/NAMEBOUNCER - BNC . ( )
/LINKTO - BNC /.
/LINKFROM - BNC .
/RELAYLINK - BNC.
/RELAYLINK name :1 name BNC. 0 , 1 BNC.
/DELLINK - BNC.
/LISTLINKS - LINK-List BNC.
/RELINK - BNC. /RELINK 1
/PLAYMAINLOG - .
/ERASEMAINLOG - .
/ADDALLOW - .
/DELALLOW - .
/LISTALLOW - .
/SRELOAD - .
/LISTTASKS - .
/SETLANG - ().
/BHELP - BNC. .


I will be glad to answer your questions and help you =)

itspoma © 2010

Source: https://habr.com/ru/post/95083/


All Articles