Skip to content

Latest commit

 

History

History
44 lines (26 loc) · 1.24 KB

aupCTF_(WEB).md

File metadata and controls

44 lines (26 loc) · 1.24 KB

aupCTF 2023 writeups for WEB

ctftime link: https://ctftime.org/event/2025/

Starter - 100pts

image image image

FLAG: aupCTF{w45n't-th47-h4rd-r1gh7}

Header - 100pts

def headar_easy(request):
    if request.META.get('HTTP_GETFLAG') == 'yes':
    context = {
        'flag': '[REDACTED]',
    }
    
    return render(request, 'aa/flag.html', context)

return render(request, 'aa/index.html')

┌──(kali㉿kali)-[~]

└─$ curl -H "GETFLAG: yes" https://challs.aupctf.live/header/

aupCTF{cust0m-he4d3r-r3qu3st}

FLAG: aupCTF{cust0m-he4d3r-r3qu3st}

SQLi - 1 - 100pts

Simple SQL-injection, we need use basic payload: ' OR 1=1 -- we are able to get in.

image

FLAG: aupCTF{3a5y-sql-1nj3cti0n}

SQLi - 2 - 200pts

Also SQL injection, we need to use this payload -- or '1'='1'

FLAG: aupCTF{m3d1um-sql-1nj3cti0n}