mirror of
https://github.com/j93es/oauth-backend.git
synced 2026-06-04 12:31:51 +09:00
[Add] csrf 포팅
This commit is contained in:
parent
c0c6743423
commit
a5186a7e44
4 changed files with 210 additions and 19 deletions
7
main.py
7
main.py
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue