실습> .swp 파일 접근 금지 설정하기
-- /etc/httpd/conf/httpd.conf --
# .swp 파일 접근 금지 시키기
<Files ".*.swp">
Require all denied
</Files>
-- /etc/httpd/conf/httpd.conf --
[root@web1 html]# httpd -t
Syntax OK
[root@web1 html]# systemctl restart httpd
관리자가 index.html 파일을 열어서 수정한다.
[root@web1 html]# vi index.html
:
:(생략)
사이트 접속
http://192.168.108.14/.index.html.swp

.swp 파일에 접근하려 하자 잘 차단이 되었다.
'Linux > 모의해킹' 카테고리의 다른 글
| dnsmap (0) | 2021.12.29 |
|---|---|
| axfr 로그 허용 차단하기 (0) | 2021.12.29 |
| Bee-Box 설정하기 (0) | 2021.12.28 |
| [Kali] dropip.sh 파일을 cron 에 등록하기 (0) | 2021.12.28 |
| [Kali] 공격자 IP 주소 추가하기 (0) | 2021.12.28 |