CentOS 설치할때 언어를 한글로 설치 하였다면 UTF-8 로 기본 설정이 되어 있을 것입니다./etc/sysconfig/i18n 파일 내용중 LANG=”ko_KR.UTF-8″ 부분을 LANG=”ko_KR.eucKR” 로 변경 해주시면 됩니다.* 변경 전# vi /etc/sysconfig/i18nLANG=”ko_KR.UTF-8″SYSFONT=”latarcyrheb-sun16″* 변경 후# vi /etc/sysconfig/i18nLANG=”ko_KR.eucKR”SYSFONT=”latarcyrheb-sun16″수정하신 후 바로 적용하고 싶을 경우 Bash 를 입력하면 됩니다. 제대로 변경 되었는지 로케일 정보를 봅니다.# bash# localeLANG=ko_KR.eucKRLC_CTYPE=”ko_KR.eucKR”LC_NUMERIC=”ko_KR.eucKR”LC_TIME=”ko_KR.eucKR”LC_COLLATE=”ko_KR.eucKR”LC_MONETARY=”ko_KR.eucKR”LC_MESSAGES=”ko_KR.eucKR”LC_PAPER=”ko_KR.eucKR”LC_NAME=”ko_KR.eucKR”LC_ADDRESS=”ko_KR.eucKR”LC_TELEPHONE=”ko_KR.eucKR”LC_MEASUREMENT=”ko_KR.eucKR”LC_IDENTIFICATION=”ko_KR.eucKR”LC_ALL=
yum 업데이트 저장소를 변경 하는 방법입니다. CentOS-Base.repo 파일을 편집합니다. # nano /etc/yum.repos.d/CentOS-Base.repo CentOS-Base.repo 에 mirrorlist 주석 체크 후 baseurl 안에 원하는 서버주소를 써주시면 됩니다. # CentOS-Base.repo # # The mirror system uses the connecting IP address of the client and the # update status of each mirror to pick mirrors that are updated to and # geographically close to the client. You should use this for CentOS updates # unless you are manually picking other mirrors. # # If the mirrorlist= does not work for you, as a fall back you can try the # remarked out baseurl= line instead.
환경 : 우분투- mod_evasive 모듈 설치# apt-get install libapache2-mod-evasive설치가 완료되면 자동으로 모듈이 올라가고 아파치가 재시작 됩니다.모듈이 안올라갈 경우 심볼링크로 링크를 걸어 줍니다.- 심볼링크 생성# cd /etc/apache2/mods-enabled# ln -s ../mods-available/mod-evasive.load ./mod-evasive.loadapache2.conf 맨 아래 추가# vi /etc/apache2/apache2.conf<IfModule mod_evasive20.c> DOSHashTableSize 3097 DOSPageCount 5 DOSSiteCount 50 DOSPageInterval 1 DOSSiteInterval 1 DOSBlockingPeriod 30 DOSLogDir “/var/log/mod_evasive.log” DOSWhitelist 127.0.0.1</IfModule>아파치 재시작# /etc/init.d/apache2 restart- mod_evasive 옵션- DOSHashTableSize 각 자식 해쉬테이블 마다 탑레벨 노드의 수를 지정한다.수치가 높으면 높을수록 더 많은
# ee /etc/rc.conf# — sysinstall generated deltas — # Sat Sep 20 23:57:51 2008# Created: Sat Sep 20 23:57:51 2008# Enable network daemons for user convenience.# Please make all changes to this file, not to /etc/defaults/rc.conf.# This file now contains just the overrides from /etc/defaults/rc.conf.# 기본 라우터 아이피 (기본 게이트웨이)defaultrouter=”192.168.1.1″# 호스트네임 설정hostname=”yongbok.net”# le0 아이피 설정 , 넷마스크 설정ifconfig_le0=”inet 192.168.1.30 netmask 255.255.255.0″keymap=”us.iso”linux_enable=”YES”sshd_enable=”YES”DNS Server 설정# ee /etc/resolv.conf nameserver 168.126.63.1nameserver 168.126.63.2
Linux 2.6.17 – 2.6.24.1 해당되며, 아래에서 보시는 것과 같이 root 로 바로 로그인 됩니다.ruo91@YongBok:~$ uname -aLinux YongBok.com 2.6.18 #1 SMP Fri Sep 22 13:02:54 KST 2006 i686 GNU/Linuxruo91@Yongbok:~$ iduid=1000(hehe) gid=100(users) groups=100(users)ruo91@Yongbok:~$ ./root-exploite———————————–Linux vmsplice Local Root ExploitBy qaaz———————————– mmap: 0x0 .. 0x1000 page: 0x0 page: 0x20 mmap: 0x4000 .. 0x5000 page: 0x4000 page: 0x4020 mmap: 0x1000 .. 0x2000 page: 0x1000 mmap: 0xb7dfd000 .. 0xb7e2f000 rootruo91@Yongbok:~# iduid=0(root) gid=0(root) groups=100(users)Linux Kernel 2.6.17 – 2.6.24.1 vmsplice Local Root Exploithttp://www.milw0rm.com/exploits/5092