twitter
    Find out what I'm doing, Follow Me :)

Install BNC

Apa itu BNC?
BNC adalah layanan untuk penggunaan mirc dengan IP yang akan keluar dari pengguna berbeda dengan IP lokal yang digunakan (menggunakan IP server dimana BNC tersebut dibuat).

Langkah-langkah install BNC :
1. download paket BNC. Paket BNC bisa didownload di http://www.gotbnc.com/

13 $ wget http://www.gotbnc.com/files/bnc2.9.4.tar.gz
--21:33:56-- http://www.gotbnc.com/files/bnc2.9.4.tar.gz
Resolving www.gotbnc.com... 82.146.53.139
Connecting to www.gotbnc.com|82.146.53.139|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 76896 (75K) [application/x-tar]
Saving to: `bnc2.9.4.tar.gz'

100%[=======================================>] 76,896 --.-K/s in 0.1s

21:34:01 (781 KB/s) - `bnc2.9.4.tar.gz' saved [76896/76896]


2. Ekstrak file bnc2.9.4.tar.gz
15 $ tar -xzvf bnc2.9.4.tar.gz
bnc2.9.4/
bnc2.9.4/server.c
bnc2.9.4/Makefile
bnc2.9.4/Changelog
bnc2.9.4/motd
bnc2.9.4/mkpasswd.c
bnc2.9.4/example.conf
bnc2.9.4/configure.in
bnc2.9.4/configure
bnc2.9.4/config.h.in
bnc2.9.4/conf.c
bnc2.9.4/cmds.c
bnc2.9.4/bncsetup
bnc2.9.4/bncchk
bnc2.9.4/bnc.c
bnc2.9.4/README
bnc2.9.4/Makefile.out
bnc2.9.4/Makefile.in
bnc2.9.4/COPYING
bnc2.9.4/sbuf.h
bnc2.9.4/sbuf.c
bnc2.9.4/send.h
bnc2.9.4/send.c
bnc2.9.4/ctcp.c
bnc2.9.4/struct.h

3. Masuk dir bnc2.9.4

cd bnc2.9.4/

4. Kompile

21 $ ./configure checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking how to run the C preprocessor... gcc -E checking for library containing strerror... none required checking for egrep... grep -E checking for AIX... no checking for ANSI C header files... yes checking for sys/wait.h that is POSIX.1 compatible... yes checking whether time.h and sys/time.h may both be included... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking for unistd.h... (cached) yes checking sys/select.h usability... yes checking sys/select.h presence... yes checking for sys/select.h... yes checking return type of signal handlers... void checking for select in -lsocket... no checking for select in -lnsl... yes checking for gethostbyname in -lresolv... yes checking for malloc in -lgnumalloc... no checking for malloc in -lbsdmalloc... no checking for select in -linet... no checking for select in -lcposix... no checking for select in -lnet... no checking for crypt in -lcrypt... yes checking whether to enable SSL support... no checking for snprintf... yes checking for vsnprintf... yes checking for gethostbyname2... yes configure: creating ./config.status config.status: creating Makefile config.status: creating config.h
22 $ make
gcc -O3 -Wall -include config.h -c bnc.c
gcc -O3 -Wall -include config.h -c conf.c
conf.c: In function 'loadconf':
conf.c:597: warning: pointer targets in passing argument 1 of 'fgets' differ in signedness
conf.c:603: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
conf.c:609: warning: pointer targets in passing argument 1 of 'strtok' differ in signedness
conf.c:634: warning: pointer targets in passing argument 1 of 'strtok' differ in signedness
gcc -O3 -Wall -include config.h -c server.c
server.c: In function 'send_queued':
server.c:406: warning: pointer targets in passing argument 2 of 'sbuf_pagemap' differ in signedness
server.c: In function 'identwd_unlock':
server.c:570: warning: pointer targets in passing argument 3 of 'getsockname' differ in signedness
server.c: In function 'dccsend':
server.c:1123: warning: pointer targets in passing argument 2 of 'sbuf_pagemap' differ in signedness
server.c: In function 'addon_client':
server.c:1546: warning: pointer targets in passing argument 3 of 'getpeername' differ in signedness
gcc -O3 -Wall -include config.h -c cmds.c
cmds.c: In function 'handlepclient':
cmds.c:404: warning: pointer targets in passing argument 1 of 'fgets' differ in signedness
cmds.c:406: warning: pointer targets in passing argument 1 of 'remnl' differ in signedness
gcc -O3 -Wall -include config.h -c ctcp.c
ctcp.c: In function 'ctdcc_send':
ctcp.c:333: warning: dereferencing type-punned pointer will break strict-aliasing rules
gcc -O3 -Wall -include config.h -c send.c
gcc -O3 -Wall -include config.h -c sbuf.c
sbuf.c: In function 'sbuf_getmsg':
sbuf.c:200: warning: 'rlength' may be used uninitialized in this function
gcc -o bnc bnc.o conf.o server.o cmds.o ctcp.o sbuf.o send.o -lnsl -lresolv -lcrypt

