[Add] csrf 포팅

This commit is contained in:
tv0924@icloud.com 2025-06-08 01:13:07 +09:00
commit a5186a7e44
4 changed files with 210 additions and 19 deletions

View file

@ -4,8 +4,11 @@ from flask import Flask, request
import threading
import lib.target as target
proxy_port = 11080
server_port = 11081
def main():
sys.argv = ["mitmdump", "-s", "./addon/init.py", "--listen-port", "11080"]
sys.argv = ["mitmdump", "-s", "./addon/init.py", "--listen-port", f"{proxy_port}"]
mitmdump()
# get target from browser use web api
@ -21,7 +24,7 @@ def start():
return "No URL provided"
def run_web_server():
app.run(host='localhost', port=11081, debug=False)
app.run(host='localhost', port=server_port, debug=False)
# Start web server in a separate thread
web_thread = threading.Thread(target=run_web_server, daemon=True)