PicoCTF - SQL Direct
22 Sep 2022picoCTF
Challenge
Tags
PicoCTF 2022 / Web Exploitation / sql
Description
Connect to this PostgreSQL server and find the flag!
Writeup
- Launch instance.
- Open Websell and Log in .
- Connect to sql by command
psql -h saturn.picoctf.net -p 61408 -U postgres picoand input the password. - Use
\dtcommand to show all table, there is only one table, which is namedflags. - Use
SELECT * FROM flags;command to check the content of table. - Here’s flag:
picoCTF{L3arN_S0m3_5qL_t0d4Y_31fd14c0}٩(^ᴗ^)۶