Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 1.41 KB

README.md

File metadata and controls

36 lines (25 loc) · 1.41 KB

SQL Direct

Write-up author: jon-brandy

DESCRIPTION:

Connect to this PostgreSQL server and find the flag! psql -h saturn.picoctf.net -p 64980 -U postgres pico Password is postgres

HINT:

  1. SQL command to check database inside.

STEPS:

  1. First, launch the machine to get the PostgreSQL server.
  2. Then i got this psql -h saturn.picoctf.net -p 64980 -U postgres pico. So i run the command at my kali linux terminal.
  3. Enter the password as postgres.

Screenshot (485)

  1. Next, based from the hint, in PostgreSQL if you run this command \dt it will lists all tables in PostgreSQL.

Screenshot (487)

  1. It is known, there is a table named flags. So let's try to see what's inside by run this command SELECT * FROM flags;.

Screenshot (488)

  1. But somehow it is not working, now let's change all the letters to lowercase -> select * from flags;.

Screenshot (486)

  1. Finally, we got the flag!

FLAG

picoCTF{L3arN_S0m3_5qL_t0d4Y_21c94904}