deciphr / deciphr.github.io

0 stars 0 forks source link

writeups/2024-n00bz-ctf/ #2

Open utterances-bot opened 1 month ago

utterances-bot commented 1 month ago

2024 n00bzCTF - deciphr

Challenges Passwordless Passwordless Tired of storing passwords? No worries! This super secure website is passwordless! For this challenge, we had to exploit a program weakness. app.py

!/usr/bin/env python3 from flask import Flask, request, redirect, render_template, render_template_string import subprocess import urllib import uuid global leet app = Flask(name) flag = open('/flag.txt').read() leet=uuid.UUID('13371337-1337-1337-1337-133713371337') @app.route('/',methods=['GET','POST']) def main(): global username if request.method == 'GET': return render_template('index.html') elif request.method == 'POST': username = request.values['username'] if username == 'admin123': return 'Stop trying to act like you are the admin!

https://deciphr.github.io/writeups/2024-n00bz-ctf/

0x62797465 commented 1 month ago

damn that's crazy