목록전체 글 (39)
저장소

https://webhacking.kr/ Webhacking.kr Index Welcome Stranger! Chatting Notice(en) [2021-04-16] Score of old challenges has been adjusted to 1/10. For a while now, new challenges will be added "without" notice. [2020-08-12] Replace chat feature with Discord. Please do not cause inconvenience to webhacking.kr 10번 문제는 HTML 관련 문제다. Goal 라인이 그려져있다. 크롬 기준 Ctrl + Shift + l 단축키를 사용해서 소스코드를 확인했다. 소스코드는 아래..

Chapter6에서는 인수분해의 계산 난이도에 기반한 공개키 암호체계에 대해 배웠다. 지금까지 알아본 이산로그의 계산 난이도를 활용한 보안 시스템 설계도 물론 가능하다. Alice가 Bob에게 메시지 m을 보내고 싶어한다고 가정하자. 가장 먼저 Bob은 큰 소수 p와 원시근 a를 선택한다. (0
암호화에서 중요한 문제는 두 사람이 DES, AES와 같은 암호화 프로토콜을 사용할 때 키를 선정하는 기준이다. 이 챕터에서는 기본적인 Diffie-Hellman 알고리즘을 바탕으로 이산 로그 계산의 어려움과 보안의 밀접한 관계를 설명한다. 모든 통신이 공개된 channel을 통해 이루어 진다 할 때, Alice와 Bob이 공통의 비밀키 K를 설정하는 방식에 대해 알아보자. Alice 혹은 Bob이 안전하고 큰 수의 소수 p와 원시근 a (mod p)를 선택한다. (이때 p, a 모두 공개 가능) Alice는 1

https://webhacking.kr/ Webhacking.kr Index Welcome Stranger! Chatting Notice(en) [2021-04-16] Score of old challenges has been adjusted to 1/10. For a while now, new challenges will be added "without" notice. [2020-08-12] Replace chat feature with Discord. Please do not cause inconvenience to webhacking.kr 25번은 php와 관련된 문제다. 리눅스에서 ls 명령어를 사용한 것 같은 화면이 보인다. URL도 file=hello가 인자로 전달되고 있다. file의 값을 ..

https://webhacking.kr/ Webhacking.kr Index Welcome Stranger! Chatting Notice(en) [2021-04-16] Score of old challenges has been adjusted to 1/10. For a while now, new challenges will be added "without" notice. [2020-08-12] Replace chat feature with Discord. Please do not cause inconvenience to webhacking.kr 24번 문제는 php 문제다. view-source로 php 소스를 확인했다. ip 변수 값이 127.0.0.1이면 문제가 solve된다. str_replace ..

https://webhacking.kr/ Webhacking.kr Index Welcome Stranger! Chatting Notice(en) [2021-04-16] Score of old challenges has been adjusted to 1/10. For a while now, new challenges will be added "without" notice. [2020-08-12] Replace chat feature with Discord. Please do not cause inconvenience to webhacking.kr 12번 문제는 자바스크립트와 관련된 문제이다. 크롬 기준 Ctrl+Shift+I 단축키로 소스코드를 확인했다. javascript challenge 이모티콘이 엄..

https://webhacking.kr/ Webhacking.kr Index Welcome Stranger! Chatting Notice(en) [2021-04-16] Score of old challenges has been adjusted to 1/10. For a while now, new challenges will be added "without" notice. [2020-08-12] Replace chat feature with Discord. Please do not cause inconvenience to webhacking.kr 39번 문제를 풀기 시작하면 가장 먼저 볼 수 있는 화면이다. view-source를 눌러서 소스코드를 확인해보면 아래와 같다.

공개키 암호화(비대칭키 암호화)의 대표적인 방식 Alice가 Bob에게 메시지를 보내고자 할 때 작동 과정은 아래와 같다. 1. Bob은 서로 다른 큰 소수 p, q를 선택한다. 2. Bob은 p, q를 곱한 n을 구한다. 3. Bob은 암호화 지수(encryption exponent) e를 구한다. 단, e는 아래의 조건을 만족한다. 4. Bob은 Alice에게 공개키 (n, e)를 전송한다. 이때 p, q는 비밀키이다. (Bob의 적이 될 수 있는 Alice에게 비밀키를 보내지 않는다.) 5. Alice는 메시지 m(m < n 가정)을 암호화 한다. (이때, n < m이면 메시지 m을 각각 n보다 작은 block으로 나눈다.) 6. Alice는 Bob에게 암호문 c를 전송한다. 7. Bob은 p, q..