Skip to content

Kedthecat/CaliforniaCTF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 

Repository files navigation

Welcome to the writeup for CaliforniaCTF that i made!

First off let’s start the machine up and wait 5 mins.

Enumeration

I always start my enumeration with nmap.

as you can see there are 3 ports open

image

Let's look which services are they

image

21 = FTP with anonymous login !

22 = SSH

80 = HTTP web server

FTP login

So anonymous login looks cool let's login with anonymous credentials

image

We got a file. Let's look what is that

So it's all about web server let's look at it..

image

WEB application

We have just default apache page, so let's use some tools

As you can see there is a directory called "hotelbx". Let's check it!

image

It seems the page is using "Hotel Reservation System". Let's check if there was an exploit to use

image

image

SQL Injection

Cool let's try to use them. First try to login with 'or 1=1 --

image

and it works..

Now let's try other sql exploit at this page with sqlmap

image

We got 2 hashes Let's try to crack them

image

so we got scott's credentials let's login with ssh

image image

USER & ROOT

So first things first let's get the user flag.

image

Now we can try to escalate our privileges.

That file looks suspicious.

image

If we go and look gtfobins we can escelate our privilege with this command. Let's try

image image image

and we are root!!

About

Ofiicial - CaliforniaCTF Writeup

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors