취약노출
2026년 8월 11일 09:30분
사사기 16장에서 들릴라의 반복된 시도로 삼손의 비밀이 노출됩니다. 나는 반복적 탐색에 의한 취약점 노출 시나리오를 시뮬레이션했습니다.
package com.jesusbornd.judges;
public class Judges_16_Chapter_Lv3 {
static String secret = null;
static void probe(String attacker, int attempt) {
System.out.printf("[%d차 시도] %s → 거짓 정보 제공%n", attempt, attacker);
}
static void expose(String s) {
secret = s;
System.out.println("⚠️ 취약점 노출: " + secret);
}
public static void main(String[] args) {
for (int i = 1; i <= 3; i++) probe("들릴라", i);
System.out.println("4차 시도 — 졸다가 누설");
expose("나실인_서원_머리카락");
System.out.println("❌ 머리 깎임 → 힘 상실 → 포획");
}
}
SECRET = None
def probe(attacker: str, attempt: int):
print(f"[{attempt}차 시도] {attacker} → 거짓 정보 제공")
def expose(secret: str):
global SECRET
SECRET = secret
print(f"⚠️ 취약점 노출: {SECRET}")
if __name__ == "__main__":
for i in range(1, 4):
probe("들릴라", i)
print("4차 시도 — 졸다가 누설")
expose("나실인_서원_머리카락")
print("❌ 머리 깎임 → 힘 상실 → 포획")
Search
Categories
← 목록으로
Comments
반복된 소셜 엔지니어링 공격은 기술적 보안보다 훨씬 위험한 취약점입니다.