5. Copy file example.conf menjadi bnc.conf dan edit file bnc.conf

26 $ cp example.conf bnc.conf
# Bnc Configuration File
#
#
# listen
[maxusers] Port to listen for connections on
# Or..
# listenex [--ssl] [--limit ] [--localhost ]

# adminpass
Password for Supervisor Access
#
# [Optional]
# privatekey Required if SSL server is used
# publickey Required if SSL server is used
# password
Password required for general connection (recommended)
# allow
[address ...] list of ip/dns's that can use the bnc
# vhost
[address ...] Other Vhosts That Can Be Used (display only)
# defaultvhost
Default Virtual Host to Use
# pidfile Name of PID File (recommended if you use crontab)
# motdfile Message of the day, displayed on connection of valid user
# logfile Filename where to store logs
#
# EXAMPLE CONFIG - CHANGE THIS:
# if your pass starts with + it is encrypted, if not it is a normal pass
#

listen 9000
password testpass
adminpass +qcNQHJfDIAfhQ
allow *

vhost bagelen.net
pidfile pid.bnc
motdfile motd

5. Jalankan bnc


27 $ pico bnc.conf
[user@wiwin261] (Fri Feb 27@21:43:48) [~/bnc2.9.4]
28 $ ./bnc
Irc Proxy v2.9.4 Copyright 1998-2002
Coded by James Seter (pharos@gotbnc.com)
--Using conf file ./bnc.conf
--Configuration:
Daemon port......: 9000
Maxusers.........: unlimited
Default conn port: 6667
Pid File.........: pid.bnc
Vhost Default....: -SYSTEM DEFAULT-
Vhost entry......: bagelen.net
Process Id.......: 10348

6. Cara penggunaan bnc, buka irc client (mirc)

/server bagelen.net:9000 /quote PASS testpass

Masuk ke salah satu server, misalnya DALnet.

/quote conn irc.dal.net 6667

Nah sekarang tingal chatting. Coba lihat vhost Anda dengan /whois nick anda.

babycorp is user@bagelen.net * babycorp babycorp on #bagelen babycorp using krypt.ca.us.dal.net http://www.krypt.com - 100gbit of AWESOME. babycorp has identified for this nick babycorp has been idle 8secs, signed on Sat Feb 28 08:52:07 babycorp End of /WHOIS list.


Exit ./bnc{7} :Successfully went into the background.
logfile bnc.log
gcc -O3 -Wall -include config.h -o mkpasswd mkpasswd.c -lnsl -lresolv -lcryptbnc2.9.4/ctcp.h

sumber: http://wiwin.web.id/?p=442#more-442

2 comments:

wiwin said...

numpang cari ilmu mas. suwun :)

Anonymous said...

bingung broooo.... :)


http://mnrcomp.co.cc/