No description
Find a file
gyuu04 6dceba0c24 OAuth redirect_uri 우회 패턴 17개 추가 및 테스트 완료
- 안전한 테스트 도메인 적용 (evil.example)
2025-06-24 16:23:05 +09:00
.github/workflows Update ci.yml 2025-06-16 22:27:11 +09:00
addon OAuth redirect_uri 우회 패턴 17개 추가 및 테스트 완료 2025-06-24 16:23:05 +09:00
lib [Update] csrf 2025-06-08 12:39:24 +09:00
runner Merge pull request #12 from j93es/hotfix/running-backend 2025-06-12 22:05:54 +09:00
.env feat: add Google login hint functionality 2025-06-15 02:06:58 +09:00
.env.example feat: add Google login hint functionality 2025-06-15 02:06:58 +09:00
.gitignore gitignore update 2025-06-08 14:30:12 +09:00
.python-version Refactor code structure for improved readability and maintainability 2025-06-07 14:44:06 +09:00
main.py HotFix Running Backend 2025-06-11 22:28:47 +09:00
pyproject.toml nonceCheck 2025-06-08 20:56:10 +09:00
README.md 리팩토링 2025-06-07 19:15:21 +09:00
uv.lock nonceCheck 2025-06-08 20:56:10 +09:00

환경 설정

이 프로젝트는 uv라는 Python 패키지 관리자를 사용하여 설정해야합니다.

uv 설치 후 다음과 같은 명령어를 입력합니다.

uv sync

venv와 패키지가 설치가 됩니다.

실행 방법

uv run main.py

이러면 http(s)://localhost:11080로 서버가 열리게 됩니다.

기여 방법

./addon/init.py

from example_check import Example

class LoggerAddon:
    def __init__(self):
        self.checker = Example()

    def request(self, flow: http.HTTPFlow): # 비동기가 필요할 경우 async def로 할 것
            self.checker.test(flow)
    def response(self, flow: http.HTTPFlow): # 비동기가 필요할 경우 async def로 할 것
        self.checker.test(flow)

./addon/example.py

import lib.target as target
from lib.report import save_report

class Example:
    async def test(self, flow):
        req = flow.request
        method = req.method
        url = req.pretty_url

        # data/report.csv에 저장
        report_data = [{
            'target': target.load(),
            'status': "CRITICAL",
            'title': "PKCE Downgrade Vulnerability",
            'description': "PKCE downgrade vulnerability detected! Both URLs returned authorization code.",
            'uri': f"Original: {url}\nDowngraded: {downgraded_url}"
        }]
        save_report(report_data)

이러한 예제를 참고하여 작성하여주세요.