mirror of
https://github.com/j93es/oauth-backend.git
synced 2026-06-04 06:51:51 +09:00
[Refactor] 리팩터링
This commit is contained in:
parent
afcfd7de87
commit
062552d3d8
12 changed files with 24 additions and 22 deletions
|
|
@ -4,8 +4,8 @@ from typing import List, Dict, Optional, Any
|
|||
|
||||
from mitmproxy.http import HTTPFlow
|
||||
|
||||
import lib.target as target
|
||||
from lib.report import save_report
|
||||
import lib.cur_target_url as cur_target_url
|
||||
from lib.report_vuln import save_report
|
||||
|
||||
# 결과 리포트 저장용 데이터 클래스
|
||||
@dataclass
|
||||
|
|
@ -32,7 +32,7 @@ class AccessTokenScanner:
|
|||
findings.extend(await self._scan_response(flow.response, flow.request.url))
|
||||
|
||||
if findings:
|
||||
target_value = target.load()
|
||||
target_value = cur_target_url.load()
|
||||
save_report([f.to_report(target_value) for f in findings])
|
||||
|
||||
# 내부 구현
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue