문제21
계정 추가 competition
su competition
chmod 711 $HOME
chmod 755 ~/public_html
호스팅 추가 (bind)
호스팅 추가 (hosting)
http://competition.st.kr
index.html > index.php
< script>location.href='./index.php';
index.html 삭제
index.php 삭제
rm -rf index.html
rm -rf index.php
=> 둘다 삭제 하면 경로 보임(취약)
=> 설정 잘하면 경로 안보이게 할 수 있다!!
디렉토리 지시자?
cd /etc/apache2/sites-available/hosting.conf
< Directory "/home/competition/public_html">
    Options Indexes
< /Directory>
=> 목록 보이지 않게 해주려면 None
< Directory "/home/competition/public_html">
    Options None
    Order Allow,Deny
    Allow from all
    Deny from 100.100.100.1
< /Directory>
=> kali에서 forbidden 나오는지 확인
연결 오류는 파이어 폭스 껐다 키면 해결됨
=> sudo apachectl configtest (아파치 오류 검사)
-----------------------
취약점
command injection
file inclusion
file upload
-----------------------
문제 11번
자동 로그아웃 3분으로 처리
문제 6번
KALI로 부터 오는 메일 차단...(다시)
문제 21번
계정추가 competition
su competition
chmod 711 $HOME
chmod 755 ~/public_html