티스토리 뷰
CentOS 6.4 버전을 테스트 할 겸 syslog-ng를 설치해보자
CentOS 6.4를 BaseServer Profile을 사용해서 설치했다.
현재는 APM 설치을 설치했고, gcc를 v4.82로 컴파일해서 설치한 상태이다.
그리고 최근에 openssh v6.2와 v6.3에서 암호화 알고리즘 관련 인증 우회 취약점이 나와서
openssl v1.0.1e, openssh v6.4p1로 업그레이드도 진행한 상태이다.
*flex 설치
[root@boanhack src]# tar zxvf flex-2.5.37.tar.gz
[root@boanhack src]# cd flex-2.5.37
[root@boanhack flex-2.5.37]# ./configure
[root@boanhack flex-2.5.37]# make && make install
*bison 설치
[root@boanhack src]# tar zxvf bison-3.0.tar.gz
[root@boanhack src]# cd bison-3.0
[root@boanhack bison-3.0]# ./configure
[root@boanhack bison-3.0]# make && make install
*libffi 설치
[root@boanhack src]# tar zxvf libffi-3.0.13.tar.gz
[root@boanhack src]# cd libffi-3.0.13
[root@boanhack libffi-3.0.13]# ./configure
[root@boanhack libffi-3.0.13]# make && make install
[root@boanhack libffi-3.0.13]# cp /usr/local/lib/libffi.so* /lib
[root@boanhack libffi-3.0.13]# cp /usr/local/lib/libffi-3.0.13/include/ffi* /usr/local/include/
*automake 설치
아래에서 설치하는 glib에서 automake v1.13을 찾기 때문에 꼭 해당 버전 설치
automake v1.14를 처음에 설치했다고 무지 고생....
[root@boanhack src]# tar Jxvf automake-1.13.4.tar.xz
[root@boanhack src]# cd automake-1.13.4
[root@boanhack automake-1.13.4]# ./configure
[root@boanhack automake-1.13.4]# make && make install
*glib 설치
[root@boanhack src]# tar Jxvf glib-2.36.4.tar.xz
[root@boanhack src]# cd glib-2.36.4
[root@boanhack glib-2.36.4]# PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
[root@boanhack glib-2.36.4]# export PKG_CONFIG_PATH
테스트를 못해서... 아래 과정은 안해도 될 듯...
/*
[root@boanhack glib-2.36.4]# pkg-config --libs libffi
[root@boanhack glib-2.36.4]# LIBFFI_CFLAGS=/usr/local/lib/libffi.so.6
[root@boanhack glib-2.36.4]# LIBFFI_LIBS=lffi
[root@boanhack glib-2.36.4]# export LIBFFI_CFLAGS LIBFFI_LIBS
*/
[root@boanhack glib-2.36.4]# vi gobject/Makefile.in
...
664 # link programs against libgobject
665 progs_LDADD = ./libgobject-2.0.la $(libglib) $(LIBFFI_LIBS)
666 glib_genmarshal_LDADD = $(libglib)
...
[root@boanhack glib-2.36.4]# vi gobject/tests/Makefile.in
...
510 @CROSS_COMPILING_TRUE@glib_genmarshal = $(GLIB_GENMARSHAL)
511 LDADD = ../libgobject-2.0.la $(top_builddir)/gthread/libgthread-2.0.la $(top_builddir)/glib/libglib-2.0.la $(LIBFFI_LIBS)
512 signals_SOURCES = signals.c marshalers.c
...
[root@boanhack glib-2.36.4]# vi gobject/Makefile.in
...
664 # link programs against libgobject
665 progs_LDADD = ./libgobject-2.0.la $(libglib) $(LIBFFI_LIBS)
666 glib_genmarshal_LDADD = $(libglib)
...
[root@boanhack glib-2.36.4]# gobject/tests/Makefile.in
...
510 @CROSS_COMPILING_TRUE@glib_genmarshal = $(GLIB_GENMARSHAL)
511 LDADD = ../libgobject-2.0.la $(top_builddir)/gthread/libgthread-2.0.la $(top_builddir)/glib/libglib-2.0.la $(LIBFFI_LIBS)
512 signals_SOURCES = signals.c marshalers.c
...
[root@boanhack glib-2.36.4]#[root@boanhack glib-2.36.4]# vi gio/Makefile.in
...
1352 glib_compile_resources_LDADD = \
1353 $(top_builddir)/glib/libglib-2.0.la \
1354 $(top_builddir)/gobject/libgobject-2.0.la \
1355 libgio-2.0.la $(LIBFFI_LIBS)
...
1364 gio_querymodules_LDADD = \
1365 $(top_builddir)/glib/libglib-2.0.la \
1366 $(top_builddir)/gobject/libgobject-2.0.la \
1367 $(top_builddir)/gmodule/libgmodule-2.0.la \
1368 libgio-2.0.la $(LIBFFI_LIBS) \
1369 $(NULL)
...
1371 glib_compile_schemas_LDADD = $(top_builddir)/glib/libglib-2.0.la $(LIBFFI_LIBS)
1372 glib_compile_schemas_SOURCES = \
...
1379 gsettings_LDADD = \
1380 $(top_builddir)/glib/libglib-2.0.la \
1381 $(top_builddir)/gobject/libgobject-2.0.la \
1382 libgio-2.0.la $(LIBFFI_LIBS)
...
1388 gdbus_LDADD = libgio-2.0.la \
1389 $(top_builddir)/glib/libglib-2.0.la \
1390 $(top_builddir)/gobject/libgobject-2.0.la $(LIBFFI_LIBS)
...
1400 gresource_LDADD = libgio-2.0.la \
1401 $(top_builddir)/glib/libglib-2.0.la \
1402 $(top_builddir)/gobject/libgobject-2.0.la \
1403 $(LIBELF_LIBS) $(LIBFFI_LIBS)
...
[root@boanhack glib-2.36.4]# ./configure --enable-man=no \
> LIBFFI_CFLAGS=-I/usr/local/lib/libffi-3.0.13/include \
> LIBFFI_LIBS=/usr/local/lib/libffi.la
[root@boanhack glib-2.36.4]# make && make install
glib-2.0 >= 2.10.1 gmodule-2.0 gthread-2.0
*eventlog 설치
[root@boanhack src]# tar zxvf eventlog_0.2.13.tar.gz
[root@boanhack src]# cd eventlog-0.2.13/
[root@boanhack eventlog-0.2.13]# ./configure
*libnet 설치
spoof-source function 사용을 위해 설치
[root@boanhack src]# tar zxvf libnet-1.1.6.tar.gz
[root@boanhack src]# cd libnet-1.1.6
[root@boanhack libnet-1.1.6]# ./configure
[root@boanhack libnet-1.1.6]# make && make install
*libsmtp 설치
smtp() function 사용을 위해 설치
[root@boanhack src]# tar zxvf libesmtp-1.0.6.tar.gz
[root@boanhack src]# cd libesmtp-1.0.6
[root@boanhack libesmtp-1.0.6]# ./configure
[root@boanhack libesmtp-1.0.6]# make && make install
*tcp_wrapper 설치
[root@boanhack src]# tar zxvf tcp_wrappers_7.6.tar.gz
[root@boanhack src]# cd tcp_wrappers_7.6
[root@boanhack tcp_wrappers_7.6]# patch -Np1 -i ../tcp_wrappers-7.6-shared_lib_plus_plus-1.patch
[root@boanhack tcp_wrappers_7.6]# sed -i -e "s,^extern char \*malloc();,/* & */," scaffold.c
[root@boanhack tcp_wrappers_7.6]# make REAL_DAEMON_DIR=/usr/sbin STYLE=-DPROCESS_OPTIONS linux
[root@boanhack tcp_wrappers_7.6]# make install
*libdbi 설치
sql을 지원하기 위해 설치
추후에 각각의 DB를 설치한 후 libdbi-driver을 설치해야 함
[root@boanhack src]# tar zxvf libdbi-0.9.0.tar.gz
[root@boanhack src]# cd libdbi-0.9.0
[root@boanhack libdbi-0.9.0]# ./configure
[root@boanhack libdbi-0.9.0]# make && make install
*syslog-ng 설치
[root@boanhack src]# tar zxvf syslog-ng_3.4.5.tar.gz
[root@boanhack src]# cd syslog-ng-3.4.5/
[root@boanhack syslog-ng-3.5.1]# PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
[root@boanhack syslog-ng-3.5.1]# export PKG_CONFIG_PATH
[root@boanhack syslog-ng-3.5.1]# ./configure
...
syslog-ng Open Source Edition 3.4.5 configured
Compiler options:
compiler : gcc -std=gnu99
compiler options : -g -O2 -Wall -pthread -pthread -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/eventlog -I/usr/local/include -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -I/usr/local/include/dbi -I/usr/local/include/dbi/dbi -I$(top_srcdir)/lib/ivykis/src/include -I$(top_builddir)/lib/ivykis/src/include -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
linker flags :
prefix : /usr/local
linking mode : dynamic
embedded crypto : no
__thread keyword : yes
Submodules:
ivykis : internal
libmongo-client : internal
librabbitmq : internal
Features:
Debug symbols : no
GCC profiling : no
Memtrace : no
IPV6 support : yes
spoof-source support : yes
tcp-wrapper support : yes
Linux capability support : no
PCRE support : yes
Env wrapper support : no
systemd support : yes (unit dir: none)
Modules:
Module search path : /usr/local/lib/syslog-ng
Sun STREAMS support (module): no
SSL support (module) : yes
SQL support (module) : yes
PACCT module (EXPERIMENTAL) : no
MongoDB destination (module): yes
JSON support (module) : no
SMTP support (module) : yes
AMQP destination (module) : yes
GEOIP support (module) : no
[root@boanhack syslog-ng-3.5.1]# make && make install
'Study > System' 카테고리의 다른 글
시스템 정보 확인 - dmidecode (0) | 2013.11.19 |
---|---|
openssl을 통한 인증서 발급 (0) | 2013.11.14 |
GCC Version Upgrade(v4.8.2) (0) | 2013.11.14 |
APM 설치 - CentOS 6.4 (0) | 2013.11.12 |
openssh v6.4p1 설치 (0) | 2013.11.11 |
- Total
- Today
- Yesterday
- excel_aton
- NX ASLR
- recovery file on linux
- 도커
- 윈도우 패스워드 복구
- ${1##*.}
- dvwa_command
- bash modification
- docker
- capinfos
- docker_dvwa
- oracle 11gr2
- 리눅스 버전
- ssl decrypt
- tcpdstat
- filesystem check
- MySQL csv
- pcapng
- bash parameter
- dvwa
- webhack
- megacli
- mergecap
- cisco ssh
- history timestamp
- metasploitable3
- text2pcap
- dvwa_bruteforce
- editcap
- tshark
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |