[Apache] 서버 정보 숨기기 - Linux
·
서버/Apache
아파치를 사용하는 어플리케이션의 보안 취약점으로 HTTP 응답 헤더 내 서버 정보 노출 항목이 있다. Linux 환경에서 해당 취약점에 대한 대응 방법을 정리한다. 1. 서버 응답 정보 확인 우선 curl 명령어를 통해 해당 서버의 응답 헤더 정보를 확인한다. curl -i https://localhost 또는 크롬의 개발자 도구를 이용하여 확인할 수도 있다. 2. 서버 정보 노출 설정 서버 정보 노출 설정을 위하여 Apache 설치 경로 내의 httpd.conf 파일을 찾아 수정한다. yum으로 설치한 경우 기본 위치는 /etc/httpd/conf/httpd.conf httpd.conf 파일 내에 다음 두 가지 설정을 찾아 변경하고, 설정 정보가 존재하지 않으면 임의의 위치에 추가한다. ServerTo..
[프로그래머스] 삼총사 - Java
·
알고리즘/프로그래머스
https://school.programmers.co.kr/learn/courses/30/lessons/131705 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 문제 문제 설명 한국중학교에 다니는 학생들은 각자 정수 번호를 갖고 있습니다. 이 학교 학생 3명의 정수 번호를 더했을 때 0이 되면 3명의 학생은 삼총사라고 합니다. 예를 들어, 5명의 학생이 있고, 각각의 정수 번호가 순서대로 -2, 3, 0, 2, -5일 때, 첫 번째, 세 번째, 네 번째 학생의 정수 번호를 더하면 0이므로 세 학생은 삼총사입니다. 또한, 두 번째, 네 번째, 다섯 번째 ..
[LeetCode] 190. Reverse Bits - Java
·
알고리즘/LeetCode
https://leetcode.com/problems/reverse-bits/description/ Reverse Bits - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 문제 Reverse bits of a given 32 bits unsigned integer. Note: Note that in some languages, such as Java, there is no unsigned integer type. In this case, both input a..
[LeetCode] 338. Counting Bits - Java
·
알고리즘/LeetCode
https://leetcode.com/problems/counting-bits/description/ Counting Bits - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 문제 Given an integer n, return an array ans of length n + 1 such that for each i (0
[LeetCode] 191. Number of 1 Bits - Java
·
알고리즘/LeetCode
https://leetcode.com/problems/number-of-1-bits/description/ Number of 1 Bits - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 문제 Write a function that takes an unsigned integer and returns the number of '1' bits it has (also known as the Hamming weight). Note: Note that in some la..
HYOJUN
도전하고 기록하기