
로컬에서 호스팅되는 치트 시트 페이지입니다. 현재 리버스 엔지니어링에 사용 중이며, 실험실에서 호스팅되어 인스턴스 외부로의 트래픽을 제한하거나 생략(방화벽 잠금)할 수 있습니다.
대화형 치트시트와 참고 자료를 호스팅하는 가벼운 콘텐츠 중심 웹 서버입니다. CTF(Capture The Flag) 챌린지, 리버스 엔지니어링, 기술 문서에 적합합니다. 외부 트래픽을 제한하거나 없애면서도 유용한 자료에 접근할 수 있는 실습 환경에서 사용하기 좋습니다.
*** 스크립트를 어느 정도 강화했지만, 사용 전에 반드시 검토하거나 실습 환경에서만 배포하세요 ***
이 저장소를 클론하거나 다운로드하세요:
git clone https://github.com/JimmyAder/CheatSheetHost.git
cd CheatSheetHost
서버를 실행하세요:
python3 host_content_site.py
브라우저에서 http://127.0.0.1:8766을 엽니다
서버는 기본 파일이 없으면 자동으로 생성합니다.
http://127.0.0.1:8766http://[로컬 IP]:8766 (시작 시 표시됨)GET /api/pages: 사용 가능한 페이지 슬러그의 JSON 목록 반환치트시트는 pages/ 디렉토리에 JSON 파일로 저장됩니다. 각 파일은 다음과 같은 구조로 단일 페이지를 정의합니다:
{
"slug": "my-cheatsheet",
"title": "My Custom Cheatsheet",
"subtitle": "A brief description of this cheatsheet",
"sections": [
{
"type": "table",
"title": "Section Title",
"items": [
{"key": "Command", "value": "Description"},
{"key": "Another", "value": "Command"}
]
},
{
"type": "text",
"title": "Notes",
"text": "Some explanatory text here."
},
{
"type": "code",
"title": "Example Code",
"language": "python",
"code": "print('Hello, World!')"
}
],
"ascii": {
"title": "ASCII Table",
"blocks_across": 6,
"min_width_px": 920
}
}
gdb-cheatsheet.json)slug 필드는 URL 경로를 결정합니다 (생략 시 파일명에서 자동 생성)site_template.html을 편집하여 모양을 수정하세요:
:root의 CSS 변수명령줄 옵션:
python3 host_content_site.py --host 0.0.0.0 --port 8080
--host: 바인딩할 IP 주소 (기본값: 0.0.0.0)--port: 포트 번호 (기본값: 8766)CheatSheetHost/
├── host_content_site.py # Main server script
├── site_template.html # HTML template and CSS
├── pages/ # Cheatsheet JSON files
│ ├── ctf-cheatsheet.json
│ ├── gdb-cheatsheet.json
│ └── ...
└── README.md # This file
pages/ 디렉토리에 새 JSON 파일 생성http.server 모듈로 구축됨python3 host_content_site.py
site_template.html 수정이 프로젝트는 오픈 소스입니다. 자유롭게 사용, 수정, 배포하세요.